View | Details | Raw Unified | Return to bug 221064
Collapse All | Expand All

(-)sys/cddl/contrib/opensolaris/uts/common/fs/zfs/zfs_vfsops.c (+10 lines)
Lines 1622-1627 Link Here
1622
1622
1623
	if (vfs_getopt(vfsp->mnt_optnew, "from", (void **)&osname, NULL))
1623
	if (vfs_getopt(vfsp->mnt_optnew, "from", (void **)&osname, NULL))
1624
		return (SET_ERROR(EINVAL));
1624
		return (SET_ERROR(EINVAL));
1625
1626
	char *fspath;
1627
	if (vfs_getopt(vfsp->mnt_optnew, "fspath", (void **)&fspath, NULL))
1628
		fspath = "NONE";
1629
1630
	if (!(strcmp(fspath, "/") != 0 || vfsp->vfs_flag & MNT_ROOTFS || vfsp->vfs_flag & MNT_UPDATE)) {
1631
		printf("zfs_mount: can not mount root from userspace, %s:%s on %s\n", "zfs", osname, fspath);
1632
		return (SET_ERROR(EBUSY));
1633
	}
1634
1625
#endif	/* illumos */
1635
#endif	/* illumos */
1626
1636
1627
	/*
1637
	/*

Return to bug 221064