Page MenuHomeFreeBSD

rmacklem (Rick Macklem)
User

Projects

User Details

User Since
Jan 13 2015, 10:58 PM (535 w, 21 h)

Recent Activity

Today

rmacklem added a reviewer for D49851: Document the named attribute interface: ziaee.
Wed, Apr 16, 1:44 PM
rmacklem requested review of D49851: Document the named attribute interface.
Wed, Apr 16, 1:44 PM
rmacklem requested review of D49850: runat: A utility that executes a shell command on a named attribute.
Wed, Apr 16, 2:16 AM

Yesterday

rmacklem updated the diff for D49691: open.2: Document the O_NAMEDATTR flag added recently.

Tried to clarify when O_NAMEDATTR is used.

Tue, Apr 15, 3:01 PM
rmacklem updated the diff for D49654: openzfs: Add support for Solaris style extended attributes.

I am now convinced that the check in zfs_freebsd_open()
for O_NAMEDATTR being set is not necessary at all.

Tue, Apr 15, 1:39 AM

Mon, Apr 14

rmacklem updated the diff for D49654: openzfs: Add support for Solaris style extended attributes.

Checking for VIRF_NAMEDATTR in zfs_freebsd_open()
was not needed and broke the runat(1) utility I am writing.

Mon, Apr 14, 11:47 PM

Fri, Apr 11

rmacklem updated the diff for D49691: open.2: Document the O_NAMEDATTR flag added recently.

Add a missing '.' at the end of a statement.

Fri, Apr 11, 3:00 AM
rmacklem closed D49719: statfs.2: Document the new MNT_NAMEDATTR mount flag.
Fri, Apr 11, 1:03 AM
rmacklem committed rG964d0fd62431: statfs.2: Update man page for the MNT_NAMEDATTR flag (authored by rmacklem).
statfs.2: Update man page for the MNT_NAMEDATTR flag
Fri, Apr 11, 1:03 AM

Thu, Apr 10

rmacklem added a comment to D49718: fhopen.2: Document the O_NAMEDATTR flag.

Oops. I didn't see emaste@'s comment until after
doing the commit.

Thu, Apr 10, 2:02 AM
rmacklem committed rGdedbb972d294: fhopen.2: Update man page for O_NAMEDATTR flag (authored by rmacklem).
fhopen.2: Update man page for O_NAMEDATTR flag
Thu, Apr 10, 12:52 AM
rmacklem closed D49718: fhopen.2: Document the O_NAMEDATTR flag.
Thu, Apr 10, 12:52 AM

Wed, Apr 9

rmacklem added a comment to D49718: fhopen.2: Document the O_NAMEDATTR flag.

I do really love putting the commit that the work depends on in "Fixes: " instead of the introductory sentence of the commit message. It makes me feel like the the sentence is clean and just explaining for me, and very predictable to track the tree of events related to the commit.

Wed, Apr 9, 11:06 PM
rmacklem updated the diff for D49718: fhopen.2: Document the O_NAMEDATTR flag.

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@.

Wed, Apr 9, 8:08 PM
rmacklem updated the diff for D49719: statfs.2: Document the new MNT_NAMEDATTR mount flag.

Moved the MNT_NAMEDATTR entry up, to maintain
alphabetical ordering, as suggested by ziaee@.

Wed, Apr 9, 8:05 PM
rmacklem added a comment to D49717: fhopen: Enable handling of O_PATH, fix some bugs.

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.)

Wed, Apr 9, 2:46 AM
rmacklem added a comment to D49717: fhopen: Enable handling of O_PATH, fix some bugs.

Without this patch:
kern_fhopen() requires FREAD or FWRITE.
It checks for these and fails with EINVAL if neither are set.

Wed, Apr 9, 2:36 AM

Tue, Apr 8

rmacklem accepted D49717: fhopen: Enable handling of O_PATH, fix some bugs.
Tue, Apr 8, 11:38 PM
rmacklem requested review of D49719: statfs.2: Document the new MNT_NAMEDATTR mount flag.
Tue, Apr 8, 10:12 PM
rmacklem requested review of D49718: fhopen.2: Document the O_NAMEDATTR flag.
Tue, Apr 8, 10:07 PM

Mon, Apr 7

