Lines Matching refs:mountpoint
46 const char *mountpoint; member
56 char *mountpoint; in be_mountcheck_cb() local
61 if (!zfs_is_mounted(zfs_hdl, &mountpoint)) in be_mountcheck_cb()
63 if (strcmp(mountpoint, info->path) == 0) { in be_mountcheck_cb()
65 free(mountpoint); in be_mountcheck_cb()
68 free(mountpoint); in be_mountcheck_cb()
81 char *mountpoint; in be_mount_iter() local
87 if (zfs_is_mounted(zfs_hdl, &mountpoint)) { in be_mount_iter()
88 free(mountpoint); in be_mount_iter()
98 snprintf(tmp, BE_MAXPATHLEN, "%s", info->mountpoint); in be_mount_iter()
117 mountpoint = be_mountpoint_augmented(info->lbh, zfs_mnt); in be_mount_iter()
118 snprintf(tmp, BE_MAXPATHLEN, "%s%s", info->mountpoint, in be_mount_iter()
119 mountpoint); in be_mount_iter()
155 char *mountpoint; in be_umount_iter() local
166 if (!zfs_is_mounted(zfs_hdl, &mountpoint)) { in be_umount_iter()
169 free(mountpoint); in be_umount_iter()
236 be_mount(libbe_handle_t *lbh, const char *bootenv, const char *mountpoint, in be_mount() argument
259 if (mountpoint == NULL) { in be_mount()
270 info.mountpoint = (mountpoint == NULL) ? mnt_temp : mountpoint; in be_mount()
282 strlcpy(result_loc, mountpoint == NULL ? mnt_temp : mountpoint, in be_mount()
307 info.mountpoint = NULL; in be_unmount()
327 be_mountpoint_augmented(libbe_handle_t *lbh, char *mountpoint) in be_mountpoint_augmented() argument
331 return (mountpoint); in be_mountpoint_augmented()
332 if (mountpoint == NULL || *mountpoint == '\0') in be_mountpoint_augmented()
333 return (mountpoint); in be_mountpoint_augmented()
335 if (mountpoint[lbh->altroot_len] == '\0') { in be_mountpoint_augmented()
336 *(mountpoint + 1) = '\0'; in be_mountpoint_augmented()
337 return (mountpoint); in be_mountpoint_augmented()
339 return (mountpoint + lbh->altroot_len); in be_mountpoint_augmented()