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?

It works if I remount with the "atime" option:

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

# zfs get atime files/foobar
NAME          PROPERTY  VALUE         SOURCE
files/foobar  atime     on            default
 
 
This message posted from opensolaris.org
_______________________________________________
zfs-discuss mailing list
[email protected]
http://mail.opensolaris.org/mailman/listinfo/zfs-discuss

Reply via email to