Searched refs:rootfs (Results 1 - 16 of 16) sorted by relevance

/freebsd-12-stable/tests/sys/cddl/zfs/tests/rootpool/
H A Drootpool_001_pos.ksh43 # rootpool's bootfs property must be equal to <rootfs>
47 # 2) get the rootpool and rootfs if it's zfs root
49 # 4) chek if the boofs equal to rootfs
61 log_assert "rootpool's bootfs property must be equal to <rootfs>"
63 typeset rootfs=$(get_rootfs)
67 if [[ $bootfs != $rootfs ]]; then
68 log_fail "rootfs is not same as bootfs."
71 log_pass "rootpool's bootfs property equal to rootfs."
H A Drootpool_007_neg.ksh47 # 2) get the rootfs
48 # 3) set the rootfs's compression to gzip 1-9 which should fail.
63 log_must $ZFS set compression=$orig_compress $rootfs
70 typeset rootfs=$(get_pool_prop bootfs $rootpool)
71 typeset orig_compress=$(get_prop compression $rootfs)
73 typeset assert_msg="the zfs rootfs's compression property can not set to \
81 log_mustnot $ZFS set compression=${gtype[i]} $rootfs
/freebsd-12-stable/tests/sys/cddl/zfs/tests/cli_root/zfs_upgrade/
H A Dzfs_upgrade_005_pos.ksh64 if datasetexists $rootfs ; then
65 log_must $ZFS destroy -Rf $rootfs
67 log_must $ZFS create $rootfs
76 typeset current_fs=$rootfs/$verfs
78 typeset current_clone=$rootfs/clone$verfs
102 rootfs=$TESTPOOL/$TESTFS
120 for fs in $($ZFS list -rH -t filesystem -o name $rootfs) ; do
H A Dzfs_upgrade_003_pos.ksh64 if datasetexists $rootfs ; then
65 log_must $ZFS destroy -Rf $rootfs
67 log_must $ZFS create $rootfs
76 typeset current_fs=$rootfs/$verfs
78 typeset current_clone=$rootfs/clone$verfs
89 rootfs=$TESTPOOL/$TESTFS
H A Dzfs_upgrade_004_pos.ksh64 if datasetexists $rootfs ; then
65 log_must $ZFS destroy -Rf $rootfs
67 log_must $ZFS create $rootfs
76 typeset current_fs=$rootfs/$verfs
78 typeset current_clone=$rootfs/clone$verfs
96 rootfs=$TESTPOOL/$TESTFS
H A Dzfs_upgrade.kshlib58 function default_setup_datasets #rootfs
60 typeset rootfs=$1
61 typeset pool=${rootfs%%/*}
71 typeset current_fs=$rootfs/$verfs
73 typeset current_clone=$rootfs/clone$verfs
118 function default_cleanup_datasets #rootfs
120 typeset rootfs=$1
122 if datasetexists $rootfs ; then
123 log_must $ZFS destroy -Rf $rootfs
126 if datasetnonexists $rootfs ; the
[all...]
H A Dzfs_upgrade_001_pos.ksh68 if datasetexists $rootfs ; then
69 log_must $ZFS destroy -Rf $rootfs
71 log_must $ZFS create $rootfs
83 rootfs=$TESTPOOL/$TESTFS
98 typeset current_fs=$rootfs/$verfs
100 typeset current_clone=$rootfs/clone$verfs
111 log_must $ZFS create -V 100m $rootfs/$TESTVOL
/freebsd-12-stable/lib/libbe/
H A Dbe_impl.h39 char rootfs[BE_MAXPATHLEN]; member in struct:libbe_handle
H A Dbe_info.c46 if (*lbh->rootfs != '\0')
47 return (strrchr(lbh->rootfs, '/') + sizeof(char));
49 return (lbh->rootfs);
60 return (lbh->rootfs);
H A Dbe.c72 * Iterator function for locating the rootfs amongst the children of the
83 * Check first if root is ZFS; if not, we'll bail on rootfs capture.
98 strlcpy(lbh->rootfs, zfs_get_name(zfs), sizeof(lbh->rootfs));
125 * Grab rootfs, we'll work backwards from there if an optional BE root
131 *lbh->rootfs = '\0';
134 /* Strip off the final slash from rootfs to get the be root */
135 strlcpy(lbh->root, lbh->rootfs, sizeof(lbh->root));
417 if (strcmp(path, lbh->rootfs) == 0 ||
/freebsd-12-stable/release/tools/
H A Darm.subr71 chroot ${CHROOTDIR} gpart add -t freebsd-ufs -l rootfs -a 64k ${mddev}
72 chroot ${CHROOTDIR} newfs -U -L rootfs /dev/${mddev}p2
81 chroot ${CHROOTDIR} newfs -U -L rootfs /dev/${mddev}s2a
195 echo "/dev/ufs/rootfs / ufs rw 1 1" \
201 echo "/dev/ufs/rootfs / ufs rw 1 1" \
H A Dvmimage.subr28 ROOTFSPART="-p freebsd-ufs/rootfs:=${VMBASE}"
34 ROOTFSPART="-p freebsd-ufs/rootfs:=${VMBASE}"
40 ROOTFSPART="-p freebsd-ufs/rootfs:=${VMBASE}"
86 newfs -L rootfs /dev/${mddev}
106 newfs -L rootfs /dev/${mdnew}
141 echo "/dev/${ROOTLABEL}/rootfs / ufs rw 1 1" \
/freebsd-12-stable/tests/sys/cddl/zfs/include/
H A Dlibtest.kshlib2943 typeset rootfs=""
2944 rootfs=$($MOUNT | $AWK '$3 == "\/" && $4~/zfs/ {print $1}')
2945 if [[ -z "$rootfs" ]]; then
2946 log_fail "Can not get rootfs"
2948 $ZFS list $rootfs > /dev/null 2>&1
2950 $ECHO $rootfs
2957 # get the rootfs's pool name
2963 typeset rootfs=""
2965 rootfs=$(get_rootfs)
2966 rootpool=`$ECHO $rootfs | aw
[all...]
/freebsd-12-stable/sbin/fdisk/
H A Dfdisk.c1504 struct statfs rootfs; local
1511 if (statfs("/", &rootfs) == -1)
1517 strlcpy(dev, rootfs.f_mntfromname, sizeof (dev));
1527 memcpy(s, rootfs.f_mntfromname + rm[1].rm_so,
/freebsd-12-stable/usr.sbin/bsdinstall/partedit/
H A Dgpart_ops.c1395 const char *rootfs; local
1403 rootfs = "ufs"; /* Assume ufs if nothing else present */
1406 rootfs = md->fstab->fs_vfstype;
1450 gpart_partcode(pp, rootfs);
/freebsd-12-stable/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/
H A Dzfs_vfsops.c1702 error = spa_import_rootpool(rootfs.bo_name, zfs_devid);
1711 if (error = zfs_parse_bootfs(zfs_bootfs, rootfs.bo_name)) {
1723 if (error = zfs_domount(vfsp, rootfs.bo_name)) {

Completed in 261 milliseconds