]> git.ipfire.org Git - thirdparty/util-linux.git/commit
libblkid: (nilfs2) check devise size
authorKarel Zak <kzak@redhat.com>
Tue, 9 Jun 2015 08:37:11 +0000 (10:37 +0200)
committerKarel Zak <kzak@redhat.com>
Tue, 9 Jun 2015 08:37:11 +0000 (10:37 +0200)
commit00817742ce360119e079a33e12cf84118ff7c63e
treefbf68f6baf07d0a2fe6e9742df9b72dfaf78766b
parent7c43fd23ce308698d4ad7c061db6bd9ad65cc92a
libblkid: (nilfs2) check devise size

Unfortunately, nilfs2 have the same problem like many RAIDs. It uses
the end of the device to store (backup) superblock. The end of the
last partition is the same location as the end of the whole-disk. It
means that the superblock seems valid for the last partitions as well
as for whole-device.

Fortunately, nilfs2 superblock contains size of the device, so we can
distinguish between whole-disk and partition device.

Reported-by: Heinz Diehl <htd+ml@fritha.org>
Signed-off-by: Karel Zak <kzak@redhat.com>
libblkid/src/superblocks/nilfs.c