[Bug 282981] zfs: fails when setting UF_NOUNLINK with EOPNOSUPP (SF_UNLINK works)
- Reply: bugzilla-noreply_a_freebsd.org: "[Bug 282981] zfs: fails when setting UF_NOUNLINK with EOPNOSUPP (SF_UNLINK works)"
- Reply: bugzilla-noreply_a_freebsd.org: "[Bug 282981] zfs: fails when setting UF_NOUNLINK with EOPNOSUPP (SF_UNLINK works)"
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Tue, 26 Nov 2024 02:45:29 UTC
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: bugs@FreeBSD.org
Reporter: ngie@FreeBSD.org
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.