Re: Oops with ext3 journaling

Brion Vibber (brion@gizmo.usc.edu)
Mon, 6 Dec 1999 05:10:55 -0800 (PST)


On Sat, 4 Dec 1999, mike burrell wrote:

> couldn't you just make a new flag for the inode that journal.dat uses? i'm
> guessing using S_IMMUTABLE will cause some problems, but something similar
> to that?

I gate immutable a try on a loopbacked test fs and it seems to work
fine... No complaints from the kernel, and it wrote to the journal file
upon mount. Copies of the journal file before and after putting a bunch of
files on the fs differed... and attempting to write to or copy over the
journal file was denied even to root. Huzzah!

So if you think you might accidentally overwrite your journal file, give
it a chattr +i and stay safe...

-- brion vibber (brion@pobox.com)

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/