Lines Matching defs:mounts
437 * mounts since there is no way to generate a ZFS name from a random path in
438 * the file system. We only try to handle the automatic mounts that ZFS does
440 * in an existing parent ZFS fs. It then automatically mounts the new fs
1391 * This zonecfg_find_mounts() callback records information about mounts of
1393 * root overlay mounts and the number of unexpected mounts found.
1395 * mounts. cookiep should point to an initialized zone_mounts_t structure.
1402 zone_mounts_t *mounts;
1408 mounts = (zone_mounts_t *)cookiep;
1409 zone_mount_dir = mountp->mnt_mountp + mounts->zonepath_len;
1415 if (mounts->root_mnttab != NULL) {
1416 mounts->num_root_overlay_mounts++;
1424 if ((mounts->root_mnttab = mnttab_dup(mountp)) == NULL) {
1438 &mounts->root_mnttab->mnt_mountp) != B_TRUE) {
1446 if (mounts->num_unexpected_mounts == 0)
1448 "subdirectories of %s.\n"), mounts->zonepath);
1449 mounts->num_unexpected_mounts++;
1458 * structure contains information about mounts in the specified zonepath.
1464 zone_mounts_init(zone_mounts_t *mounts, const char *zonepath)
1466 assert(mounts != NULL);
1469 bzero(mounts, sizeof (*mounts));
1470 if ((mounts->zonepath = strdup(zonepath)) == NULL) {
1472 "for mounts in zonepath %s."), zonepath);
1475 mounts->zonepath_len = strlen(zonepath);
1476 if (zonecfg_find_mounts((char *)zonepath, zone_mounts_cb, mounts) ==
1478 zerror(gettext("an error occurred while checking for mounts "
1480 zone_mounts_destroy(mounts);
1492 zone_mounts_destroy(zone_mounts_t *mounts)
1494 assert(mounts != NULL);
1496 free(mounts->zonepath);
1497 if (mounts->root_mnttab != NULL)
1498 mnttab_destroy(mounts->root_mnttab);
1503 * prior to the move) using the specified zonepath. mounts should refer to
1510 zone_mount_rootfs(zone_mounts_t *mounts, const char *zonepath)
1516 assert(mounts != NULL);
1522 mtab = mounts->root_mnttab;
1591 * specified zonepath. mounts should refer to the zone_mounts_t structure
1600 zone_unmount_rootfs(zone_mounts_t *mounts, const char *zonepath,
1607 assert(mounts != NULL);
1613 mtab = mounts->root_mnttab;