Lines Matching refs:fsptr
395 check_lofs_needed(zlog_t *zlogp, struct zone_fstab *fsptr) in check_lofs_needed() argument
410 if (strcmp(mnp->mnt_special, fsptr->zone_fs_special) == 0) in check_lofs_needed()
419 (void) strlcpy(fsptr->zone_fs_special, mnp->mnt_mountp, in check_lofs_needed()
420 sizeof (fsptr->zone_fs_special)); in check_lofs_needed()
421 (void) strlcpy(fsptr->zone_fs_type, MNTTYPE_LOFS, in check_lofs_needed()
422 sizeof (fsptr->zone_fs_type)); in check_lofs_needed()
423 fsptr->zone_fs_raw[0] = '\0'; in check_lofs_needed()
429 optptr = fsptr->zone_fs_options; in check_lofs_needed()
434 fsptr->zone_fs_dir); in check_lofs_needed()
445 fsptr->zone_fs_options = optptr; in check_lofs_needed()
1191 mount_one(zlog_t *zlogp, struct zone_fstab *fsptr, const char *rootpath, in mount_one() argument
1199 if ((rv = valid_mount_path(zlogp, rootpath, fsptr->zone_fs_special, in mount_one()
1200 fsptr->zone_fs_dir, fsptr->zone_fs_type)) < 0) { in mount_one()
1202 rootpath, fsptr->zone_fs_dir); in mount_one()
1206 if (make_one_dir(zlogp, rootpath, fsptr->zone_fs_dir, in mount_one()
1221 fsptr->zone_fs_special, fsptr->zone_fs_dir, in mount_one()
1222 fsptr->zone_fs_type)) < 0) { in mount_one()
1225 rootpath, fsptr->zone_fs_dir); in mount_one()
1231 fsptr->zone_fs_dir); in mount_one()
1242 if (!zonecfg_valid_fs_type(fsptr->zone_fs_type)) { in mount_one()
1244 "invalid file-system type %s", fsptr->zone_fs_special, in mount_one()
1245 fsptr->zone_fs_dir, fsptr->zone_fs_type); in mount_one()
1259 if (stat64(fsptr->zone_fs_special, &st) != -1 && in mount_one()
1267 if (check_lofs_needed(zlogp, fsptr) == -1) in mount_one()
1269 } else if (strcmp(fsptr->zone_fs_type, MNTTYPE_LOFS) == 0) { in mount_one()
1276 resolve_lofs(zlogp, fsptr->zone_fs_special, in mount_one()
1277 sizeof (fsptr->zone_fs_special)); in mount_one()
1284 if (fsptr->zone_fs_raw[0] != '\0' && in mount_one()
1285 dofsck(zlogp, fsptr->zone_fs_type, fsptr->zone_fs_raw) != 0) { in mount_one()
1287 } else if (isregfile(fsptr->zone_fs_special) == 1 && in mount_one()
1288 dofsck(zlogp, fsptr->zone_fs_type, fsptr->zone_fs_special) != 0) { in mount_one()
1296 if (fsptr->zone_fs_options != NULL) { in mount_one()
1297 (void) strlcpy(optstr, fsptr->zone_fs_options->zone_fsopt_opt, in mount_one()
1299 for (optptr = fsptr->zone_fs_options->zone_fsopt_next; in mount_one()
1307 if ((rv = domount(zlogp, fsptr->zone_fs_type, optstr, in mount_one()
1308 fsptr->zone_fs_special, path)) != 0) in mount_one()
1315 if (strcmp(fsptr->zone_fs_type, MNTTYPE_DEV) != 0) in mount_one()