Lines Matching refs:mountpoint
44 const char *mountpoint; member
54 char *mountpoint; in be_mountcheck_cb() local
59 if (!zfs_is_mounted(zfs_hdl, &mountpoint)) in be_mountcheck_cb()
61 if (strcmp(mountpoint, info->path) == 0) { in be_mountcheck_cb()
63 free(mountpoint); in be_mountcheck_cb()
66 free(mountpoint); in be_mountcheck_cb()
79 char *mountpoint; in be_mount_iter() local
85 if (zfs_is_mounted(zfs_hdl, &mountpoint)) { in be_mount_iter()
86 free(mountpoint); in be_mount_iter()
96 snprintf(tmp, BE_MAXPATHLEN, "%s", info->mountpoint); in be_mount_iter()
115 mountpoint = be_mountpoint_augmented(info->lbh, zfs_mnt); in be_mount_iter()
116 snprintf(tmp, BE_MAXPATHLEN, "%s%s", info->mountpoint, in be_mount_iter()
117 mountpoint); in be_mount_iter()
153 char *mountpoint; in be_umount_iter() local
164 if (!zfs_is_mounted(zfs_hdl, &mountpoint)) { in be_umount_iter()
167 free(mountpoint); in be_umount_iter()
234 be_mount(libbe_handle_t *lbh, const char *bootenv, const char *mountpoint, in be_mount() argument
257 if (mountpoint == NULL) { in be_mount()
268 info.mountpoint = (mountpoint == NULL) ? mnt_temp : mountpoint; in be_mount()
280 strlcpy(result_loc, mountpoint == NULL ? mnt_temp : mountpoint, in be_mount()
305 info.mountpoint = NULL; in be_unmount()
325 be_mountpoint_augmented(libbe_handle_t *lbh, char *mountpoint) in be_mountpoint_augmented() argument
329 return (mountpoint); in be_mountpoint_augmented()
330 if (mountpoint == NULL || *mountpoint == '\0') in be_mountpoint_augmented()
331 return (mountpoint); in be_mountpoint_augmented()
333 if (mountpoint[lbh->altroot_len] == '\0') { in be_mountpoint_augmented()
334 *(mountpoint + 1) = '\0'; in be_mountpoint_augmented()
335 return (mountpoint); in be_mountpoint_augmented()
337 return (mountpoint + lbh->altroot_len); in be_mountpoint_augmented()