Skip to contentSkip to conversation

relatime in /etc/fstab on FC8

DISCUSSION Andrew Morton 2 participants 3 messages Mar 4, 2008 VFS

lore
Share & tools
lore
#0 lore raw

I'm all confused. When I change my fc8 machine's fstab to

LABEL=/ / ext3 relatime 1 1

the machine won't boot - ext3 claims to not recognise the mount option. But putting "commit=100" in there works OK, as does running `mount -oremount,relatime' after it has booted. relatime is a vfs option, not a fs option, but should that matter?

It'll be due to me running `/sbin/new-kernel-pkg --mkinitrd', which takes things out of /etc/fstab and stuffs them into initrd.

I fell I'm missing something obvious here. Help?

#1 lore raw
Quoted 9 lines · Andrew Morton

I'm all confused. When I change my fc8 machine's fstab to

LABEL=/ / ext3 relatime 1 1

the machine won't boot - ext3 claims to not recognise the mount option. But putting "commit=100" in there works OK, as does running `mount -oremount,relatime' after it has booted. relatime is a vfs option, not a fs option, but should that matter?

Quoted 4 lines

It'll be due to me running `/sbin/new-kernel-pkg --mkinitrd', which takes things out of /etc/fstab and stuffs them into initrd.

I fell I'm missing something obvious here. Help?

The nash mount builtin doesn't understand the relatime mount option and consequently can't pass the MS_RELATIME flag to mount(2).

Fedora kernels are patched to mount every filesystem with norelatime.

Signature · 1 line
Nicholas Miell <[email protected]>
#2 lore raw
Quoted 11 lines · On Tue, 04 Mar 2008 08:50:10 +0000 Nicholas Miell <[email protected]> wrote:
Quoted 9 lines · Andrew Morton

I'm all confused. When I change my fc8 machine's fstab to

LABEL=/ / ext3 relatime 1 1

the machine won't boot - ext3 claims to not recognise the mount option. But putting "commit=100" in there works OK, as does running `mount -oremount,relatime' after it has booted. relatime is a vfs option, not a fs option, but should that matter?

Quoted 8 lines
Quoted 4 lines

It'll be due to me running `/sbin/new-kernel-pkg --mkinitrd', which takes things out of /etc/fstab and stuffs them into initrd.

I fell I'm missing something obvious here. Help?

The nash mount builtin doesn't understand the relatime mount option and consequently can't pass the MS_RELATIME flag to mount(2).

OIC. Thanks. That's pretty obnoxious. It'd be saner to put a copy of mount(8) into the initrd?