Lines Matching defs:sws
342 struct swap_id_block *sws;
352 sws = xmalloc(1024);
353 if (read(fd, sws, 1024) != 1024) {
354 free(sws);
359 if (sws->sws_pad[32] == 0 && sws->sws_pad[33] == 0) {
360 if (sws->sws_volume[0])
361 blkid_set_tag(dev, "LABEL", (const char*)sws->sws_volume,
362 sizeof(sws->sws_volume));
363 if (sws->sws_uuid[0])
364 set_uuid(dev, sws->sws_uuid);
366 free(sws);