summaryrefslogtreecommitdiff
path: root/usr/src/lib/libzonecfg
diff options
context:
space:
mode:
authorjv227347 <Jordan.Vaughan@Sun.com>2009-12-07 16:44:49 -0800
committerjv227347 <Jordan.Vaughan@Sun.com>2009-12-07 16:44:49 -0800
commit0094b373ead542a342e4250eaf37854ccd3e50c0 (patch)
treec69e6bf413789e6956ec187f6b1e7efea1137548 /usr/src/lib/libzonecfg
parent0f79c548a94d01d7494ec7ffa3bc72cda00b4f7c (diff)
downloadillumos-joyent-0094b373ead542a342e4250eaf37854ccd3e50c0.tar.gz
6880335 zoneadm move needs brand hook
Diffstat (limited to 'usr/src/lib/libzonecfg')
-rw-r--r--usr/src/lib/libzonecfg/common/libzonecfg.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/usr/src/lib/libzonecfg/common/libzonecfg.c b/usr/src/lib/libzonecfg/common/libzonecfg.c
index 9c26ef565e..d356b73701 100644
--- a/usr/src/lib/libzonecfg/common/libzonecfg.c
+++ b/usr/src/lib/libzonecfg/common/libzonecfg.c
@@ -2760,14 +2760,14 @@ zonecfg_devperms_apply(zone_dochandle_t hdl, const char *inpath, uid_t owner,
* This function finds everything mounted under a zone's rootpath.
* This returns the number of mounts under rootpath, or -1 on error.
* callback is called once per mount found with the first argument
- * pointing to the mount point.
+ * pointing to a mnttab structure containing the mount's information.
*
* If the callback function returns non-zero zonecfg_find_mounts
* aborts with an error.
*/
int
-zonecfg_find_mounts(char *rootpath, int (*callback)(const char *, void *),
- void *priv) {
+zonecfg_find_mounts(char *rootpath, int (*callback)(const struct mnttab *,
+ void *), void *priv) {
FILE *mnttab;
struct mnttab m;
size_t l;
@@ -2800,7 +2800,7 @@ zonecfg_find_mounts(char *rootpath, int (*callback)(const char *, void *),
rv++;
if (callback == NULL)
continue;
- if (callback(m.mnt_mountp, priv)) {
+ if (callback(&m, priv)) {
rv = -1;
goto out;