Page MenuHomeFreeBSD

Implement .vop_pathconf and .vop_getacl for the .zfs ctldir
ClosedPublic

Authored by asomers on Feb 14 2018, 12:23 AM.
Tags
None
Referenced Files
Unknown Object (File)
Wed, Dec 11, 2:01 AM
Unknown Object (File)
Wed, Dec 11, 1:59 AM
Unknown Object (File)
Tue, Dec 10, 6:50 AM
Unknown Object (File)
Sun, Dec 1, 2:31 AM
Unknown Object (File)
Oct 3 2024, 10:29 AM
Unknown Object (File)
Oct 3 2024, 8:43 AM
Unknown Object (File)
Oct 1 2024, 1:24 PM
Unknown Object (File)
Sep 25 2024, 10:17 AM
Subscribers

Details

Summary

Implement .vop_pathconf and .vop_getacl for the .zfs ctldir

zfsctl_pathconf will report all the same variables that regular ZFS volumes
report. zfs_common_getacl will report an ACL equivalent to 555, except that
you can't read xattrs or edit attributes.

Fixes a bug where "ls .zfs" will occasionally print something like:
ls: .zfs/.: Operation not supported

PR: 225793

Test Plan

snapshot_018_pos from the ZFS test suite

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

This revision is now accepted and ready to land.Feb 14 2018, 12:51 PM

BTW, this bug long predated your big ctldir refactor. AFAIK, it's always been present in FreeBSD. I'm not sure about Illumos. I actually fixed it at work back in 2013, but the change slipped through the cracks and I didn't push it upstream.

This revision was automatically updated to reflect the committed changes.

BTW, this bug long predated your big ctldir refactor. AFAIK, it's always been present in FreeBSD. I'm not sure about Illumos. I actually fixed it at work back in 2013, but the change slipped through the cracks and I didn't push it upstream.

Yeah... I noticed bug 153142 a while ago, it seemed a like trivial issue, but never got around to it.
You might want to claim that bug now :) Thank you for the fix!