Lines Matching defs:mounts
436 * mounts since there is no way to generate a ZFS name from a random path in
437 * the file system. We only try to handle the automatic mounts that ZFS does
439 * in an existing parent ZFS fs. It then automatically mounts the new fs
1390 * This zonecfg_find_mounts() callback records information about mounts of
1392 * root overlay mounts and the number of unexpected mounts found.
1394 * mounts. cookiep should point to an initialized zone_mounts_t structure.
1401 zone_mounts_t *mounts;
1407 mounts = (zone_mounts_t *)cookiep;
1408 zone_mount_dir = mountp->mnt_mountp + mounts->zonepath_len;
1414 if (mounts->root_mnttab != NULL) {
1415 mounts->num_root_overlay_mounts++;
1423 if ((mounts->root_mnttab = mnttab_dup(mountp)) == NULL) {
1437 &mounts->root_mnttab->mnt_mountp) != B_TRUE) {
1445 if (mounts->num_unexpected_mounts == 0)
1447 "subdirectories of %s.\n"), mounts->zonepath);
1448 mounts->num_unexpected_mounts++;
1457 * structure contains information about mounts in the specified zonepath.
1463 zone_mounts_init(zone_mounts_t *mounts, const char *zonepath)
1465 assert(mounts != NULL);
1468 bzero(mounts, sizeof (*mounts));
1469 if ((mounts->zonepath = strdup(zonepath)) == NULL) {
1471 "for mounts in zonepath %s."), zonepath);
1474 mounts->zonepath_len = strlen(zonepath);
1475 if (zonecfg_find_mounts((char *)zonepath, zone_mounts_cb, mounts) ==
1477 zerror(gettext("an error occurred while checking for mounts "
1479 zone_mounts_destroy(mounts);
1491 zone_mounts_destroy(zone_mounts_t *mounts)
1493 assert(mounts != NULL);
1495 free(mounts->zonepath);
1496 if (mounts->root_mnttab != NULL)
1497 mnttab_destroy(mounts->root_mnttab);
1502 * prior to the move) using the specified zonepath. mounts should refer to
1509 zone_mount_rootfs(zone_mounts_t *mounts, const char *zonepath)
1515 assert(mounts != NULL);
1521 mtab = mounts->root_mnttab;
1590 * specified zonepath. mounts should refer to the zone_mounts_t structure
1599 zone_unmount_rootfs(zone_mounts_t *mounts, const char *zonepath,
1606 assert(mounts != NULL);
1612 mtab = mounts->root_mnttab;