Lines Matching defs:fsptr

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