Home
last modified time | relevance | path

Searched refs:mountpoint (Results 1 – 25 of 178) sorted by relevance

12345678

/titanic_41/usr/src/lib/libzfs/common/
H A Dlibzfs_mount.c125 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 Dbe_mount.c109 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 Dlibshare_zfs.c235 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 Dcanmount_004_pos.ksh58 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 Dmountpoint_001_pos.ksh62 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 Dmountpoint_002_pos.ksh57 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 Dshare_mount_001_neg.ksh44 log_must $ZFS set mountpoint=$oldmpt $fs
51 oldmpt=$(get_prop mountpoint $fs)
54 log_must $ZFS set mountpoint=$propval $fs
H A Dcanmount_002_pos.ksh68 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 Dmountpoint_003_pos.ksh48 [[ -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 Dcanmount_003_pos.ksh57 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 Dreadonly_001_pos.ksh62 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 Dtunefs.c151 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 Dhalt.c602 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 Dzfs_rename.kshlib51 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 Dzfs_mount_008_pos.ksh63 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 Dzfs_mount.kshlib84 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 Dzfs_mount_006_pos.ksh57 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 Dfssnapsup.c104 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 Dswitchout.c407 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 Drefquota_001_pos.ksh52 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 Dfs-minimal57 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 Drpc.rquotad.c418 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 Dzfs_unmount_009_pos.ksh65 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 DMakefile44 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 Dvold.c177 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()

12345678