Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F177111118
D38662.1793813608.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Authored By
Unknown
Size
851 B
Referenced Files
None
Subscribers
None
D38662.1793813608.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,11 +2515,14 @@
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;
}
return (0);
}
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Wed, Nov 4, 5:33 PM (11 h, 21 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
41445117
Default Alt Text
D38662.1793813608.diff (851 B)
Attached To
Mode
D38662: Fix per-jail zfs.mount_snapshot setting
Attached
Detach File
Event Timeline