Whamcloud - gitweb
Change e2fsck to open non-mounted filesystems in exclusive mode
authorTheodore Ts'o <tytso@mit.edu>
Sun, 19 Mar 2006 01:01:09 +0000 (20:01 -0500)
committerTheodore Ts'o <tytso@mit.edu>
Sun, 19 Mar 2006 01:01:09 +0000 (20:01 -0500)
commit2e14e0c8cc5bc61ffacd380a981808194e9c7f84
tree2c648ed6624ac3b6cbddb09718f9e3214373072e
parent98eb44bdb5749f323a858d71bf5e7f0eddb61191
Change e2fsck to open non-mounted filesystems in exclusive mode

Thanks to Andreas Dilger for this idea.  If the filesystem is not mounted,
e2fsck will open it in exclusive mode to prevent the a confused/careless
system administrator from mounting the filesystem while the filesystem
check is taking place, which could cause all sorts of problems.

Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
e2fsck/ChangeLog
e2fsck/unix.c