Kernel 2.4.15-pre6 / EXT3 / ls shows '.journal' on root-fs.

Kernel 2.4.15-pre6 / EXT3 / ls shows '.journal' on root-fs.

Post by Ryan Cummin » Wed, 21 Nov 2001 09:00:20




Quote:> Hallo all,

> I'm using kernel 2.4.15-pre6 and I can see my journal file
> on '/'. Should I worry ?

No, apparently the .journal file is visible if you created while the
filesystem is mounted, but invisible if you create it when the filesystem is
unmounted. Probably because you can't mess with the filesystem too much when
its mounted without confusing the filesystem driver, so creating hidden files
is out of the question. In either case, I created my journal with the
filesystem mounted, and it created a visible, immutable .journal file in my
root directory, and my filesystem has yet to explode.


> total 65720
>    2 drwxr-xr-x   24 root     root         4096 Nov 20 00:26 .
>    2 drwxr-xr-x   24 root     root         4096 Nov 20 00:26 ..
> 2930 -rw-------    1 root     root     67108864 Nov 18 19:56 .journal
>                                    ^^^^^^^ created as -J size=64

64 * (1024^2) = 67108864
Remember 1K = 1024, and 1M = 1024^2


> tune2fs 1.25 (20-Sep-2001)
> Filesystem volume name:   /
> Last mounted on:          <not available>
> Filesystem UUID:          b909b36d-8f16-4be1-9614-5049bad90e96
> Filesystem magic number:  0xEF53
> Filesystem revision #:    1 (dynamic)
> Filesystem features:      has_journal filetype needs_recovery sparse_super
>                                                ^^^^^^^^^^^^^^
>                                           ??????????????

The flag "filetype needs_recovery" is always set on a mounted filesystem,
it's unset once you umount. In the event of power failure, the flag will be
left set, and fsck knows the it has to recover the filesytem. Pretty clever,
eh?

Quote:> Could someone please comment on this ?
> I'm feeling kind of worried.

Everything seems to be in order...

-Ryan
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in

More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

 
 
 

Kernel 2.4.15-pre6 / EXT3 / ls shows '.journal' on root-fs.

Post by Ryan Cummin » Wed, 21 Nov 2001 12:50:08



Quote:> What are unintented consequences for not removing it?

> I.e., backups.

It already has the "Don't back me up" attribute set ('d'), and I've come
across absolutely no problems running my system with it lurking in my root
directory.

-Ryan
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in

More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/