Searched defs:mountpoint (Results 1 - 24 of 24) sorted by relevance

/illumos-gate/usr/src/cmd/rmmount/
H A Drmmount.c81 char *mountpoint = NULL; local
185 mountpoint = argv[optind + 1];
192 0, opts, num_opts, mountpoint) ? 0 : 1;
/illumos-gate/usr/src/cmd/fs.d/
H A Dfssnapsup.c53 "mountpoint",
78 * displays snapshot information. If mountpoint is set, information is
80 * If mountpoint is NULL, information is displayed for all snapshots.
104 fssnap_show_status(char *mountpoint, char *opts, int labels, int brief) argument
122 if (mountpoint) {
123 if (strncmp(BLOCK_PATH, mountpoint, strlen(BLOCK_PATH)) == 0 ||
124 strncmp(CHAR_PATH, mountpoint, strlen(CHAR_PATH)) == 0) {
125 n = strrchr(mountpoint, '/');
194 if (mountpoint != NULL) {
196 (!usenum && strcmp(mountpoint, mn
[all...]
H A Dswitchout.c238 if (diff > 0) /* gave more than one mountpoint or device */
407 stat_snap(char *cmd, char *mountpoint, char *opts) argument
413 if (mountpoint) {
414 if ((fd = open(mountpoint, O_RDONLY)) < 0) {
422 cmd, mountpoint, en, errstr);
428 fssnap_show_status(mountpoint, opts, 1, (opts ? 0 : 1));
/illumos-gate/usr/src/cmd/fs.d/ufs/tunefs/
H A Dtunefs.c151 char *special, *name, *mountpoint = NULL; local
174 searchmnttab(&special, &mountpoint);
176 * If mounted device, search mnttab for mountpoint
181 searchmnttab(&special, &mountpoint);
187 if (mountpoint == NULL)
207 * If a mountpoint has been found then we will ioctl() the file
212 if (mountpoint == NULL) {
217 mountpoint = NULL;
318 if (mountpoint) {
319 mountfd = open(mountpoint, O_RDONL
[all...]
/illumos-gate/usr/src/cmd/fs.d/nfs/rquotad/
H A Drpc.rquotad.c415 char mountpoint[256]; local
435 (void) strlcpy(mountpoint, mntp.mnt_mountp,
436 sizeof (mountpoint));
437 strcat(mountpoint, "/quotas");
438 if ((fd = open64(mountpoint, O_RDWR)) >= 0)
451 (void) strlcpy(mountpoint, mountp, sizeof (mountpoint));
452 strcat(mountpoint, "/quotas");
454 if ((fd = open64(mountpoint, O_RDONLY)) < 0) {
456 syslog(LOG_ERR, "can not open %s: %m ", mountpoint);
[all...]
/illumos-gate/usr/src/lib/pylibbe/common/
H A Dlibbe_py.c588 * mountpoint - The path of the mountpoint to mount the
602 char *mountpoint = NULL; local
606 if (!PyArg_ParseTuple(args, "zz", &beName, &mountpoint)) {
612 BE_ATTR_MOUNTPOINT, mountpoint)) {
/illumos-gate/usr/src/cmd/rmvolmgr/
H A Dvold.c177 char mountpoint[MAXPATHLEN]; local
300 if (snprintf(mountpoint, MAXPATHLEN,
306 (void) makepath(mountpoint, 0700);
307 (void) chown(mountpoint, mnt_uid, mnt_gid);
312 if (snprintf(mountpoint, MAXPATHLEN,
315 (void) chmod(mountpoint, 0755);
318 if (snprintf(mountpoint, MAXPATHLEN,
327 /* make our mountpoint */
328 (void) makepath(mountpoint, 0755);
330 arg_mountpoint = mountpoint;
[all...]
H A Drmm_common.c496 char **opts, int num_opts, char *mountpoint, DBusError *error)
512 if (mountpoint == NULL) {
513 mountpoint = "";
516 if (!dbus_message_append_args(dmesg, DBUS_TYPE_STRING, &mountpoint,
803 char **opts, int num_opts, char *mountpoint)
828 opts, num_opts, mountpoint, &error);
881 struct action_arg *aap, char **opts, int num_opts, char *mountpoint)
953 opts, num_opts, mountpoint);
1073 char *mountpoint; local
1157 if (!(mountpoint
495 rmm_hal_mount(LibHalContext *hal_ctx, const char *udi, char **opts, int num_opts, char *mountpoint, DBusError *error) argument
801 rmm_action_one(LibHalContext *hal_ctx, const char *name, action_t action, const char *dev, const char *udi, LibHalVolume *v, char **opts, int num_opts, char *mountpoint) argument
880 rmm_action(LibHalContext *hal_ctx, const char *name, action_t action, struct action_arg *aap, char **opts, int num_opts, char *mountpoint) argument
[all...]
/illumos-gate/usr/src/cmd/fs.d/ufs/fssnap/
H A Dfssnap.c98 extern void fssnap_show_status(char *mountpoint, char *opts, int labels,
109 char *mountpoint = NULL; local
208 /* Otherwise, the last option is the mountpoint. */
209 mountpoint = argv[optind];
210 if ((mountfd = open(mountpoint, O_RDONLY)) < 0)
211 die_perror(mountpoint);
215 stats_snap(mountpoint, suboptions);
/illumos-gate/usr/src/lib/libshare/common/
H A Dlibshare_zfs.c209 * compares the mountpoint on two zfs file systems handles.
230 * return legacy mountpoint. Caller provides space for mountpoint and
235 char *mountpoint, size_t mlen)
252 (void) strlcpy(mountpoint, entry.mnt_mountp,
279 char mountpoint[ZFS_MAXPROPLEN]; local
284 /* must have a mountpoint */
285 if (zfs_prop_get(zlist[i], ZFS_PROP_MOUNTPOINT, mountpoint,
286 sizeof (mountpoint), NULL, NULL, 0, B_FALSE) != 0) {
287 /* no mountpoint */
234 get_legacy_mountpoint(char *path, char *dataset, size_t dlen, char *mountpoint, size_t mlen) argument
543 zfs_inherited(sa_handle_t handle, sa_share_t share, char *sourcestr, char *shareopts, char *mountpoint, char *proto, char *dataset) argument
617 zfs_notinherited(sa_group_t group, sa_share_t share, char *mountpoint, char *shareopts, char *proto, char *dataset, int grouperr) argument
695 sa_zfs_process_share(sa_handle_t handle, sa_group_t group, sa_share_t share, char *mountpoint, char *proto, zprop_source_t source, char *shareopts, char *sourcestr, char *dataset) argument
758 char mountpoint[ZFS_MAXPROPLEN]; local
1392 char mountpoint[ZFS_MAXPROPLEN]; local
[all...]
/illumos-gate/usr/src/cmd/fs.d/udfs/fsck/
H A Dfsck.h189 char mountpoint[100]; /* string set to contain mount point */ variable
/illumos-gate/usr/src/uts/common/fs/ufs/
H A Dufs_vfsops.c1388 refstr_t *mountpoint; local
1744 mountpoint = vfs_getmntpoint(vfsp);
1746 (strcmp("/usr", refstr_value(mountpoint)) == 0)) {
1750 refstr_rele(mountpoint);
/illumos-gate/usr/src/uts/common/io/
H A Dfssnap.c1751 refstr_t *mountpoint; local
1874 mountpoint = vfs_getmntpoint(fsvp->v_vfsp);
1876 refstr_value(mountpoint), backpath);
1877 refstr_rele(mountpoint);
2177 const char *mountpoint, const char *backfilename)
2198 if (mountpoint != NULL) {
2200 "misc", KSTAT_TYPE_RAW, strlen(mountpoint) + 1, 0);
2206 (void) strncpy(mntpoint->ks_data, mountpoint,
2207 strlen(mountpoint));
2176 fssnap_create_kstats(snapshot_id_t *sidp, int snapnum, const char *mountpoint, const char *backfilename) argument
/illumos-gate/usr/src/uts/common/fs/zfs/
H A Dzfs_ctldir.c46 * as a mountpoint for the snapshot. Whenever we lookup a specific snapshot, we
590 * Change the current mountpoint info:
786 char *mountpoint; local
895 mountpoint = kmem_alloc(mountpoint_len, KM_SLEEP);
896 (void) snprintf(mountpoint, mountpoint_len, "%s/.zfs/snapshot/%s",
900 margs.dir = mountpoint;
909 kmem_free(mountpoint, mountpoint_len);
/illumos-gate/usr/src/cmd/beadm/
H A Dbeadm.c136 "\tbeadm mount [-s ro|rw] [-v] beName [mountpoint]\n"
137 "\tbeadm unmount [-fv] beName | mountpoint\n"
138 "\tbeadm umount [-fv] beName | mountpoint\n"
1222 char *mountpoint; local
1262 mountpoint = argv[1];
1263 if (mountpoint[0] != '/') {
1265 "Mount point must start with a /.\n"), mountpoint);
1283 mountpoint = mkdtemp(tmp_mp);
1292 if (be_nvl_add_string(be_attrs, BE_ATTR_MOUNTPOINT, mountpoint) != 0)
1303 (void) printf(_("Mounted successfully on: '%s'\n"), mountpoint);
[all...]
/illumos-gate/usr/src/cmd/ndmpd/tlm/
H A Dtlm_lib.c728 char mountpoint[PATH_MAX]; local
740 if (zfs_prop_get(zhp, ZFS_PROP_MOUNTPOINT, mountpoint, PATH_MAX, NULL,
750 rest = name + strlen(mountpoint);
751 (void) snprintf(sname, TLM_MAX_PATH_NAME, "%s/%s/%s%s", mountpoint,
/illumos-gate/usr/src/cmd/zoneadm/
H A Dzfs.c108 /* If legacy, must look in mnttab for mountpoint. */
147 mount2zhandle(char *mountpoint) argument
151 cb.match_name = mountpoint;
399 /* create the mountpoint if necessary */
425 * file system name (not mountpoint) should be for that path. We do not
441 * directly under the mountpoint for the parent fs using the last component
442 * of the name as the mountpoint directory.
1090 * If the zone has ever been moved then the mountpoint dir will not be
1155 * mountpoint. Since it is file system already, we don't have the
1227 "dataset %s: mountpoint canno
1361 get_zfs_non_legacy_mountpoint(const char *dataset_name, char **mountpoint) argument
[all...]
/illumos-gate/usr/src/lib/libbe/common/
H A Dbe_create.c246 /* Set the mountpoint property for the root dataset */
281 * Clear the mountpoint property so that the non-shared
2286 "failed to get dataset mountpoint (%s): %s\n"),
2297 * mountpoint for a zoned dataset we'll have to skip
2298 * this dataset. This is because the mountpoint is not
2942 char mountpoint[MAXPATHLEN]; local
2975 /* Get the mountpoint and source properties of the existing dataset */
2976 if (zfs_prop_get(zhp, ZFS_PROP_MOUNTPOINT, mountpoint,
2977 sizeof (mountpoint), &sourcetype, source, sizeof (source),
2980 "failed to get mountpoint fo
[all...]
H A Dbe_mount.c91 * Description: Mounts a BE and its subordinate datasets at a given mountpoint.
109 char *mountpoint = NULL; local
132 /* Get mountpoint */
133 if (nvlist_lookup_string(be_attrs, BE_ATTR_MOUNTPOINT, &mountpoint)
148 ret = _be_mount(be_name, &mountpoint, flags);
191 /* Check if we have mountpoint argument instead of BE name */
233 * will generate a temporary mountpoint to mount the BE at. It
234 * will return this temporary mountpoint to the caller via the
302 * Fix this BE's mountpoint if its root dataset isn't set to
306 be_print_err(gettext("be_mount: mountpoint chec
425 char mountpoint[MAXPATHLEN]; local
575 char mountpoint[MAXPATHLEN]; local
648 char mountpoint[MAXPATHLEN]; local
712 char mountpoint[MAXPATHLEN]; local
999 char mountpoint[MAXPATHLEN]; local
1152 char mountpoint[MAXPATHLEN]; local
1300 char mountpoint[MAXPATHLEN]; local
1433 char mountpoint[MAXPATHLEN]; local
1655 char mountpoint[MAXPATHLEN]; local
1972 get_mountpoint_from_vfstab(char *altroot, const char *fs, char *mountpoint, size_t size_mp, boolean_t get_alt_mountpoint) argument
2039 char mountpoint[MAXPATHLEN]; local
2121 char mountpoint[MAXPATHLEN]; local
2195 char mountpoint[MAXPATHLEN]; local
2259 char mountpoint[MAXPATHLEN]; local
[all...]
H A Dbe_utils.c115 char *mountpoint = NULL; local
171 ret = _be_mount(node->be_node_name, &mountpoint,
283 free(mountpoint);
665 * Get the mountpoint for the root pool dataset.
964 * Get the mountpoint for the root pool dataset.
1413 * Get the mountpoint for the root pool dataset.
1574 * Get the mountpoint for the root pool dataset.
1799 * Get the mountpoint for the root pool dataset.
2073 * Get the mountpoint for the root pool dataset.
2154 * mountpoint
2163 be_update_vfstab(char *be_name, char *old_rc_loc, char *new_rc_loc, be_fs_list_data_t *fld, char *mountpoint) argument
[all...]
/illumos-gate/usr/src/cmd/halt/
H A Dhalt.c603 validate_disk(char *arg, char *mountpoint) argument
616 bcopy(FASTBOOT_MOUNTPOINT, mountpoint, sizeof (FASTBOOT_MOUNTPOINT));
618 if (strstr(arg, mountpoint) == NULL) {
623 (void) umount2(mountpoint, MS_FORCE);
627 if (lstat64(mountpoint, &statbuf) != 0) {
628 if (mkdirp(mountpoint, 0755) != 0) {
630 gettext("Failed to create mountpoint %s\n"),
631 mountpoint);
638 rc = validate_ufs_disk(arg, mountpoint);
641 rc = validate_zfs_pool(arg, mountpoint);
662 validate_ufs_disk(char *arg, char *mountpoint) argument
682 validate_zfs_pool(char *arg, char *mountpoint) argument
957 fastboot_bename(const char *bename, char *mountpoint, size_t mpsz) argument
987 char mountpoint[MAXPATHLEN]; local
[all...]
/illumos-gate/usr/src/lib/libzfs/common/
H A Dlibzfs_mount.c33 * mountpoint.
125 * Search the sharetab for the given mountpoint and protocol, returning
129 is_shared(libzfs_handle_t *hdl, const char *mountpoint, zfs_share_proto_t proto) argument
141 /* the mountpoint is the first entry on each line */
146 if (strcmp(buf, mountpoint) == 0) {
267 * in 'where' with the current mountpoint, and return 1. Otherwise, we return
292 * mountpoint in 'buf'.
331 char mountpoint[ZFS_MAXPROPLEN]; local
346 if (!zfs_is_mountable(zhp, mountpoint, sizeof (mountpoint), NUL
419 unmount_one(libzfs_handle_t *hdl, const char *mountpoint, int flags) argument
435 zfs_unmount(zfs_handle_t *zhp, const char *mountpoint, int flags) argument
530 char *mountpoint; local
769 char mountpoint[ZFS_MAXPROPLEN]; local
879 unshare_one(libzfs_handle_t *hdl, const char *name, const char *mountpoint, zfs_share_proto_t proto) argument
922 zfs_unshare_proto(zfs_handle_t *zhp, const char *mountpoint, zfs_share_proto_t *proto) argument
960 zfs_unshare_nfs(zfs_handle_t *zhp, const char *mountpoint) argument
966 zfs_unshare_smb(zfs_handle_t *zhp, const char *mountpoint) argument
1009 zfs_unshareall_bypath(zfs_handle_t *zhp, const char *mountpoint) argument
1028 char mountpoint[ZFS_MAXPROPLEN]; local
[all...]
/illumos-gate/usr/src/cmd/zpool/
H A Dzpool_main.c213 "\t [-m mountpoint] [-R root] <pool> <vdev> ...\n"));
772 * [-R root] [-m mountpoint] <pool> <dev> ...
778 * -m Set default mountpoint for the root dataset. By default it's
801 char *mountpoint = NULL; local
832 /* Equivalent to -O mountpoint=optarg */
833 mountpoint = optarg;
880 mountpoint = propval;
945 * Check the validity of the mountpoint and direct the user to use the
946 * '-m' mountpoint option if it looks like its in use.
948 if (mountpoint
[all...]
/illumos-gate/usr/src/cmd/zfs/
H A Dzfs_main.c281 "<-a | filesystem|mountpoint>\n"));
284 "<-a | filesystem|mountpoint>\n"));
678 /* create the mountpoint if necessary */
3050 "name,used,available,referenced,mountpoint";
5781 char mountpoint[ZFS_MAXPROPLEN]; local
5820 * includes those with a legacy mountpoint, or those with
5823 verify(zfs_prop_get(zhp, ZFS_PROP_MOUNTPOINT, mountpoint,
5824 sizeof (mountpoint), NULL, NULL, 0, B_FALSE) == 0);
5845 * shareopts is non-legacy but the mountpoint is legacy, we
5848 if (strcmp(mountpoint, "legac
6621 char mountpoint[ZFS_MAXPROPLEN]; local
[all...]

Completed in 287 milliseconds