Re: [PATCH] swapon: add swap detection

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Fri, Oct 31, Karel Zak wrote:

>  I think it would be better to ask libblkid/volume_id.

libvolume_id has no size checks, for any "detected" filesystems.
Thats not correct. So it can not be used.

A swap partition/file is not just a string at a certain offset,
its also the size in blocks in the metadata. 
Only if both match, it could be swap.


Olaf
--
To unsubscribe from this list: send the line "unsubscribe util-linux-ng" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Netdev]     [Ethernet Bridging]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux Admin]     [Samba]

  Powered by Linux