Source-Changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

CVS commit: src/external/cddl/osnet/dist/uts/common/fs/zfs



Module Name:    src
Committed By:   yamt
Date:           Tue Mar 17 08:20:52 UTC 2026

Modified Files:
        src/external/cddl/osnet/dist/uts/common/fs/zfs: zfs_vnops.c

Log Message:
zfs_netbsd_gop_markupdate: actually update file timestamp

the implementation before this commit was basically no-op.

some notes:

* this is (ab)used in zfs_netbsd_write for fifo/spec vnodes.
  i feel it's a bit excessive to update the timestamp on every
  writes to /dev/null. unfortunately, zfs doesn't have nodevmtime
  option. well, i suspect netbsd is the only os with the traditional
  devmtime behavior these days. we may want to implement delayed
  mtime update as ffs does.

* this is used by zfs_netbsd_putpages via genfs_putpages. but it's
  redundant because zfs_putapage updates the timestamp as well.

* this is not used by zfs_netbsd_getpages. zfs doesn't use
  genfs_getpages. zfs_netbsd_getpages doesn't have the
  corresponding logic either. maybe it's ok for most of applications
  as far as mtime will be updated sooner or later.


To generate a diff of this commit:
cvs rdiff -u -r1.88 -r1.89 \
    src/external/cddl/osnet/dist/uts/common/fs/zfs/zfs_vnops.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.




Home | Main Index | Thread Index | Old Index