util-linux/fsck
Karel Zak 0c0f93fcc3 fsck: improve whole-disk check, detect stacked devices
The current heuristic for conversion from partition to whole-disk
is based on device names. It's pretty poor. This patch replaces this
code with blkid_devno_to_wholedisk(). This solution is based on
/sys FS and it works for arbitrary partitioned devices.

The another problem is the way how fsck determines stacked devices.
The current code checks device name for "md" prefix only. It does not
care about DM, dm-ccypt, and so on. This patch uses
/sys/block/.../slaves/, but it does not fully resolves dependencies
between all devices. The method is simple -- fsck does not check
stacked devices in parallel with any other device.

Signed-off-by: Karel Zak <kzak@redhat.com>
2010-08-19 15:33:45 +02:00
..
.gitignore build-sys: add fsck binary to .gitignore 2009-02-18 17:20:30 +01:00
Makefile.am fsck: improve whole-disk check, detect stacked devices 2010-08-19 15:33:45 +02:00
fsck.8 fsck: improve whole-disk check, detect stacked devices 2010-08-19 15:33:45 +02:00
fsck.c fsck: improve whole-disk check, detect stacked devices 2010-08-19 15:33:45 +02:00
fsck.h fsck: improve whole-disk check, detect stacked devices 2010-08-19 15:33:45 +02:00