[Bug 274274] nmount logs to_path twice via ktrace()
- In reply to: bugzilla-noreply_a_freebsd.org: "[Bug 274274] nmount logs to_path twice via ktrace()"
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Thu, 05 Oct 2023 13:08:34 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=274274
Ed Maste <emaste@freebsd.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |emaste@freebsd.org
--- Comment #2 from Ed Maste <emaste@freebsd.org> ---
Note that ktrace is documented to list namei translations performed by the
process(es), not syscall arguments. In the mount_nullfs case those are the
namei operations that the kernel performed due to the nmount syscall, in the
order that it performed them.
unmount may not log a name translation because it may not perform one:
> If the MNT_BYFSID flag is specified, dir should instead be a file system
> ID encoded as “FSID:val0:val1”, where val0 and val1 are the contents of
> the fsid_t val[] array in decimal. The file system that has the
> specified file system ID will be unmounted.
It may be that the ktrace(1) man page needs a note to make it clear that namei
operations do not necessarily correspond directly to syscall path arguments.
--
You are receiving this mail because:
You are the assignee for the bug.