]> git.ipfire.org Git - thirdparty/util-linux.git/commit
libblkid: fix swap-area version
authorKarel Zak <kzak@redhat.com>
Mon, 4 Nov 2013 08:59:54 +0000 (09:59 +0100)
committerKarel Zak <kzak@redhat.com>
Mon, 4 Nov 2013 08:59:54 +0000 (09:59 +0100)
commit50cb6c0e27edaa04d40d91536d64a7e3218a6335
tree0f975d392f2acbbd81ab07ed2d85720d4aa6daf8
parent36da6b64c437680bdf58717bf907d23e2a66a406
libblkid: fix swap-area version

 * v1: hdr->version = 1, magic string = SWAPSPACE2
 * v0: no versio in header, magic string = SWAP-SPACE

The mistake has been introduced in the old udev volume_id
binary where the version was set according to magic string.

Reported-by: Phillip Susi <psusi@ubuntu.com>
Signed-off-by: Karel Zak <kzak@redhat.com>
libblkid/src/superblocks/swap.c