https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=282981
Bug ID: 282981
Summary: zfs: fails when setting UF_NOUNLINK with EOPNOSUPP
(SF_UNLINK works)
Product: Base System
Version: 14.1-RELEASE
Hardware: Any
OS: Any
Status: New
Severity: Affects Some People
Priority: ---
Component: kern
Assignee: [email protected]
Reporter: [email protected]
chflags sunlink works, but chflags uunlink does not. This is because
zfs_freebsd_setattr(..) does not map UF_UNLINK to a valid fflags attribute.
Example:
```shell
% chflags uunlink foo
chflags: foo: Operation not supported
% chflags sunlink foo
chflags: foo: Operation not permitted
% sudo chflags sunlink foo
% uname -a
FreeBSD gilot.local 14.1-RELEASE-p4 FreeBSD 14.1-RELEASE-p4 GENERIC amd64
```
Discovered when running a kyua unittest on /tmp backed by ZFS.
--
You are receiving this mail because:
You are the assignee for the bug.