diff options
author | Umer Saleem <[email protected]> | 2022-03-08 06:52:03 +0500 |
---|---|---|
committer | GitHub <[email protected]> | 2022-03-07 17:52:03 -0800 |
commit | 39a4daf742a4bd34b34f85e004895385e4c46c1a (patch) | |
tree | eed72bcbb589ca6a3d0288cc723ae9fa8da3e73e /module/zfs/dsl_dir.c | |
parent | 9955b9ba2efafeeb88ccb4c4ab5707ef2974fb47 (diff) |
Expose additional file level attributes
ZFS allows to update and retrieve additional file level attributes for
FreeBSD. This commit allows additional file level attributes to be
updated and retrieved for Linux. These include the flags stored in the
upper half of z_pflags only.
Two new IOCTLs have been added for this purpose. ZFS_IOC_GETDOSFLAGS
can be used to retrieve the attributes, while ZFS_IOC_SETDOSFLAGS can
be used to update the attributes.
Attributes that are allowed to be updated include ZFS_IMMUTABLE,
ZFS_APPENDONLY, ZFS_NOUNLINK, ZFS_ARCHIVE, ZFS_NODUMP, ZFS_SYSTEM,
ZFS_HIDDEN, ZFS_READONLY, ZFS_REPARSE, ZFS_OFFLINE and ZFS_SPARSE.
Flags can be or'd together while calling ZFS_IOC_SETDOSFLAGS.
Reviewed-by: Alexander Motin <[email protected]>
Reviewed-by: Brian Behlendorf <[email protected]>
Reviewed-by: Ryan Moeller <[email protected]>
Signed-off-by: Umer Saleem <[email protected]>
Closes #13118
Diffstat (limited to 'module/zfs/dsl_dir.c')
0 files changed, 0 insertions, 0 deletions