Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F102763814
D38662.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
964 B
Referenced Files
None
Subscribers
None
D38662.diff
View Options
diff --git a/sys/contrib/openzfs/module/os/freebsd/zfs/zfs_vfsops.c b/sys/contrib/openzfs/module/os/freebsd/zfs/zfs_vfsops.c
--- a/sys/contrib/openzfs/module/os/freebsd/zfs/zfs_vfsops.c
+++ b/sys/contrib/openzfs/module/os/freebsd/zfs/zfs_vfsops.c
@@ -2495,7 +2495,9 @@
mount_snapshot = -1;
else
jsys = JAIL_SYS_NEW;
- if (jsys == JAIL_SYS_NEW) {
+ switch (jsys) {
+ case JAIL_SYS_NEW:
+ {
/* "zfs=new" or "zfs.*": the prison gets its own ZFS info. */
struct zfs_jailparam *zjp;
@@ -2513,12 +2515,22 @@
if (mount_snapshot != -1)
zjp->mount_snapshot = mount_snapshot;
mtx_unlock(&pr->pr_mtx);
- } else {
+ break;
+ }
+ case JAIL_SYS_INHERIT:
/* "zfs=inherit": inherit the parent's ZFS info. */
mtx_lock(&pr->pr_mtx);
osd_jail_del(pr, zfs_jailparam_slot);
mtx_unlock(&pr->pr_mtx);
+ break;
+ case -1:
+ /*
+ * If the setting being changed is not ZFS related
+ * then do nothing.
+ */
+ break;
}
+
return (0);
}
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sun, Nov 17, 8:36 PM (20 h, 44 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
14671930
Default Alt Text
D38662.diff (964 B)
Attached To
Mode
D38662: Fix per-jail zfs.mount_snapshot setting
Attached
Detach File
Event Timeline
Log In to Comment