0b5de56d26c0148ad33bb3a9201091502f24d910gjelinek * CDDL HEADER START
0b5de56d26c0148ad33bb3a9201091502f24d910gjelinek * The contents of this file are subject to the terms of the
0b5de56d26c0148ad33bb3a9201091502f24d910gjelinek * Common Development and Distribution License (the "License").
0b5de56d26c0148ad33bb3a9201091502f24d910gjelinek * You may not use this file except in compliance with the License.
0b5de56d26c0148ad33bb3a9201091502f24d910gjelinek * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
0b5de56d26c0148ad33bb3a9201091502f24d910gjelinek * See the License for the specific language governing permissions
0b5de56d26c0148ad33bb3a9201091502f24d910gjelinek * and limitations under the License.
0b5de56d26c0148ad33bb3a9201091502f24d910gjelinek * When distributing Covered Code, include this CDDL HEADER in each
0b5de56d26c0148ad33bb3a9201091502f24d910gjelinek * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
0b5de56d26c0148ad33bb3a9201091502f24d910gjelinek * If applicable, add the following below this CDDL HEADER, with the
0b5de56d26c0148ad33bb3a9201091502f24d910gjelinek * fields enclosed by brackets "[]" replaced with your own identifying
0b5de56d26c0148ad33bb3a9201091502f24d910gjelinek * information: Portions Copyright [yyyy] [name of copyright owner]
0b5de56d26c0148ad33bb3a9201091502f24d910gjelinek * CDDL HEADER END
c75cc341903ca38e644edfae5357a4020418f9be * Copyright 2009 Sun Microsystems, Inc. All rights reserved.
0b5de56d26c0148ad33bb3a9201091502f24d910gjelinek * Use is subject to license terms.
3c7284bd3243d42a710edac3a15f6019b4c849beAlexander Eremin * Copyright 2014 Nexenta Systems, Inc. All rights reserved.
0b5de56d26c0148ad33bb3a9201091502f24d910gjelinek#if !defined(TEXT_DOMAIN) /* should be defined by cc -D */
0b5de56d26c0148ad33bb3a9201091502f24d910gjelinek#define TEXT_DOMAIN "SYS_TEST" /* Use this only if it wasn't */
0094b373ead542a342e4250eaf37854ccd3e50c0jv * This structure stores information about mounts of interest within an
0094b373ead542a342e4250eaf37854ccd3e50c0jv * installed zone.
0094b373ead542a342e4250eaf37854ccd3e50c0jv /* The zone's zonepath */
0094b373ead542a342e4250eaf37854ccd3e50c0jv /* The length of zonepath */
0094b373ead542a342e4250eaf37854ccd3e50c0jv * This indicates the number of unexpected mounts that were encountered
0094b373ead542a342e4250eaf37854ccd3e50c0jv * in the zone.
0094b373ead542a342e4250eaf37854ccd3e50c0jv * This is the number of overlay mounts detected on the zone's root
0094b373ead542a342e4250eaf37854ccd3e50c0jv * directory.
0094b373ead542a342e4250eaf37854ccd3e50c0jv * This is used to track important zone root mount information. The
0094b373ead542a342e4250eaf37854ccd3e50c0jv * mnt_time field isn't used. If root_mnttab is NULL, then the
0094b373ead542a342e4250eaf37854ccd3e50c0jv * associated zone doesn't have a mounted root filesystem.
0094b373ead542a342e4250eaf37854ccd3e50c0jv * NOTE: mnt_mountp is non-NULL iff the zone's root filesystem is a
0094b373ead542a342e4250eaf37854ccd3e50c0jv * ZFS filesystem with a non-legacy mountpoint. In this case, it
0094b373ead542a342e4250eaf37854ccd3e50c0jv * refers to a string containing the dataset's mountpoint.
0094b373ead542a342e4250eaf37854ccd3e50c0jvextern int zfm_print(const struct mnttab *mntp, void *unused);
0b5de56d26c0148ad33bb3a9201091502f24d910gjelinekextern int clone_copy(char *source_zonepath, char *zonepath);
ff17c8bf86c3e567734be83f90267edee20f580fgjelinekextern int subproc_status(const char *cmd, int status,
0b5de56d26c0148ad33bb3a9201091502f24d910gjelinekextern void zperror(const char *str, boolean_t zonecfg_error);
0b5de56d26c0148ad33bb3a9201091502f24d910gjelinekextern void zperror2(const char *zone, const char *str);
ff17c8bf86c3e567734be83f90267edee20f580fgjelinekextern int clone_snapshot_zfs(char *snap_name, char *zonepath,
ff17c8bf86c3e567734be83f90267edee20f580fgjelinekextern int clone_zfs(char *source_zonepath, char *zonepath, char *presnapbuf,
0b5de56d26c0148ad33bb3a9201091502f24d910gjelinekextern int move_zfs(char *zonepath, char *new_zonepath);
0b5de56d26c0148ad33bb3a9201091502f24d910gjelinekextern int verify_datasets(zone_dochandle_t handle);
0094b373ead542a342e4250eaf37854ccd3e50c0jvextern int zone_mounts_init(zone_mounts_t *mounts, const char *zonepath);
0094b373ead542a342e4250eaf37854ccd3e50c0jvextern int zone_mount_rootfs(zone_mounts_t *mounts, const char *zonepath);
0094b373ead542a342e4250eaf37854ccd3e50c0jvextern int zone_unmount_rootfs(zone_mounts_t *mounts, const char *zonepath,
99653d4ee642c6528e88224f12409a5f23060994eschrockextern int init_zfs(void);
0b5de56d26c0148ad33bb3a9201091502f24d910gjelinek#endif /* _ZONEADM_H */