Whamcloud - gitweb
Check for a busy device when creating a journal.
authorTheodore Ts'o <tytso@mit.edu>
Tue, 19 Jul 2005 20:04:22 +0000 (15:04 -0500)
committerTheodore Ts'o <tytso@mit.edu>
Tue, 19 Jul 2005 20:04:22 +0000 (15:04 -0500)
commit29af314d3fd4cb907a4f474645e04bd26ba66f5f
tree45f6ba53fea2b4e342469d23363b3c7642b621ec
parent424131d7e9d4ac872a5cf9bde89b9c7af81126b4
Check for a busy device when creating a journal.

In ext2fs_add_journal_inode() check for the case where the filesystem
appears to be unmounted, but the device is still apparently busy.
This can happen when the luser doesn't bother to mount /proc and has a
bogus /etc/mtab, but still wants to mount the filesystem before using
tune2fs(?!?).  Add a safety check to save him from his own stupidity,
at least on 2.6 kernels.  (Addresses Debian Bug #319002)

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