Lines Matching refs:fsptr

410 check_lofs_needed(zlog_t *zlogp, struct zone_fstab *fsptr)  in check_lofs_needed()  argument
425 if (strcmp(mnp->mnt_special, fsptr->zone_fs_special) == 0) in check_lofs_needed()
434 (void) strlcpy(fsptr->zone_fs_special, mnp->mnt_mountp, in check_lofs_needed()
435 sizeof (fsptr->zone_fs_special)); in check_lofs_needed()
436 (void) strlcpy(fsptr->zone_fs_type, MNTTYPE_LOFS, in check_lofs_needed()
437 sizeof (fsptr->zone_fs_type)); in check_lofs_needed()
438 fsptr->zone_fs_raw[0] = '\0'; in check_lofs_needed()
444 optptr = fsptr->zone_fs_options; in check_lofs_needed()
449 fsptr->zone_fs_dir); in check_lofs_needed()
460 fsptr->zone_fs_options = optptr; in check_lofs_needed()
1209 mount_one(zlog_t *zlogp, struct zone_fstab *fsptr, const char *rootpath, in mount_one() argument
1217 if ((rv = valid_mount_path(zlogp, rootpath, fsptr->zone_fs_special, in mount_one()
1218 fsptr->zone_fs_dir, fsptr->zone_fs_type)) < 0) { in mount_one()
1220 rootpath, fsptr->zone_fs_dir); in mount_one()
1224 if (make_one_dir(zlogp, rootpath, fsptr->zone_fs_dir, in mount_one()
1239 fsptr->zone_fs_special, fsptr->zone_fs_dir, in mount_one()
1240 fsptr->zone_fs_type)) < 0) { in mount_one()
1243 rootpath, fsptr->zone_fs_dir); in mount_one()
1249 fsptr->zone_fs_dir); in mount_one()
1261 if (!zonecfg_valid_fs_type(fsptr->zone_fs_type)) { in mount_one()
1263 "invalid file-system type %s", fsptr->zone_fs_special, in mount_one()
1264 fsptr->zone_fs_dir, fsptr->zone_fs_type); in mount_one()
1278 if (stat64(fsptr->zone_fs_special, &st) != -1 && in mount_one()
1286 if (check_lofs_needed(zlogp, fsptr) == -1) in mount_one()
1288 } else if (strcmp(fsptr->zone_fs_type, MNTTYPE_LOFS) == 0) { in mount_one()
1295 resolve_lofs(zlogp, fsptr->zone_fs_special, in mount_one()
1296 sizeof (fsptr->zone_fs_special)); in mount_one()
1303 if (fsptr->zone_fs_raw[0] != '\0' && in mount_one()
1304 dofsck(zlogp, fsptr->zone_fs_type, fsptr->zone_fs_raw) != 0) { in mount_one()
1306 } else if (isregfile(fsptr->zone_fs_special) == 1 && in mount_one()
1307 dofsck(zlogp, fsptr->zone_fs_type, fsptr->zone_fs_special) != 0) { in mount_one()
1315 if (fsptr->zone_fs_options != NULL) { in mount_one()
1316 (void) strlcpy(optstr, fsptr->zone_fs_options->zone_fsopt_opt, in mount_one()
1318 for (optptr = fsptr->zone_fs_options->zone_fsopt_next; in mount_one()
1326 if ((rv = domount(zlogp, fsptr->zone_fs_type, optstr, in mount_one()
1327 fsptr->zone_fs_special, path)) != 0) in mount_one()
1334 if (strcmp(fsptr->zone_fs_type, MNTTYPE_DEV) != 0) in mount_one()