2003-01-31 14:09:22

by Krzysztof Olędzki

[permalink] [raw]
Subject: Default mount options ignored on ext3

Hello,

It seems that "Default mount options" from ext3 fs is ignored by
the linux kernel. I have just set "Default mount options" to
"journal_data" on my root fs but kernel still mounts it with
journal_data_ordered:

(part of dmesg)
EXT3-fs: mounted filesystem with ordered data mode.
~~~~~~~~~~~~~~~~~
VFS: Mounted root (ext3 filesystem) readonly.

$ tune2fs -l /dev/md0
tune2fs 1.32 (09-Nov-2002)
Filesystem volume name: /
Last mounted on: <not available>
Filesystem UUID: cfaec15d-a1dc-46fe-af5b-c9f0a087c078
Filesystem magic number: 0xEF53
Filesystem revision #: 1 (dynamic)
Filesystem features: has_journal dir_index filetype needs_recovery sparse_super
Default mount options: journal_data
~~~~~~~~~~~~
Filesystem state: clean
Errors behavior: Continue
Filesystem OS type: Linux
(...)

$ uname -r
2.4.21-pre4

And ofcourse, it is not possible to remount ext3 fs and change
journalling mode.

Best regards,

Krzysztof Ol?dzki


2003-01-31 15:28:13

by Marc-Christian Petersen

[permalink] [raw]
Subject: Re: Default mount options ignored on ext3

On Friday 31 January 2003 15:18, Krzysztof Ol?dzki wrote:

Hi Krzysztof,

> It seems that "Default mount options" from ext3 fs is ignored by
> the linux kernel. I have just set "Default mount options" to
> "journal_data" on my root fs but kernel still mounts it with
> journal_data_ordered:
I am pretty sure you didn't try "append=rootflags=data=journal" did you? :)

ciao, Marc

2003-01-31 15:36:42

by Krzysztof Olędzki

[permalink] [raw]
Subject: Re: Default mount options ignored on ext3



On Fri, 31 Jan 2003, Marc-Christian Petersen wrote:

> On Friday 31 January 2003 15:18, Krzysztof Ol?dzki wrote:
>
> Hi Krzysztof,
>
> > It seems that "Default mount options" from ext3 fs is ignored by
> > the linux kernel. I have just set "Default mount options" to
> > "journal_data" on my root fs but kernel still mounts it with
> > journal_data_ordered:
> I am pretty sure you didn't try "append=rootflags=data=journal" did you? :)

Yes. This is true. But if I have to set rootflags= I can't find any reason
for allowing to change "Default mount options". Kernel ignores it, mount
ignores it... Hm....

Best Regards,

Krzysztof Oledzki

2003-01-31 16:13:37

by Marc-Christian Petersen

[permalink] [raw]
Subject: Re: Default mount options ignored on ext3

On Friday 31 January 2003 16:45, Krzysztof Ol?dzki wrote:

Hi Krzysztof,

> Yes. This is true. But if I have to set rootflags= I can't find any reason
> for allowing to change "Default mount options". Kernel ignores it, mount
> ignores it... Hm....
Well, those option is ignored for your ROOT device. Anything else != rootfs
will work with mount options / fstab.

ciao, Marc