Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F157561901
D38662.id117522.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
851 B
Referenced Files
None
Subscribers
None
D38662.id117522.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
Sat, May 23, 8:47 PM (3 h, 35 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
33454039
Default Alt Text
D38662.id117522.diff (851 B)
Attached To
Mode
D38662: Fix per-jail zfs.mount_snapshot setting
Attached
Detach File
Event Timeline
Log In to Comment