rmacklem accepted D49674: copy_file_range: Fix overlap checking.

This looks fine to me.

Mon, Apr 7, 12:28 PM

Sun, Apr 6

rmacklem requested review of D49691: open.2: Document the O_NAMEDATTR flag added recently.
Sun, Apr 6, 9:00 PM

Sat, Apr 5

rmacklem added inline comments to D49674: copy_file_range: Fix overlap checking.
Sat, Apr 5, 9:08 PM
rmacklem added inline comments to D49674: copy_file_range: Fix overlap checking.
Sat, Apr 5, 4:57 PM

Thu, Apr 3

rmacklem updated the diff for D49654: openzfs: Add support for Solaris style extended attributes.

Cleanup up zfs_freebsd_lookup(), including adding some
comments to try and explain the named attribute case.

Thu, Apr 3, 3:11 PM
rmacklem updated the diff for D49654: openzfs: Add support for Solaris style extended attributes.

Fixed a bug when open'ng "." in a named attribute directory.

Thu, Apr 3, 4:04 AM

Wed, Apr 2

rmacklem updated the summary of D49654: openzfs: Add support for Solaris style extended attributes.
Wed, Apr 2, 11:53 PM
rmacklem requested review of D49654: openzfs: Add support for Solaris style extended attributes.
Wed, Apr 2, 11:50 PM
rmacklem committed rG6441407b297e: vnode.h: Delete VA_NAMEDATTR_TYPE (authored by rmacklem).
vnode.h: Delete VA_NAMEDATTR_TYPE
Wed, Apr 2, 9:19 PM
rmacklem accepted D49651: stat(2): add st_bsdflags field.

All looks good to me. (I am glad you did this. I would have missed
half of the places that needed to be changed.)

Wed, Apr 2, 8:58 PM
rmacklem committed rG2ec2ba7e232d: vfs: Add VFS/syscall support for Solaris style extended attributes (authored by rmacklem).
vfs: Add VFS/syscall support for Solaris style extended attributes
Wed, Apr 2, 8:47 PM
rmacklem closed D49583: Add VFS/syscall support for Solaris style extended attributes (called named attributes by NFSv4).
Wed, Apr 2, 8:47 PM
rmacklem added a comment to D49583: Add VFS/syscall support for Solaris style extended attributes (called named attributes by NFSv4).
In D49583#1131634, @kib wrote:

Do you want me to prepare the generic patch for stat(2)? Then you would add the setting of the bits as the followup.

Wed, Apr 2, 8:05 PM
rmacklem added a comment to D49583: Add VFS/syscall support for Solaris style extended attributes (called named attributes by NFSv4).
In D49583#1131392, @kib wrote:
In D49583#1131379, @kib wrote:

I think fhopen() should require O_NAMEDATTR to successfully open the attribute inode' handle.
BTW, given a file descriptor, is there a way to understand if this is a regular fd or namedattr fd? In particular, does fstatat(2) return some distinguishing info?

