zfs: workaround panic on rootfs mount
The import of OpenZFS PR 13758 causes a panic in zfsctl_is_node() if ZFS is mounting as root filesystem. This implements a workaround until the issue is resolved by authors.
This commit is contained in:
parent
42af87b83b
commit
5d42ef55de
@ -1328,7 +1328,15 @@ zfs_mount(vfs_t *vfsp)
|
||||
}
|
||||
|
||||
fetch_osname_options(osname, &checkpointrewind);
|
||||
|
||||
/*
|
||||
* TBD: Mounting ZFS as root causes a panic in zfsctl_is_node()
|
||||
* add temporary workaround until issue is resolved
|
||||
*/
|
||||
if ((vfsp->vfs_flag & MNT_ROOTFS) != 0 &&
|
||||
(vfsp->vfs_flag & MNT_UPDATE) == 0) {
|
||||
isctlsnap = (zfsctl_is_node(mvp) && strchr(osname, '@') != NULL);
|
||||
}
|
||||
|
||||
/*
|
||||
* Check for mount privilege?
|
||||
|
Loading…
Reference in New Issue
Block a user