User Details
- User Since
- Jan 13 2015, 10:58 PM (535 w, 21 h)
Today
Yesterday
Tried to clarify when O_NAMEDATTR is used.
I am now convinced that the check in zfs_freebsd_open()
for O_NAMEDATTR being set is not necessary at all.
Mon, Apr 14
Checking for VIRF_NAMEDATTR in zfs_freebsd_open()
was not needed and broke the runat(1) utility I am writing.
Fri, Apr 11
Add a missing '.' at the end of a statement.
Thu, Apr 10
Oops. I didn't see emaste@'s comment until after
doing the commit.
Wed, Apr 9
Removed the sentence w.r.t. the specific error, since
it is covered in the ERROR section. Also, moved the
ENOATTR entries so that they are in alphabetical order,
as suggested by ziaee@.
Moved the MNT_NAMEDATTR entry up, to maintain
alphabetical ordering, as suggested by ziaee@.
Just to clarify what the previous comment was talking about.
Without this patch:
fhopen(&fh, O_RDONLY | O_NAMEDATTR | O_PATH) works
but
fhopen(&fh, O_EXEC | O_NAMEDATTR | O_PATH) fails with EINVAL
(You can basically ignore the O_NAMEDATTR. I just did the tests with
some test code I had lying about for O_NAMEDATTR.)
Without this patch:
kern_fhopen() requires FREAD or FWRITE.
It checks for these and fails with EINVAL if neither are set.
Tue, Apr 8
Mon, Apr 7
This looks fine to me.
Sun, Apr 6
Sat, Apr 5
Thu, Apr 3
Cleanup up zfs_freebsd_lookup(), including adding some
comments to try and explain the named attribute case.
Fixed a bug when open'ng "." in a named attribute directory.
Wed, Apr 2
All looks good to me. (I am glad you did this. I would have missed
half of the places that needed to be changed.)
Change fhopen(2) so that O_NAMEDATTR is required to
open a file handle that represents a named attribute or
named attribute directory.
Tue, Apr 1
Changed MNTK_NAMEDATTR to MNT_NAMEDATTR as
suggested by kib@.
Fyi, I did a little testing of fhopen(2) and getfhat(2) and
everything seems to work.
W.r.t. fhopen(2), I think there is a couple of ways to handle
O_NAMEDATTR.
- Just don't allow it, similar to O_CREAT.
or
- Fail the fhopen(2) if the file handle does not represent a named attribute directory or a named attribute file.
I need to think about fhopen(2) and friends.
I thought I had disabled use of O_NAMEDATTR
for them, but maybe I missed that in the patch.
Sun, Mar 30
Tue, Mar 25
Mon, Mar 24
This looks fine to me and does simplify things, I think?
Sun, Mar 23
Looks fine to me.
Looks fine to me, rick
Sat, Mar 22
Thu, Mar 20
Mar 10 2025
Mar 5 2025
Mar 4 2025
Mar 3 2025
Feb 28 2025
Feb 27 2025
Looks ok to me. You can decide if retries make sense for
ecode == EAI_NONAME.
Feb 25 2025
Feb 24 2025
Feb 22 2025
Feb 19 2025
Feb 18 2025
Feb 17 2025
Feb 14 2025
Feb 11 2025
Feb 1 2025
Looks fine to me.
Looks ok to me but I do not know pthreads.
Maybe markj@ can complete a review, since he
has already commented on the code?
Looks ok to me but I do not know pthreads.