/titanic_41/usr/src/lib/libzfs/common/ |
H A D | libzfs_mount.c | 125 is_shared(libzfs_handle_t *hdl, const char *mountpoint, zfs_share_proto_t proto) in is_shared() argument 142 if (strcmp(buf, mountpoint) == 0) { in is_shared() 265 char mountpoint[ZFS_MAXPROPLEN]; in zfs_mount() local 280 if (!zfs_is_mountable(zhp, mountpoint, sizeof (mountpoint), NULL)) in zfs_mount() 284 if (lstat(mountpoint, &buf) != 0) { in zfs_mount() 285 if (mkdirp(mountpoint, 0755) != 0) { in zfs_mount() 290 mountpoint)); in zfs_mount() 302 !dir_is_empty(mountpoint)) { in zfs_mount() 306 dgettext(TEXT_DOMAIN, "cannot mount '%s'"), mountpoint)); in zfs_mount() 310 if (mount(zfs_get_name(zhp), mountpoint, MS_OPTIONSTR | flags, in zfs_mount() [all …]
|
/titanic_41/usr/src/lib/libbe/common/ |
H A D | be_mount.c | 109 char *mountpoint = NULL; in be_mount() local 133 if (nvlist_lookup_string(be_attrs, BE_ATTR_MOUNTPOINT, &mountpoint) in be_mount() 148 ret = _be_mount(be_name, &mountpoint, flags); in be_mount() 425 char mountpoint[MAXPATHLEN]; in _be_unmount() local 490 if (zfs_prop_get(zhp, ZFS_PROP_MOUNTPOINT, mountpoint, in _be_unmount() 491 sizeof (mountpoint), NULL, NULL, 0, B_FALSE) != 0) { in _be_unmount() 498 (void) strlcpy(mountpoint, mp, sizeof (mountpoint)); in _be_unmount() 503 if (strcmp(mountpoint, "/") == 0) { in _be_unmount() 510 ud.altroot = mountpoint; in _be_unmount() 575 char mountpoint[MAXPATHLEN]; in be_mount_zone_root() local [all …]
|
/titanic_41/usr/src/lib/libshare/common/ |
H A D | libshare_zfs.c | 235 char *mountpoint, size_t mlen) in get_legacy_mountpoint() argument 252 (void) strlcpy(mountpoint, entry.mnt_mountp, in get_legacy_mountpoint() 279 char mountpoint[ZFS_MAXPROPLEN]; in get_zfs_dataset() local 285 if (zfs_prop_get(zlist[i], ZFS_PROP_MOUNTPOINT, mountpoint, in get_zfs_dataset() 286 sizeof (mountpoint), NULL, NULL, 0, B_FALSE) != 0) { in get_zfs_dataset() 292 if (strcmp(mountpoint, ZFS_MOUNTPOINT_NONE) == 0 || in get_zfs_dataset() 293 strcmp(mountpoint, ZFS_MOUNTPOINT_LEGACY) == 0) { in get_zfs_dataset() 299 get_legacy_mountpoint(path, mountpoint, in get_zfs_dataset() 300 sizeof (mountpoint), NULL, 0) == 0) { in get_zfs_dataset() 301 dataset = mountpoint; in get_zfs_dataset() [all …]
|
/titanic_41/usr/src/test/zfs-tests/tests/functional/cli_root/zfs_set/ |
H A D | canmount_004_pos.ksh | 58 mntpt=$(get_prop mountpoint $CS_FS) 71 log_must $ZFS create -o canmount=noauto -o mountpoint=$oldmpt $CS_FS 81 mntpt=$(get_prop mountpoint $CS_FS) 83 log_must $ZFS set mountpoint="$newmpt" $CS_FS 85 log_must $ZFS set mountpoint="$oldmpt" $CS_FS
|
H A D | mountpoint_001_pos.ksh | 62 log_must $ZFS set mountpoint=$old_ctr_mpt $TESTPOOL/$TESTCTR 63 log_must $ZFS set mountpoint=$old_fs_mpt $TESTPOOL/$TESTFS 71 old_fs_mpt=$(get_prop mountpoint $TESTPOOL/$TESTFS) 74 old_ctr_mpt=$(get_prop mountpoint $TESTPOOL/$TESTCTR)
|
H A D | mountpoint_002_pos.ksh | 57 log_must $ZFS set mountpoint=$old_ctr_mpt $TESTPOOL/$TESTCTR 58 log_must $ZFS set mountpoint=$old_fs_mpt $TESTPOOL/$TESTFS 68 old_fs_mpt=$(get_prop mountpoint $TESTPOOL/$TESTFS) 71 old_ctr_mpt=$(get_prop mountpoint $TESTPOOL/$TESTCTR)
|
H A D | share_mount_001_neg.ksh | 44 log_must $ZFS set mountpoint=$oldmpt $fs 51 oldmpt=$(get_prop mountpoint $fs) 54 log_must $ZFS set mountpoint=$propval $fs
|
H A D | canmount_002_pos.ksh | 68 log_must $ZFS set mountpoint=${old_mnt[i]} $ds 76 mntp=$(get_prop mountpoint $ds) 114 old_mnt[i]=$(get_prop mountpoint $ds) 123 log_must $ZFS set mountpoint=$tmpmnt $dataset 141 log_must $ZFS set mountpoint="${old_mnt[i]}" $dataset
|
H A D | mountpoint_003_pos.ksh | 48 [[ -n $oldmpt ]] && log_must $ZFS set mountpoint=$oldmpt $testfs 75 oldmpt=$(get_prop mountpoint $testfs) 76 log_must $ZFS set mountpoint=legacy $testfs
|
H A D | canmount_003_pos.ksh | 57 log_must $ZFS set mountpoint=${old_mnt[i]} $ds 65 mntp=$(get_prop mountpoint $ds) 95 old_mnt[i]=$(get_prop mountpoint $ds)
|
H A D | readonly_001_pos.ksh | 62 typeset mtpt=$(get_prop mountpoint $dataset) 76 typeset mtpt=$(get_prop mountpoint $dataset) 102 typeset mtpt=$(get_prop mountpoint $dataset)
|
/titanic_41/usr/src/cmd/fs.d/ufs/tunefs/ |
H A D | tunefs.c | 151 char *special, *name, *mountpoint = NULL; in main() local 174 searchmnttab(&special, &mountpoint); in main() 181 searchmnttab(&special, &mountpoint); in main() 187 if (mountpoint == NULL) in main() 212 if (mountpoint == NULL) { in main() 217 mountpoint = NULL; in main() 318 if (mountpoint) { in main() 319 mountfd = open(mountpoint, O_RDONLY); in main() 321 perror(mountpoint); in main() 323 "tunefs: can't tune %s\n", mountpoint); in main() [all …]
|
/titanic_41/usr/src/cmd/halt/ |
H A D | halt.c | 602 validate_disk(char *arg, char *mountpoint) in validate_disk() argument 615 bcopy(FASTBOOT_MOUNTPOINT, mountpoint, sizeof (FASTBOOT_MOUNTPOINT)); in validate_disk() 617 if (strstr(arg, mountpoint) == NULL) { in validate_disk() 622 (void) umount2(mountpoint, MS_FORCE); in validate_disk() 626 if (lstat64(mountpoint, &statbuf) != 0) { in validate_disk() 627 if (mkdirp(mountpoint, 0755) != 0) { in validate_disk() 630 mountpoint); in validate_disk() 637 rc = validate_ufs_disk(arg, mountpoint); in validate_disk() 640 rc = validate_zfs_pool(arg, mountpoint); in validate_disk() 647 mountpoint); in validate_disk() [all …]
|
/titanic_41/usr/src/test/zfs-tests/tests/functional/cli_root/zfs_rename/ |
H A D | zfs_rename.kshlib | 51 log_must $CP $DATA $(get_prop mountpoint $TESTPOOL/$TESTFS1)/$TESTFILE0 56 log_must $CP $DATA $(get_prop mountpoint $TESTPOOL/$TESTCTR1)/$TESTFILE0 63 log_must $CP $DATA $(get_prop mountpoint $TESTPOOL/$TESTVOL)/$TESTFILE0 96 typeset mntp=$(get_prop mountpoint $newfs) 99 log_must $ZFS set mountpoint=$mntp $oldfs
|
/titanic_41/usr/src/test/zfs-tests/tests/functional/cli_root/zfs_mount/ |
H A D | zfs_mount_008_pos.ksh | 63 mntpnt=$(get_prop mountpoint $fs) 65 mntpnt1=$(get_prop mountpoint $fs1) 71 log_must $ZFS set mountpoint=$mntpnt $fs1 84 log_must $ZFS set mountpoint=$mntpnt1 $fs1
|
H A D | zfs_mount.kshlib | 84 log_must $ZFS set mountpoint=$mntpoint $pool/$fs 89 log_must $ZFS set mountpoint=$mntpoint $pool/$fs 109 mtpt=$(get_prop mountpoint "$pool/$fs")
|
H A D | zfs_mount_006_pos.ksh | 57 log_must $ZFS set mountpoint=$TESTDIR $TESTPOOL/$TESTFS 86 log_must $ZFS set mountpoint=$mtpt $TESTPOOL/$TESTFS 103 log_must $ZFS set mountpoint=$mtpt $TESTPOOL/$TESTFS1
|
/titanic_41/usr/src/cmd/fs.d/ |
H A D | fssnapsup.c | 104 fssnap_show_status(char *mountpoint, char *opts, int labels, int brief) in fssnap_show_status() argument 122 if (mountpoint) { in fssnap_show_status() 123 if (strncmp(BLOCK_PATH, mountpoint, strlen(BLOCK_PATH)) == 0 || in fssnap_show_status() 124 strncmp(CHAR_PATH, mountpoint, strlen(CHAR_PATH)) == 0) { in fssnap_show_status() 125 n = strrchr(mountpoint, '/'); in fssnap_show_status() 194 if (mountpoint != NULL) { in fssnap_show_status() 196 (!usenum && strcmp(mountpoint, mnt->ks_data) != 0)) in fssnap_show_status()
|
H A D | switchout.c | 407 stat_snap(char *cmd, char *mountpoint, char *opts) in stat_snap() argument 413 if (mountpoint) { in stat_snap() 414 if ((fd = open(mountpoint, O_RDONLY)) < 0) { in stat_snap() 422 cmd, mountpoint, en, errstr); in stat_snap() 428 fssnap_show_status(mountpoint, opts, 1, (opts ? 0 : 1)); in stat_snap()
|
/titanic_41/usr/src/test/zfs-tests/tests/functional/refquota/ |
H A D | refquota_001_pos.ksh | 52 log_must $ZFS set mountpoint=$TESTDIR $TESTPOOL/$TESTFS 64 mntpnt=$(get_prop mountpoint $fs) 71 mntpnt=$(get_prop mountpoint $sub)
|
/titanic_41/usr/src/cmd/svc/milestone/ |
H A D | fs-minimal | 57 mountpt=`zfs get -H -o value mountpoint $be$fs 2>/dev/null` 76 /sbin/zfs list -rH -o mountpoint -s mountpoint -t filesystem $be | \
|
/titanic_41/usr/src/cmd/fs.d/nfs/rquotad/ |
H A D | rpc.rquotad.c | 418 char mountpoint[256]; local 438 (void) strlcpy(mountpoint, mntp.mnt_mountp, 439 sizeof (mountpoint)); 440 strcat(mountpoint, "/quotas"); 441 if ((fd = open64(mountpoint, O_RDWR)) >= 0) 454 (void) strlcpy(mountpoint, mountp, sizeof (mountpoint)); 455 strcat(mountpoint, "/quotas"); 457 if ((fd = open64(mountpoint, O_RDONLY)) < 0) { 459 syslog(LOG_ERR, "can not open %s: %m ", mountpoint);
|
/titanic_41/usr/src/test/zfs-tests/tests/functional/cli_root/zfs_unmount/ |
H A D | zfs_unmount_009_pos.ksh | 65 log_must $ZFS set mountpoint=$TESTDIR $TESTPOOL/$TESTFS 73 log_must $ZFS set mountpoint=$TESTDIR $TESTPOOL/$TESTFS 87 typeset mtpt=$(get_prop mountpoint $fs)
|
/titanic_41/usr/src/cmd/hal/tools/ |
H A D | Makefile | 44 hal-storage-cleanup-mountpoint \ 116 hal-storage-cleanup-mountpoint: hal-storage-cleanup-mountpoint.c \ 118 $(LINK.c) hal-storage-cleanup-mountpoint.c \
|
/titanic_41/usr/src/cmd/rmvolmgr/ |
H A D | vold.c | 177 char mountpoint[MAXPATHLEN]; in vold_rmmount() local 300 if (snprintf(mountpoint, MAXPATHLEN, in vold_rmmount() 306 (void) makepath(mountpoint, 0700); in vold_rmmount() 307 (void) chown(mountpoint, mnt_uid, mnt_gid); in vold_rmmount() 312 if (snprintf(mountpoint, MAXPATHLEN, in vold_rmmount() 315 (void) chmod(mountpoint, 0755); in vold_rmmount() 318 if (snprintf(mountpoint, MAXPATHLEN, in vold_rmmount() 328 (void) makepath(mountpoint, 0755); in vold_rmmount() 330 arg_mountpoint = mountpoint; in vold_rmmount()
|