Lines Matching defs:mountpoint

88  * Description:	Mounts a BE and its subordinate datasets at a given mountpoint.
107 char *mountpoint = NULL;
140 /* Get mountpoint */
141 if (nvlist_lookup_string(be_attrs, BE_ATTR_MOUNTPOINT, &mountpoint)
164 ret = _be_mount(be_name, altpool, &mountpoint, flags);
253 * will generate a temporary mountpoint to mount the BE at. It
254 * will return this temporary mountpoint to the caller via the
336 * Fix this BE's mountpoint if its root dataset isn't set to
340 be_print_err(gettext("be_mount: mountpoint check "
354 "make temporary mountpoint\n"));
449 char mountpoint[MAXPATHLEN];
508 * BE is not mounted, fix this BE's mountpoint if its root
512 be_print_err(gettext("be_unmount: mountpoint check "
523 * If we didn't get a mountpoint from the zfs_is_mounted call,
527 if (zfs_prop_get(zhp, ZFS_PROP_MOUNTPOINT, mountpoint,
528 sizeof (mountpoint), NULL, NULL, 0, B_FALSE) != 0) {
530 "get mountpoint of (%s)\n"), bt.obe_name);
535 (void) strlcpy(mountpoint, mp, sizeof (mountpoint));
540 if (strcmp(mountpoint, "/") == 0) {
547 ud.altroot = mountpoint;
604 char mountpoint[MAXPATHLEN];
608 /* Get mountpoint property of dataset */
609 if (zfs_prop_get_persistent(zhp, ZFS_PROP_MOUNTPOINT, mountpoint,
610 sizeof (mountpoint), NULL, NULL, 0, B_FALSE, NULL) != 0) {
612 "get mountpoint property for %s: %s\n"), zfs_get_name(zhp),
619 * mountpoint feature is used to mount at the zone root in the
622 if (strcmp(mountpoint, "/") != 0) {
624 "zone root dataset mountpoint is not '/'\n"));
671 char mountpoint[MAXPATHLEN];
681 /* Get the current mountpoint property for the zone root dataset */
682 if (zfs_prop_get_persistent(zhp, ZFS_PROP_MOUNTPOINT, mountpoint,
683 sizeof (mountpoint), NULL, NULL, 0, B_FALSE, NULL) != 0) {
685 "get mountpoint property for zone root dataset (%s): %s\n"),
690 /* If mountpoint not already set to '/', set it to '/' */
691 if (strcmp(mountpoint, "/") != 0) {
695 "failed to set mountpoint of zone root dataset "
708 * of a BE and finds the ones with a legacy mountpoint. For
710 * mountpoint. If found, it adds that file system to the
735 char mountpoint[MAXPATHLEN];
826 * If the root dataset is in the vfstab with a mountpoint of "/",
830 mountpoint, sizeof (mountpoint), B_FALSE) == BE_SUCCESS) {
831 if (strcmp(mountpoint, "/") == 0) {
953 * Description: This function generates a random temporary mountpoint
954 * and creates that mountpoint directory. It returns the
955 * mountpoint in heap storage, so the caller is responsible
959 * temporary mountpoint.
992 * generated tmp mountpoint.
1014 * Attempt to mount on a temp mountpoint
1018 "to make temporary mountpoint\n"));
1062 char mountpoint[MAXPATHLEN];
1068 /* Get dataset's persistent mountpoint and source values */
1073 "get mountpoint and sourcetype for %s\n"),
1082 * mountpoint zfs won't immediately try to mount it.
1092 * If the mountpoint is none, there's nothing to do, goto next.
1093 * If the mountpoint is legacy, legacy mount it with mount(2).
1094 * If the mountpoint is inherited, its mountpoint should
1096 * the mountpoint now by appending its explicitly set
1097 * mountpoint value to the BE mountpoint.
1103 * If the mountpoint is set to 'legacy', we need to
1109 mountpoint, sizeof (mountpoint), B_TRUE) == BE_SUCCESS) {
1112 if (mount(fs_name, mountpoint, MS_DATA,
1117 fs_name, mountpoint);
1130 * Else process dataset mountpoint property relative to altroot.
1132 (void) snprintf(mountpoint, sizeof (mountpoint),
1136 "mountpoint sourcetype of %s is %d, skipping ...\n"),
1143 * Check to see if the mountpoint we need to mount at
1147 if (mkdirp(mountpoint,
1152 "create mount point %s\n"), mountpoint);
1159 mountpoint);
1162 "mount dataset %s at %s: %s\n"), fs_name, mountpoint,
1188 * data - pointer to the mountpoint of where BE is mounted.
1237 * a legacy mountpoint and an entry in the BE's vfstab.
1255 char mountpoint[MAXPATHLEN];
1258 /* Get this dataset's persistent mountpoint property */
1262 "failed to get mountpoint for %s: %s\n"),
1270 * If mountpoint is legacy, try to get its mountpoint from this BE's
1276 mountpoint, sizeof (mountpoint), B_FALSE) != BE_SUCCESS) {
1287 "failed to add %s to fs list\n"), mountpoint);
1398 * a dataset path has an interim mountpoint for something
1461 * the BE mountpoint. If they are not mounted for the current
1477 char mountpoint[MAXPATHLEN];
1490 * If we didn't get a mountpoint from the zfs_is_mounted call,
1491 * get it from the mountpoint property.
1499 "failed to get mountpoint property\n"));
1508 (void) snprintf(mountpoint, sizeof (mountpoint), "%s%s",
1520 if (mount(zhp_mountpoint, mountpoint, mflag, MNTTYPE_LOFS,
1525 zhp_mountpoint, mountpoint, strerror(err));
1539 * the BE mountpoint.
1806 * it returns the mountpoint of that fs in the mountpoint
1808 * it returns the mountpoint with the altroot prepended.
1813 * mountpoint - pointer to buffer of where the mountpoint of
1815 * size_mp - size of mountpoint argument
1817 * mountpoint should be populated with the altroot
1826 get_mountpoint_from_vfstab(char *altroot, const char *fs, char *mountpoint,
1846 * Found entry for fs, grab its mountpoint.
1847 * If the flag to prepend the altroot into the mountpoint
1848 * is set, prepend it. Otherwise, just return the mountpoint.
1851 (void) snprintf(mountpoint, size_mp, "%s%s", altroot,
1854 (void) strlcpy(mountpoint, vp.vfs_mountp, size_mp);
1869 * children filesystems to check if its mountpoint is currently
1871 * removing altroot from the beginning of its mountpoint.
1874 * mountpoint isn't broken, and just happens to begin with
1877 * of this filesystem's mountpoint.
1893 char mountpoint[MAXPATHLEN];
1898 /* Get dataset's persistent mountpoint and source values */
1899 if (zfs_prop_get_persistent(zhp, ZFS_PROP_MOUNTPOINT, mountpoint,
1900 sizeof (mountpoint), &sourcetype, source, sizeof (source),
1903 "failed to get mountpoint and sourcetype for %s\n"),
1910 * If the mountpoint is not inherited and the mountpoint is not
1911 * 'legacy', this file system potentially needs its mountpoint
1915 strcmp(mountpoint, ZFS_MOUNTPOINT_LEGACY) != 0) {
1918 * Check if this file system's current mountpoint is
1921 if (strncmp(mountpoint, altroot, strlen(altroot)) == 0 &&
1922 mountpoint[strlen(altroot)] == '/') {
1925 * Get this dataset's mountpoint relative to the
1928 zhp_mountpoint = mountpoint + strlen(altroot);
1930 /* Fix this dataset's mountpoint value */
1935 "failed to set mountpoint for %s to "
1979 * Check to see if the mountpoint we've been given exists and if
1988 "alternate mountpoint %s\n"), altroot);
2009 * if the root dataset mountpoint should be left as 'legacy'
2011 * dataset with a mountpoint of '/', it sets the mountpoint
2028 char mountpoint[MAXPATHLEN];
2033 mountpoint, sizeof (mountpoint), B_FALSE) == BE_SUCCESS &&
2034 strcmp(mountpoint, "/") == 0) {
2056 * Set mountpoint for BE's root dataset back to '/', or 'legacy'
2062 "set mountpoint of %s to %s\n"), zfs_get_name(zhp),
2072 * Description: This function checks the mountpoint of an unmounted BE to make
2075 * mountpoint set for it. (This could happen if the system was
2080 * whose mountpoint needs to be checked.
2092 char mountpoint[MAXPATHLEN];
2096 * Record what this BE's root dataset mountpoint property is currently
2099 if (zfs_prop_get_persistent(zhp, ZFS_PROP_MOUNTPOINT, mountpoint,
2100 sizeof (mountpoint), NULL, NULL, 0, B_FALSE, NULL) != 0) {
2102 "mountpoint property of (%s): %s\n"), zfs_get_name(zhp),
2108 * If the root dataset mountpoint is set to 'legacy' or '/', we're okay.
2110 if (strcmp(mountpoint, ZFS_MOUNTPOINT_LEGACY) == 0 ||
2111 strcmp(mountpoint, "/") == 0) {
2119 if (zfs_iter_filesystems(zhp, fix_mountpoint_callback, mountpoint)
2126 * will fix its mountpoint to correctly be either 'legacy' or '/'
2134 "make temporary mountpoint\n"));