Jürgen Keil wrote:
I have my /usr filesystem configured as a zfs filesystem,
using a legacy mountpoint.  I noticed that the system boots
with atime updates temporarily turned off (and doesn't record
file accesses in the /usr filesystem):

# df -h /usr
Filesystem             size   used  avail capacity  Mounted on
files/usr-b57           98G   2.1G    18G    11%    /usr

# zfs get atime files/usr-b57
NAME           PROPERTY  VALUE          SOURCE
files/usr-b57  atime     off            temporary


That is, when a zfs legacy filesystem is mounted in
read-only mode, and then remounted read/write,
atime updates are off:

# zfs create -o mountpoint=legacy files/foobar

# mount -F zfs -o ro files/foobar /mnt

# zfs get atime files/foobar
NAME          PROPERTY  VALUE         SOURCE
files/foobar  atime     on            default

# mount -F zfs -o remount,rw files/foobar /mnt

# zfs get atime files/foobar
NAME          PROPERTY  VALUE         SOURCE
files/foobar  atime     off           temporary


Is this expected behaviour?


I suspect it's related to this bug:

http://bugs.opensolaris.org/view_bug.do?bug_id=6498096

which is "zfs noatime broken with legacy mount".

I started fixing this a while back but never finished
it.  Is this causing you pain, or is it just something
you noticed?

-Chris

_______________________________________________
zfs-discuss mailing list
zfs-discuss@opensolaris.org
http://mail.opensolaris.org/mailman/listinfo/zfs-discuss

Reply via email to