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

"YAMAMOTO Takashi" <[email protected]>
Newsgroups gmane.os.netbsd.devel.cvs
Message-ID <[email protected]>
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.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.