Lines Matching refs:mountpoint

45 	const char *mountpoint;  member
55 char *mountpoint; in be_mountcheck_cb() local
60 if (!zfs_is_mounted(zfs_hdl, &mountpoint)) in be_mountcheck_cb()
62 if (strcmp(mountpoint, info->path) == 0) { in be_mountcheck_cb()
64 free(mountpoint); in be_mountcheck_cb()
67 free(mountpoint); in be_mountcheck_cb()
80 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()
157 char *mountpoint; in be_umount_iter() local
168 if (!zfs_is_mounted(zfs_hdl, &mountpoint)) { in be_umount_iter()
171 free(mountpoint); in be_umount_iter()
237 be_mount(libbe_handle_t *lbh, char *bootenv, char *mountpoint, int flags, in be_mount() argument
260 if (mountpoint == NULL) { in be_mount()
271 info.mountpoint = (mountpoint == NULL) ? mnt_temp : mountpoint; in be_mount()
283 strlcpy(result_loc, mountpoint == NULL ? mnt_temp : mountpoint, in be_mount()
308 info.mountpoint = NULL; in be_unmount()
328 be_mountpoint_augmented(libbe_handle_t *lbh, char *mountpoint) in be_mountpoint_augmented() argument
332 return (mountpoint); in be_mountpoint_augmented()
333 if (mountpoint == NULL || *mountpoint == '\0') in be_mountpoint_augmented()
334 return (mountpoint); in be_mountpoint_augmented()
336 if (mountpoint[lbh->altroot_len] == '\0') { in be_mountpoint_augmented()
337 *(mountpoint + 1) = '\0'; in be_mountpoint_augmented()
338 return (mountpoint); in be_mountpoint_augmented()
340 return (mountpoint + lbh->altroot_len); in be_mountpoint_augmented()