Re: Oops with ext3 journaling

1999-12-08 Thread Stephen C. Tweedie

Hi,

On Wed, 8 Dec 1999 17:28:49 -0500, "Theodore Y. Ts'o" [EMAIL PROTECTED]
said:

 Never fear, there will be an very easy way to switch back and forth
 between ext2 and ext3.  A single mount command, or at most a single
 tune2fs command, should be all that it takes, no matter how the
 journal is stored.

Absolutely.  I am 100% committed to this.  Apart from anything else,
this is the mechanism which will allow for incompatible revisions of
the ext3 journal format: you will always be able to mount a journaled
ext3 partition as ext2, and then remount as the new ext3, if you want
to upgrade ext3 partitions to a new, incompatible format (which should
not happen after final release, but there will be at least one such
incompatible format revision required in the next month or so).

Any such format changes will be limited to the journal format: there
will be no journaling changes which prevent backing the filesystem
revision back down to ext2.  Ever.

--Stephen



Re: Oops with ext3 journaling

1999-12-08 Thread Erez Zadok

In message [EMAIL PROTECTED], Pavel Machek writes:
 Hi!
 
  No, and I'm pretty much convinced now that I'll move to having a
  private, hidden inode for the journal in the future.
 
 Please don't do that. Current way of switching ext2/ext3 is very
 nice. If someone wants to shoot in their foot...
   Pavel

IMHO, as a long term solution, ext3 should have as few ways to shoot oneself
in the foot as possible.  Hackers usually won't do "stupid" things (at least
not unintentionally :-), but hoards of Joe-users will.

 I'm really [EMAIL PROTECTED] Look at http://195.113.31.123/~pavel.  Pavel
 Hi! I'm a .signature virus! Copy me into your ~/.signature, please!

Erez.



Re: Oops with ext3 journaling

1999-12-07 Thread Pavel Machek

Hi!

 No, and I'm pretty much convinced now that I'll move to having a
 private, hidden inode for the journal in the future.

Please don't do that. Current way of switching ext2/ext3 is very
nice. If someone wants to shoot in their foot...
Pavel
-- 
I'm really [EMAIL PROTECTED] Look at http://195.113.31.123/~pavel.  Pavel
Hi! I'm a .signature virus! Copy me into your ~/.signature, please!



Re: Oops with ext3 journaling

1999-12-06 Thread Stephen C. Tweedie

Hi,

On Sat, 4 Dec 1999 08:44:46 -0800 (PST), Brion Vibber
[EMAIL PROTECTED] said:

 Maybe at least stick a nice big warning in the docs along the lines of
 "do not write to your journal file while mounted with journaling on,
 you big dummy!" :) Not that I'd do so deliberately of course, but it
 might make people a little more wary later on. The README does
 recommend setting the permissions to 400, but that doesn't protect
 from root of course.

"chattr +i journal.dat" will protect even from root.

 Is there any reason you _would_ want to be able to write to the journal
 file from userland while mounted? I'd guess no...

No, and I'm pretty much convinced now that I'll move to having a
private, hidden inode for the journal in the future.

--Stephen



Re: Oops with ext3 journaling

1999-12-06 Thread Stephen C. Tweedie

Hi,

On Sat, 4 Dec 1999 12:11:58 -0700, mike burrell [EMAIL PROTECTED] said:

 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?

The immutable flag will work fine: journaling bypasses the normal file
write mechanisms, so it will work with an "immutable" journal quite
safely.

--Stephen