The Samba-Bugzilla – Attachment 18824 Details for
Bug 15991
samba not triggering mount of zfs snapshot in dataset .zfs/snapshots/<snapname> directory
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Patch in git-am format
bug-15991.txt (text/plain), 1.07 KB, created by
Volker Lendecke
on 2026-02-05 09:12:52 UTC
(
hide
)
Description:
Patch in git-am format
Filename:
MIME Type:
Creator:
Volker Lendecke
Created:
2026-02-05 09:12:52 UTC
Size:
1.07 KB
patch
obsolete
>From a5d838063cccb80f5a23a3c93e1c6ad7c24a08d8 Mon Sep 17 00:00:00 2001 >From: Shane Nehring <snehring@iastate.edu> >Date: Thu, 5 Feb 2026 10:07:17 +0100 >Subject: [PATCH] smbd: Fix ZFS on Linux snapshot mount > >Bug: https://bugzilla.samba.org/show_bug.cgi?id=15991 >Signed-off-by: Shane Nehring <snehring@iastate.edu> >--- > source3/smbd/open.c | 5 ++++- > 1 file changed, 4 insertions(+), 1 deletion(-) > >diff --git a/source3/smbd/open.c b/source3/smbd/open.c >index 8a52cbd6850..123d89bf18c 100644 >--- a/source3/smbd/open.c >+++ b/source3/smbd/open.c >@@ -46,6 +46,7 @@ > > #if defined(HAVE_LINUX_MAGIC_H) > #include <linux/magic.h> >+#define ZFS_SUPER_MAGIC 0x2fc12fc1 > #endif > > static NTSTATUS inherit_new_acl(files_struct *dirfsp, files_struct *fsp); >@@ -887,7 +888,9 @@ static bool fsp_is_automount_mountpoint(struct files_struct *fsp, int old_fd) > DBG_ERR("fstatfs failed: %s\n", strerror(errno)); > return false; > } >- if (sbuf.f_type == AUTOFS_SUPER_MAGIC) { >+ if ((sbuf.f_type == AUTOFS_SUPER_MAGIC) || >+ (sbuf.f_type == ZFS_SUPER_MAGIC)) >+ { > return true; > } > return false; >-- >2.51.0 >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 15991
:
18822
| 18824 |
18951