Whamcloud - gitweb
Make fsck ignore mounted filesystems if given the -M option
authorTheodore Ts'o <tytso@mit.edu>
Sat, 16 Feb 2008 19:14:24 +0000 (14:14 -0500)
committerTheodore Ts'o <tytso@mit.edu>
Sun, 17 Feb 2008 22:35:46 +0000 (17:35 -0500)
commitfe263da9236f533e779a7e2f89af8d4b03075959
tree918f89e2dc8e265ddc2567c3aeb9363566abb2b6
parente7cc6f7d0b86d76963058ef099ca553da29d2c3f
Make fsck ignore mounted filesystems if given the -M option

Adapted from the SuSE patch, but fixes a number of very serious
problems with the patch in SLES:

1) This changeset uses -M instead of -m; most lowercase options are
reserved for use by the filesystem-specific fsck programs.  All new
fsck options must be upper case.

2)  This changeset will skip the root filesystem in "fsck -AM", which
the SLES patch will not do.

3)  Loading /proc/mounts into the fs_info can cause -t opts matching to
malfuction.  So this changeset uses a simplified version of the
ismounted.c function from the ext2fs library.

Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
misc/Makefile.in
misc/fsck.8.in
misc/fsck.c
misc/ismounted.c [new file with mode: 0644]