Searched refs:canmount (Results 1 - 22 of 22) sorted by relevance

/illumos-gate/usr/src/test/zfs-tests/tests/functional/cli_root/zfs_set/
H A Dcanmount_001_pos.ksh37 # Setting valid canmount to filesystem, it is successful.
39 # 'zfs set canmount=on|off <fs>'
74 log_must zfs set canmount=$old_ctr_canmount $TESTPOOL/$TESTCTR
76 log_must zfs set canmount=$old_fs_canmount $TESTPOOL/$TESTFS
82 log_assert "Setting a valid property of canmount to file system, it must be successful."
87 old_fs_canmount=$(get_prop canmount $TESTPOOL/$TESTFS)
89 log_fail "Get the $TESTPOOL/$TESTFS canmount error."
90 old_ctr_canmount=$(get_prop canmount $TESTPOOL/$TESTCTR)
92 log_fail "Get the $TESTPOOL/$TESTCTR canmount error."
101 set_n_check_prop "$value" "canmount" "
[all...]
H A Dcanmount_004_pos.ksh36 # Verify canmount=noauto work fine when setting sharenfs or sharesmb.
39 # 1. Create a fs canmount=noauto.
59 canmnt=$(get_prop canmount $CS_FS)
64 "[canmount=$canmnt,sharenfs=$shnfs,sharesmb=$shsmb,mountpoint=$mntpt]."
68 log_assert "Verify canmount=noauto work fine when setting sharenfs or sharesmb."
75 log_must zfs create -o canmount=noauto -o mountpoint=$oldmpt $CS_FS
95 log_pass "Verify canmount=noauto work fine when setting sharenfs or sharesmb."
H A Dcanmount_003_pos.ksh37 # While canmount=noauto and the dataset is mounted,
42 # 2. Set canmount=noauto for each dataset and check the return value
58 log_must zfs set canmount=${old_canmount[i]} $ds
80 log_assert "While canmount=noauto and the dataset is mounted,"\
96 old_canmount[i]=$(get_prop canmount $ds)
105 set_n_check_prop "noauto" "canmount" "$dataset"
111 log_pass "Setting canmount=noauto to filesystem while dataset busy pass."
H A Dcanmount_002_pos.ksh37 # Setting valid canmount to filesystem, it is successful.
39 # 'zfs set canmount=noauto <fs>'
43 # 2. Set canmount=noauto for each dataset and check the retuen value
69 log_must zfs set canmount=${old_canmount[i]} $ds
98 log_assert "Setting canmount=noauto to file system, it must be successful."
115 old_canmount[i]=$(get_prop canmount $ds)
122 set_n_check_prop "noauto" "canmount" "$dataset"
140 log_must zfs set canmount="${old_canmount[i]}" $dataset
146 set_n_check_prop "noauto" "canmount" "$dataset" "false"
150 log_pass "Setting canmount
[all...]
/illumos-gate/usr/src/test/zfs-tests/tests/functional/cli_root/zfs_inherit/
H A Dzfs_inherit_001_neg.ksh57 set -A prop $props_str canmount
/illumos-gate/usr/src/test/zfs-tests/tests/functional/delegate/
H A Dzfs_allow_012_neg.ksh59 recordsize mountpoint checksum compression canmount atime \
H A Dzfs_allow_010_pos.ksh66 canmount true false \
H A Ddelegate_common.kshlib247 canmount)
/illumos-gate/usr/src/lib/brand/solaris10/zone/
H A Ddetach.ksh66 zfs set canmount=on $ACTIVE_DS >/dev/null 2>&1
H A Dclone.ksh105 zfs clone -o canmount=noauto $ACTIVE_SRC@$SNAPNAME $ACTIVE_DS
H A Dattach.ksh190 zfs set canmount=noauto $ACTIVE_DS >/dev/null 2>&1
H A Dcommon.ksh237 zfs create -o canmount=noauto $ACTIVE_DS
240 zfs set canmount=noauto $ACTIVE_DS >/dev/null 2>&1
/illumos-gate/usr/src/test/zfs-tests/tests/functional/cli_root/zfs_get/
H A Dzfs_get_002_pos.ksh53 snapdir aclmode aclinherit canmount primarycache secondarycache \
H A Dzfs_get_008_pos.ksh56 aclmode aclinherit canmount primarycache secondarycache \
H A Dzfs_get_009_pos.ksh54 zoned snapdir aclmode aclinherit canmount primarycache secondarycache \
H A Dzfs_get_001_pos.ksh62 snapdir aclmode aclinherit canmount primarycache secondarycache \
H A Dzfs_get_005_neg.ksh51 aclinherit canmount primarycache secondarycache \
/illumos-gate/usr/src/test/zfs-tests/tests/functional/history/
H A Dhistory_002_pos.ksh86 canmount off canmount on
98 # quota, reservation, canmount can not be inherited.
101 ${props[$i]} != "canmount" ]];
/illumos-gate/usr/src/lib/libshare/common/
H A Dlibshare_zfs.c280 char canmount[ZFS_MAXPROPLEN]; local
307 /* canmount must be set */
308 canmount[0] = '\0';
309 if (zfs_prop_get(zlist[i], ZFS_PROP_CANMOUNT, canmount,
310 sizeof (canmount), NULL, NULL, 0, B_FALSE) != 0 ||
311 strcmp(canmount, "off") == 0)
556 * "canmount=off and sharenfs=on".
1394 char canmount[ZFS_MAXPROPLEN]; local
1433 /* canmount must be set */
1434 canmount[
[all...]
/illumos-gate/usr/src/test/zfs-tests/tests/functional/cli_root/zpool_import/
H A Dzpool_import_012_pos.ksh107 log_must zfs set canmount=off $pool/$TESTFS/$TESTCTR
108 log_must zfs set canmount=off $pool/$TESTFS/$TESTCTR/$TESTCTR1
/illumos-gate/usr/src/test/zfs-tests/tests/functional/inheritance/
H A Dinherit_001_pos.ksh62 log_must zfs set canmount=off $dataset
/illumos-gate/usr/src/cmd/zfs/
H A Dzfs_main.c5786 uint64_t zoned, canmount; local
5869 * canmount explicit outcome
5877 canmount = zfs_prop_get_int(zhp, ZFS_PROP_CANMOUNT);
5878 if (canmount == ZFS_CANMOUNT_OFF) {
5883 "'canmount' property is set to 'off'\n"), cmdname,
5886 } else if (canmount == ZFS_CANMOUNT_NOAUTO && !explicit) {
6446 /* Ignore canmount=noauto mounts */

Completed in 146 milliseconds