git: acbcb68c9f74 - main - stand: Remove const from zfs_lookup's zfsmount argument
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Sat, 03 Oct 2026 17:34:51 UTC
The branch main has been updated by imp:
URL: https://cgit.FreeBSD.org/src/commit/?id=acbcb68c9f744dedc49835b8e235a0afa13f6c26
commit acbcb68c9f744dedc49835b8e235a0afa13f6c26
Author: Warner Losh <imp@FreeBSD.org>
AuthorDate: 2026-10-03 14:41:40 +0000
Commit: Warner Losh <imp@FreeBSD.org>
CommitDate: 2026-10-03 17:32:07 +0000
stand: Remove const from zfs_lookup's zfsmount argument
Dynamic system attribute layout can require modifications to the mount
structure on lookup. Drop the const to allow that.
Sponsored by: Netflix
Differential Revision: https://reviews.freebsd.org/D60260
---
stand/libsa/zfs/zfsimpl.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/stand/libsa/zfs/zfsimpl.c b/stand/libsa/zfs/zfsimpl.c
index b16d0ac406e1..123aadc37b53 100644
--- a/stand/libsa/zfs/zfsimpl.c
+++ b/stand/libsa/zfs/zfsimpl.c
@@ -3845,7 +3845,7 @@ struct obj_list {
* Lookup a file and return its dnode.
*/
static int
-zfs_lookup(const struct zfsmount *mount, const char *upath,
+zfs_lookup(struct zfsmount *mount, const char *upath,
dnode_phys_t *dnode, uint64_t *objnum_out)
{
int rc;