The Samba-Bugzilla – Attachment 18822 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]
simple patch to fix zfs automounting of snapshots
zfs-automount.patch (text/plain), 734 bytes, created by
Shane Nehring
on 2026-02-03 17:09:36 UTC
(
hide
)
Description:
simple patch to fix zfs automounting of snapshots
Filename:
MIME Type:
Creator:
Shane Nehring
Created:
2026-02-03 17:09:36 UTC
Size:
734 bytes
patch
obsolete
>diff --git source3/smbd/open.c source3/smbd/open.c >index 8a52cbd6850..909784c519f 100644 >--- source3/smbd/open.c >+++ 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,7 @@ 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;
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