Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 05 Oct 2023 13:08:34 +0000
From:      bugzilla-noreply@freebsd.org
To:        bugs@FreeBSD.org
Subject:   [Bug 274274] nmount logs to_path twice via ktrace()
Message-ID:  <bug-274274-227-Czk4dFq0hZ@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-274274-227@https.bugs.freebsd.org/bugzilla/>

index | next in thread | previous in thread | raw e-mail

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.

home | help

Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-274274-227-Czk4dFq0hZ>