diff options
| author | Rick Macklem <rmacklem@FreeBSD.org> | 2026-03-29 21:41:36 +0000 |
|---|---|---|
| committer | Rick Macklem <rmacklem@FreeBSD.org> | 2026-04-12 00:36:51 +0000 |
| commit | 4beef6a4c5676249c6e87de5354938d5b15dbd88 (patch) | |
| tree | 113cb89ad31b6a6fd3f3ed673cb3eef3f0d5421c /lib/libdevctl/devctl.c | |
| parent | 28ddaaa693756d5ba62790f333913c24fb393d72 (diff) | |
nfs_nfsdsocket.c: Allow Copy/Clone from a read-only fs
For some server file system types, such as ZFS, a Copy/Clone
operation can be done across file systems of the same file
system type.
However, without this patch, the Copy/Clone will fail with
EROFS if the input file is on a read-only mounted file system.
This happens because Copy/Clone will try to do a VOP_SETATTR()
of atime to set the atime.
This patch pretends the VOP_SETATTR() of atime worked for
read-only file systems. It fixes a problem when copying
files from a ZFS snapshot.
PR: 294010
(cherry picked from commit b5815ee99a015c6ac118d7e9646d0c95b72e9f2d)
Diffstat (limited to 'lib/libdevctl/devctl.c')
0 files changed, 0 insertions, 0 deletions
