Commit d424187
committed
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.1 parent a18e172 commit d424187
1 file changed
Lines changed: 6 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6237 | 6237 | | |
6238 | 6238 | | |
6239 | 6239 | | |
| 6240 | + | |
| 6241 | + | |
6240 | 6242 | | |
6241 | 6243 | | |
6242 | 6244 | | |
| |||
6245 | 6247 | | |
6246 | 6248 | | |
6247 | 6249 | | |
| 6250 | + | |
6248 | 6251 | | |
| 6252 | + | |
| 6253 | + | |
| 6254 | + | |
6249 | 6255 | | |
6250 | 6256 | | |
6251 | 6257 | | |
| |||
0 commit comments