Lines Matching refs:fsptr

394 check_lofs_needed(zlog_t *zlogp, struct zone_fstab *fsptr)  in check_lofs_needed()  argument
409 if (strcmp(mnp->mnt_special, fsptr->zone_fs_special) == 0) in check_lofs_needed()
418 (void) strlcpy(fsptr->zone_fs_special, mnp->mnt_mountp, in check_lofs_needed()
419 sizeof (fsptr->zone_fs_special)); in check_lofs_needed()
420 (void) strlcpy(fsptr->zone_fs_type, MNTTYPE_LOFS, in check_lofs_needed()
421 sizeof (fsptr->zone_fs_type)); in check_lofs_needed()
422 fsptr->zone_fs_raw[0] = '\0'; in check_lofs_needed()
428 optptr = fsptr->zone_fs_options; in check_lofs_needed()
433 fsptr->zone_fs_dir); in check_lofs_needed()
444 fsptr->zone_fs_options = optptr; in check_lofs_needed()
1190 mount_one(zlog_t *zlogp, struct zone_fstab *fsptr, const char *rootpath, in mount_one() argument
1198 if ((rv = valid_mount_path(zlogp, rootpath, fsptr->zone_fs_special, in mount_one()
1199 fsptr->zone_fs_dir, fsptr->zone_fs_type)) < 0) { in mount_one()
1201 rootpath, fsptr->zone_fs_dir); in mount_one()
1205 if (make_one_dir(zlogp, rootpath, fsptr->zone_fs_dir, in mount_one()
1220 fsptr->zone_fs_special, fsptr->zone_fs_dir, in mount_one()
1221 fsptr->zone_fs_type)) < 0) { in mount_one()
1224 rootpath, fsptr->zone_fs_dir); in mount_one()
1230 fsptr->zone_fs_dir); in mount_one()
1241 if (!zonecfg_valid_fs_type(fsptr->zone_fs_type)) { in mount_one()
1243 "invalid file-system type %s", fsptr->zone_fs_special, in mount_one()
1244 fsptr->zone_fs_dir, fsptr->zone_fs_type); in mount_one()
1258 if (stat64(fsptr->zone_fs_special, &st) != -1 && in mount_one()
1266 if (check_lofs_needed(zlogp, fsptr) == -1) in mount_one()
1268 } else if (strcmp(fsptr->zone_fs_type, MNTTYPE_LOFS) == 0) { in mount_one()
1275 resolve_lofs(zlogp, fsptr->zone_fs_special, in mount_one()
1276 sizeof (fsptr->zone_fs_special)); in mount_one()
1283 if (fsptr->zone_fs_raw[0] != '\0' && in mount_one()
1284 dofsck(zlogp, fsptr->zone_fs_type, fsptr->zone_fs_raw) != 0) { in mount_one()
1286 } else if (isregfile(fsptr->zone_fs_special) == 1 && in mount_one()
1287 dofsck(zlogp, fsptr->zone_fs_type, fsptr->zone_fs_special) != 0) { in mount_one()
1295 if (fsptr->zone_fs_options != NULL) { in mount_one()
1296 (void) strlcpy(optstr, fsptr->zone_fs_options->zone_fsopt_opt, in mount_one()
1298 for (optptr = fsptr->zone_fs_options->zone_fsopt_next; in mount_one()
1306 if ((rv = domount(zlogp, fsptr->zone_fs_type, optstr, in mount_one()
1307 fsptr->zone_fs_special, path)) != 0) in mount_one()
1314 if (strcmp(fsptr->zone_fs_type, MNTTYPE_DEV) != 0) in mount_one()