Lines Matching defs:fstab
2197 verify_fs_special(struct zone_fstab *fstab)
2209 if (strcmp(fstab->zone_fs_type, MNTTYPE_ZFS) == 0)
2210 return (verify_fs_zfs(fstab));
2212 if (stat64(fstab->zone_fs_special, &st) != 0) {
2214 "%s: could not access %s: %s\n"), fstab->zone_fs_dir,
2215 fstab->zone_fs_special, strerror(errno));
2228 fstab->zone_fs_special);
2250 struct zone_fstab fstab;
2264 while (zonecfg_getfsent(handle, &fstab) == Z_OK) {
2265 if (!zonecfg_valid_fs_type(fstab.zone_fs_type)) {
2267 "type %s is not allowed.\n"), fstab.zone_fs_dir,
2268 fstab.zone_fs_type);
2276 fstab.zone_fs_type) > sizeof (cmdbuf)) {
2278 "type %s is too long.\n"), fstab.zone_fs_dir,
2279 fstab.zone_fs_type);
2285 "%s: could not access %s: %s\n"), fstab.zone_fs_dir,
2293 fstab.zone_fs_dir, cmdbuf);
2304 fstab.zone_fs_type) > sizeof (cmdbuf)) {
2306 "type %s is too long.\n"), fstab.zone_fs_dir,
2307 fstab.zone_fs_type);
2311 if (fstab.zone_fs_raw[0] != '\0' &&
2316 fstab.zone_fs_dir, fstab.zone_fs_type);
2319 } else if (fstab.zone_fs_raw[0] == '\0' &&
2321 isregfile(fstab.zone_fs_special) != 1) {
2325 fstab.zone_fs_dir, fstab.zone_fs_type);
2331 if ((return_code = verify_fs_special(&fstab)) != Z_OK)
2335 if (fstab.zone_fs_raw[0] != '\0' &&
2336 stat(fstab.zone_fs_raw, &st) != 0) {
2342 "%s: could not access %s: %s\n"), fstab.zone_fs_dir,
2343 fstab.zone_fs_raw, strerror(errno));
2348 zonecfg_free_fs_option_list(fstab.zone_fs_options);