Not a fd. The code needs to get the associated vnode and look for VIRF_NAMEDDIR or VIRF_NAMEDATTR being set.
(I'll tweak fhopen(2) to do that.)

No, I don't have fstatat(2) returning anything in "struct stat" that indicates "namedattr".
(st_flags seem to be all bits that can be set/cleared by chflags and I cannot see any
other field of "struct stat" that could be used to indicate a named attribute dir/attribute.)
Any suggestions?

The regular way would be to define new S_IFMT value for named attr files, but this probably would break too much.
We have st_padding0 field that can be used for additional flags, like st_bsd_flags or similar, and we can allocate the first bit there to mean named attr file. The rename of st_padding0 and the flag definition should be a separate commit.

Wed, Apr 2, 1:40 PM
rmacklem updated the diff for D49583: Add VFS/syscall support for Solaris style extended attributes (called named attributes by NFSv4).

Change fhopen(2) so that O_NAMEDATTR is required to
open a file handle that represents a named attribute or
named attribute directory.

Wed, Apr 2, 1:52 AM
rmacklem added a comment to D49583: Add VFS/syscall support for Solaris style extended attributes (called named attributes by NFSv4).
In D49583#1131379, @kib wrote:

I think fhopen() should require O_NAMEDATTR to successfully open the attribute inode' handle.
BTW, given a file descriptor, is there a way to understand if this is a regular fd or namedattr fd? In particular, does fstatat(2) return some distinguishing info?

Wed, Apr 2, 12:31 AM

Tue, Apr 1

rmacklem updated the diff for D49583: Add VFS/syscall support for Solaris style extended attributes (called named attributes by NFSv4).

Changed MNTK_NAMEDATTR to MNT_NAMEDATTR as
suggested by kib@.

Tue, Apr 1, 10:52 PM
rmacklem added a comment to D49583: Add VFS/syscall support for Solaris style extended attributes (called named attributes by NFSv4).

Fyi, I did a little testing of fhopen(2) and getfhat(2) and
everything seems to work.

Tue, Apr 1, 2:38 PM
rmacklem added a comment to D49583: Add VFS/syscall support for Solaris style extended attributes (called named attributes by NFSv4).

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.
Tue, Apr 1, 3:30 AM
rmacklem added a comment to D49583: Add VFS/syscall support for Solaris style extended attributes (called named attributes by NFSv4).

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.

Tue, Apr 1, 3:12 AM

Sun, Mar 30

rmacklem requested review of D49583: Add VFS/syscall support for Solaris style extended attributes (called named attributes by NFSv4).
Sun, Mar 30, 11:00 PM

Tue, Mar 25

rmacklem committed rGf03c8869127c: nfsd.8: Note that the -n option is deprecated (authored by rmacklem).
nfsd.8: Note that the -n option is deprecated
Tue, Mar 25, 9:37 PM

Mon, Mar 24

rmacklem accepted D49440: copy_file_range: Fix file offset handling.

This looks fine to me and does simplify things, I think?

Mon, Mar 24, 1:22 PM

Sun, Mar 23

rmacklem accepted D49440: copy_file_range: Fix file offset handling.

Looks fine to me.

Sun, Mar 23, 1:13 PM
rmacklem accepted D49455: file: Add a non-blocking mode to foffset_lock().

Looks fine to me, rick

Sun, Mar 23, 1:11 PM
rmacklem added inline comments to D49455: file: Add a non-blocking mode to foffset_lock().
Sun, Mar 23, 1:00 AM

Sat, Mar 22

rmacklem added inline comments to D49440: copy_file_range: Fix file offset handling.
Sat, Mar 22, 10:20 PM
rmacklem added inline comments to D49455: file: Add a non-blocking mode to foffset_lock().
Sat, Mar 22, 10:15 PM
rmacklem added inline comments to D49440: copy_file_range: Fix file offset handling.
Sat, Mar 22, 1:46 AM

Thu, Mar 20

rmacklem accepted D49145: mount_nfs: make temporary DNS failure non-fatal with background mode.
Thu, Mar 20, 1:45 AM

Mar 10 2025

rmacklem closed D49102: Update the nfsd.8 man page to indicate "-n" is deprecated.
Mar 10 2025, 1:37 PM
rmacklem committed rGf27afbd85002: nfsd.8: Note that the -n option is deprecated (authored by rmacklem).
nfsd.8: Note that the -n option is deprecated
Mar 10 2025, 1:37 PM

Mar 5 2025

rmacklem committed rG057409d0259f: nfscl: Return appropriate reply status for NFSv4.1 callbacks (authored by rmacklem).
nfscl: Return appropriate reply status for NFSv4.1 callbacks
Mar 5 2025, 3:32 AM

Mar 4 2025

rmacklem committed rG6ff42c4fafb7: nfscl: Add support for CB_RECALL_ANY to the NFSv4.1/4.2 client (authored by rmacklem).
nfscl: Add support for CB_RECALL_ANY to the NFSv4.1/4.2 client
Mar 4 2025, 2:22 AM

Mar 3 2025

rmacklem committed rGb27900b8d9db: nfscl: Move layout high water variables into clientID (authored by rmacklem).
nfscl: Move layout high water variables into clientID
Mar 3 2025, 1:57 AM
rmacklem committed rG9f5457996e00: nfscl: Move delegation high water variables into clientID (authored by rmacklem).
nfscl: Move delegation high water variables into clientID
Mar 3 2025, 1:55 AM

Feb 28 2025

rmacklem committed rG76fdef764db9: UPDATING: Add an entry for commit 9fed5151903f (authored by rmacklem).
UPDATING: Add an entry for commit 9fed5151903f
Feb 28 2025, 9:35 PM
rmacklem committed rG310646a92ab4: param.h: Bump _FreeBSD_version for commit 9fed5151903f (authored by rmacklem).
param.h: Bump _FreeBSD_version for commit 9fed5151903f
Feb 28 2025, 9:27 PM
rmacklem committed rG9fed5151903f: nfscl: Add support for CB_RECALL_SLOT (authored by rmacklem).
nfscl: Add support for CB_RECALL_SLOT
Feb 28 2025, 9:23 PM

Feb 27 2025

rmacklem abandoned D49104: Add a new retrydns NFS mount option.
Feb 27 2025, 11:41 AM
rmacklem accepted D49145: mount_nfs: make temporary DNS failure non-fatal with background mode.

Looks ok to me. You can decide if retries make sense for
ecode == EAI_NONAME.

Feb 27 2025, 11:39 AM
rmacklem committed rG319b59fbde2f: nfscl: Fix setting of mtime for the NFSv4.n client (authored by rmacklem).
nfscl: Fix setting of mtime for the NFSv4.n client
Feb 27 2025, 2:37 AM
rmacklem committed rG8ac895f924e7: nfscl: Fix setting of mtime for the NFSv4.n client (authored by rmacklem).
nfscl: Fix setting of mtime for the NFSv4.n client
Feb 27 2025, 2:32 AM

Feb 25 2025

rmacklem committed rG29c7551cf797: nfscl: Re-initialize session seq#s when server shrinks slot table (authored by rmacklem).
nfscl: Re-initialize session seq#s when server shrinks slot table
Feb 25 2025, 2:03 AM

Feb 24 2025

rmacklem committed rGb616d997cb48: nfscl: Fix setting of mtime for the NFSv4.n client (authored by rmacklem).
nfscl: Fix setting of mtime for the NFSv4.n client
Feb 24 2025, 9:00 PM

Feb 22 2025

rmacklem requested review of D49104: Add a new retrydns NFS mount option.
Feb 22 2025, 2:42 PM
rmacklem requested review of D49102: Update the nfsd.8 man page to indicate "-n" is deprecated.
Feb 22 2025, 2:39 AM

Feb 19 2025

rmacklem committed rG56c8c19046c4: nfscl: Return appropriate reply status for NFSv4.1 callbacks (authored by rmacklem).
nfscl: Return appropriate reply status for NFSv4.1 callbacks
Feb 19 2025, 11:36 PM

Feb 18 2025

rmacklem committed rG8dc0889f56dd: nfscl: Add support for CB_RECALL_ANY to the NFSv4.1/4.2 client (authored by rmacklem).
nfscl: Add support for CB_RECALL_ANY to the NFSv4.1/4.2 client
Feb 18 2025, 10:36 PM

Feb 17 2025

rmacklem committed rG7e26f1c21049: nfscl: Move layout high water variables into clientID (authored by rmacklem).
nfscl: Move layout high water variables into clientID
Feb 17 2025, 11:43 PM
rmacklem committed rGf5aff1871d32: nfscl: Move delegation high water variables into clientID (authored by rmacklem).
nfscl: Move delegation high water variables into clientID
Feb 17 2025, 12:03 AM

Feb 14 2025

rmacklem committed rG091f30a9d14f: UPDATING: Add entry for commit 4517fbfd4251 (authored by rmacklem).
UPDATING: Add entry for commit 4517fbfd4251
Feb 14 2025, 9:10 PM
rmacklem committed rG464372940b36: param.h: Bump FreeBSD_version for commit 4517fbfd4251 (authored by rmacklem).
param.h: Bump FreeBSD_version for commit 4517fbfd4251
Feb 14 2025, 9:05 PM
rmacklem committed rG4517fbfd4251: nfscl: Add support for CB_RECALL_SLOT (authored by rmacklem).
nfscl: Add support for CB_RECALL_SLOT
Feb 14 2025, 8:59 PM

Feb 11 2025

rmacklem committed rGb97a478896e9: nfscl: Re-initialize session seq#s when server shrinks slot table (authored by rmacklem).
nfscl: Re-initialize session seq#s when server shrinks slot table
Feb 11 2025, 11:53 PM

Feb 1 2025

rmacklem accepted D48795: mountd: Promote missing netmask log to LOG_ERR.

Looks fine to me.

Feb 1 2025, 2:01 PM
rmacklem added a comment to D48570: rpc.tlsservd: provide parallelism with help of pthread(3).

Looks ok to me but I do not know pthreads.
Maybe markj@ can complete a review, since he
has already commented on the code?

If you don't mind, I'd like to push changes today. I will be online through the weekend and not disrupted by usual work & weekday stuff, so will be able to address any issues that may be discovered.

Feb 1 2025, 3:42 AM
rmacklem committed rGa6b4af5e07af: nfsd: Add support for the NFSv4.2 change_attr_type attribute (authored by rmacklem).
nfsd: Add support for the NFSv4.2 change_attr_type attribute
Feb 1 2025, 3:25 AM
rmacklem resigned from D48570: rpc.tlsservd: provide parallelism with help of pthread(3).

Looks ok to me but I do not know pthreads.
Maybe markj@ can complete a review, since he
has already commented on the code?

Feb 1 2025, 12:19 AM
rmacklem accepted D48677: rpcsec_tls: merge RPC failure for rpctls_connect() and rpctls_server().
Feb 1 2025, 12:14 AM
rmacklem resigned from D48569: rpc: limited multithread support for svc_nl.

Looks ok to me but I do not know pthreads.

Feb 1 2025, 12:12 AM
rmacklem accepted D48567: rpc.tlsservd: followup of API refactoring in the previous commit.
Feb 1 2025, 12:09 AM
rmacklem accepted D48549: krpc: add kernel side client over netlink(4).
Feb 1 2025, 12:08 AM
rmacklem accepted D48550: libc/rpc: add userland side RPC server over netlink(4).
Feb 1 2025, 12:06 AM
rmacklem accepted D48551: genl: add RPC parser that dumps what sys/rpc/clnt_nl.c sends.
Feb 1 2025, 12:04 AM
rmacklem accepted D48566: rpcsec_tls/server: API refactoring between kernel and rpc.tlsservd(8).
Feb 1 2025, 12:02 AM
rmacklem accepted D48777: rpc.tlsservd/rpc.tlsclntd: rename 'refno' field to 'cookie'.
Feb 1 2025, 12:00 AM

Jan 31 2025

rmacklem added inline comments to D48567: rpc.tlsservd: followup of API refactoring in the previous commit.
Jan 31 2025, 10:06 PM
rmacklem added inline comments to D48566: rpcsec_tls/server: API refactoring between kernel and rpc.tlsservd(8).
Jan 31 2025, 10:01 PM
rmacklem resigned from D48554: kgssapi: remove the gssd_syscall.
Jan 31 2025, 9:54 PM
rmacklem accepted D48565: rpc.tlsclntd: followup of API refactoring in the previous commit.
Jan 31 2025, 9:50 PM

Jan 30 2025

rmacklem accepted D48564: rpcsec_tls/client: API refactoring between kernel and rpc.tlsclntd(8).
Jan 30 2025, 11:22 PM
rmacklem accepted D48563: krpc: assert that we don't support kernel RPC over unix(4).
Jan 30 2025, 11:14 PM
rmacklem accepted D48562: rpc.tlsservd: run netlink(4) service and use new API to get sockets.
Jan 30 2025, 11:12 PM

Jan 29 2025

rmacklem accepted D48550: libc/rpc: add userland side RPC server over netlink(4).
Jan 29 2025, 11:37 PM
rmacklem accepted D48552: kgssapi: use netlink RPC client to talk to gssd(8).
Jan 29 2025, 10:16 PM
rmacklem accepted D48549: krpc: add kernel side client over netlink(4).
Jan 29 2025, 10:13 PM
rmacklem added inline comments to D48550: libc/rpc: add userland side RPC server over netlink(4).
Jan 29 2025, 10:07 PM
rmacklem accepted D48561: rpcsec_tls/server: use netlink RPC client to talk to rpc.tlsservd(8).
Jan 29 2025, 12:45 AM
rmacklem accepted D48649: rpcsec_tls: cleanup the rpctls_syscall().
Jan 29 2025, 12:36 AM