Lines Matching defs:ud

421 	be_unmount_data_t	ud = { 0 };
510 ud.altroot = mountpoint;
511 ud.force = flags & BE_UNMOUNT_FLAG_FORCE;
516 if ((ret = be_unmount_zones(&ud)) != BE_SUCCESS) {
525 if ((ret = unmount_shared_fs(&ud)) != BE_SUCCESS) {
534 &ud)) != 0) {
543 if ((ret = be_unmount_root(zhp, &ud)) != BE_SUCCESS) {
548 if ((ret = be_unmount_zone_root(zhp, &ud)) != BE_SUCCESS) {
638 * ud - be_unmount_data_t pointer to data for zone to be unmounted
646 be_unmount_zone_root(zfs_handle_t *zhp, be_unmount_data_t *ud)
651 if (zfs_unmount(zhp, NULL, ud->force ? MS_FORCE : 0) != 0) {
1296 be_unmount_data_t *ud = data;
1305 if (zfs_iter_filesystems(zhp, be_unmount_callback, ud)) {
1315 if (zfs_unmount(zhp, NULL, ud->force ? MS_FORCE : 0) != 0) {
1360 if ((strncmp(mountpoint, ud->altroot,
1361 strlen(ud->altroot)) == 0) &&
1362 (mountpoint[strlen(ud->altroot)] == '/')) {
1365 strlen(ud->altroot);
1383 "skipping ...\n"), fs_name, ud->altroot);
1859 * ud - be_unmount_data_t pointer
1867 unmount_shared_fs(be_unmount_data_t *ud)
1914 altroot_len = strlen(ud->altroot);
1923 if (strncmp(entp->mnt_mountp, ud->altroot, altroot_len) == 0 &&
2184 * ud - be_unmount_data_t pointer providing unmount data
2193 be_unmount_root(zfs_handle_t *zhp, be_unmount_data_t *ud)
2199 if (get_mountpoint_from_vfstab(ud->altroot, zfs_get_name(zhp),
2206 if (zfs_unmount(zhp, NULL, ud->force ? MS_FORCE : 0) != 0) {
2257 be_unmount_data_t ud = { 0 };
2311 ud.altroot = altroot;
2312 if ((ret = be_unmount_root(zhp, &ud)) != BE_SUCCESS) {
2440 * ud - unmount_data_t pointer data for the global BE.
2448 be_unmount_zones(be_unmount_data_t *ud)
2459 z_set_zone_root(ud->altroot);
2480 "%s%s", ud->altroot, zonepath);
2501 ret = be_unmount_one_zone(ud, zonename, zonepath,
2510 "altroot %s\n"), zonename, ud->altroot);
2609 * ud - be_unmount_data_t pointer to data for global BE
2620 be_unmount_one_zone(be_unmount_data_t *ud, char *zonename, char *zonepath,
2632 (void) strlcpy(zone_altroot, ud->altroot, sizeof (zone_altroot));
2637 zone_ud.force = ud->force;