Lines Matching refs:mountpoint
46 const char *mountpoint;
56 char *mountpoint;
61 if (!zfs_is_mounted(zfs_hdl, &mountpoint))
63 if (strcmp(mountpoint, info->path) == 0) {
65 free(mountpoint);
68 free(mountpoint);
74 * mount it at the passed mountpoint. If the deepmount flag is set, continue
81 char *mountpoint;
87 if (zfs_is_mounted(zfs_hdl, &mountpoint)) {
88 free(mountpoint);
93 * canmount and mountpoint are both ignored for the BE dataset, because
98 snprintf(tmp, BE_MAXPATHLEN, "%s", info->mountpoint);
109 * We've encountered mountpoint=none at some intermediate
117 mountpoint = be_mountpoint_augmented(info->lbh, zfs_mnt);
118 snprintf(tmp, BE_MAXPATHLEN, "%s%s", info->mountpoint,
119 mountpoint);
155 char *mountpoint;
166 if (!zfs_is_mounted(zfs_hdl, &mountpoint)) {
169 free(mountpoint);
235 be_mount(libbe_handle_t *lbh, char *bootenv, char *mountpoint, int flags,
257 /* Create mountpoint if it is not specified */
258 if (mountpoint == NULL) {
269 info.mountpoint = (mountpoint == NULL) ? mnt_temp : mountpoint;
281 strlcpy(result_loc, mountpoint == NULL ? mnt_temp : mountpoint,
306 info.mountpoint = NULL;
321 * to be looking at a root-mount. If the mountpoint is naturally beyond the
326 be_mountpoint_augmented(libbe_handle_t *lbh, char *mountpoint)
330 return (mountpoint);
331 if (mountpoint == NULL || *mountpoint == '\0')
332 return (mountpoint);
334 if (mountpoint[lbh->altroot_len] == '\0') {
335 *(mountpoint + 1) = '\0';
336 return (mountpoint);
338 return (mountpoint + lbh->altroot_len);