linux-ext4.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* mounting with lazytime doesn't work on ext4
@ 2017-09-18 19:26 Markus Trippelsdorf
  2017-09-19  8:35 ` Markus Trippelsdorf
  2017-09-19 11:00 ` Lukas Czerner
  0 siblings, 2 replies; 10+ messages in thread
From: Markus Trippelsdorf @ 2017-09-18 19:26 UTC (permalink / raw)
  To: Theodore Ts'o; +Cc: Andreas Dilger, linux-ext4

I switched back to ext4 yesterday, because my btrfs fs got corrupted.
However mounting with lazytime doesn't work, neither specifying it in
/etc/fstab nor a manual remount. It looks like the option is simply
ignored.

Strace shows, e.g.:

 # mount -o lazytime /boot
mount("/dev/sdc2", "/boot", "ext4", MS_LAZYTIME, NULL) = 0 
EXT4-fs (sdc2): mounted filesystem with ordered data mode. Opts: (null) 
/dev/sdc2 on /boot type ext4 (rw,relatime,data=ordered)

 # mount -o remount,lazytime /var
mount("/dev/sdb2", "/var", 0x12c4460, MS_REMOUNT|MS_NOATIME|MS_LAZYTIME, NULL) = 0 
EXT4-fs (sdb2): re-mounted. Opts: (null)
/dev/sdb2 on /var type ext4 (rw,noatime,data=ordered)

When I set "sb->s_flags |= MS_LAZYTIME;" unconditionally in
fs/ext4/super.c:5057 (just deleting the if statement), then lazytime
gets used when I remount.

I'm running the latest git tree (4.14.0-rc1).

-- 
Markus

^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2017-09-30  7:10 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-09-18 19:26 mounting with lazytime doesn't work on ext4 Markus Trippelsdorf
2017-09-19  8:35 ` Markus Trippelsdorf
2017-09-19 10:18   ` [PATCH] VFS: Handle lazytime in do_mount() Markus Trippelsdorf
2017-09-19 10:37     ` [PATCH v2] " Markus Trippelsdorf
2017-09-19 15:25       ` Lukas Czerner
2017-09-30  7:10         ` Markus Trippelsdorf
2017-09-19 14:46   ` mounting with lazytime doesn't work on ext4 Lukas Czerner
2017-09-19 14:55     ` Markus Trippelsdorf
2017-09-19 11:00 ` Lukas Czerner
2017-09-19 11:03   ` Markus Trippelsdorf

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).