Whamcloud - gitweb
Fix read/write badblocks testing in mke2fs and e2fsck
authorTheodore Ts'o <tytso@mit.edu>
Sat, 13 May 2006 13:25:47 +0000 (09:25 -0400)
committerTheodore Ts'o <tytso@mit.edu>
Sat, 13 May 2006 13:25:47 +0000 (09:25 -0400)
commitf63978aff759325b542de7134ab659c79dc47496
tree668dba851e3ca8def02595b2f9ff3b81ce3e21c7
parent7eef87483168f284561414a56b5378a3102639bb
Fix read/write badblocks testing in mke2fs and e2fsck

The exlcusive device safety check that was added inadvertently broke
e2fsck -cc and mke2fs -cc since e2fsck and mke2fs hold the device
in exclusive access when badblocks is run.  So we add a private option
to badblocks, -X, which is passed by e2fsck and mke2fs to badblocks
to indicate that it is OK to skip the EXT2_MF_BUSY checks.

Addresses Debian Bug: #366017

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