Maybe fsck should refuse to read or modify the journal if it is in use?

Also we need a way to be able to fsck a filesystem if the journal is no longer available, or alternativly a way to remove a journal from a filesystem if the journal is not available. (bug #559301 <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=559301> - tune2fs -f -O ^has_journal does nothing if the journal device can't be found).

Maybe the easiest/safest would be:

  1. fsck refuses to work if the journal device is open
  2. tune2fs -f -O ^has_journal modifies the filesystem but *not* the
     journal device
  3. tune2fs -O ^has_journal refuses to work if the journal is not
     empty or the filesystem is active or the journal is open by someone.




--
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]

Reply via email to