Lines Matching defs:fstab
2091 verify_fs_special(struct zone_fstab *fstab)
2103 if (strcmp(fstab->zone_fs_type, MNTTYPE_ZFS) == 0)
2104 return (verify_fs_zfs(fstab));
2106 if (stat64(fstab->zone_fs_special, &st) != 0) {
2108 "%s: could not access %s: %s\n"), fstab->zone_fs_dir,
2109 fstab->zone_fs_special, strerror(errno));
2122 fstab->zone_fs_special);
2144 struct zone_fstab fstab;
2158 while (zonecfg_getfsent(handle, &fstab) == Z_OK) {
2159 if (!zonecfg_valid_fs_type(fstab.zone_fs_type)) {
2161 "type %s is not allowed.\n"), fstab.zone_fs_dir,
2162 fstab.zone_fs_type);
2170 fstab.zone_fs_type) > sizeof (cmdbuf)) {
2172 "type %s is too long.\n"), fstab.zone_fs_dir,
2173 fstab.zone_fs_type);
2179 "%s: could not access %s: %s\n"), fstab.zone_fs_dir,
2187 fstab.zone_fs_dir, cmdbuf);
2198 fstab.zone_fs_type) > sizeof (cmdbuf)) {
2200 "type %s is too long.\n"), fstab.zone_fs_dir,
2201 fstab.zone_fs_type);
2205 if (fstab.zone_fs_raw[0] != '\0' &&
2210 fstab.zone_fs_dir, fstab.zone_fs_type);
2213 } else if (fstab.zone_fs_raw[0] == '\0' &&
2215 isregfile(fstab.zone_fs_special) != 1) {
2219 fstab.zone_fs_dir, fstab.zone_fs_type);
2225 if ((return_code = verify_fs_special(&fstab)) != Z_OK)
2229 if (fstab.zone_fs_raw[0] != '\0' &&
2230 stat(fstab.zone_fs_raw, &st) != 0) {
2236 "%s: could not access %s: %s\n"), fstab.zone_fs_dir,
2237 fstab.zone_fs_raw, strerror(errno));
2242 zonecfg_free_fs_option_list(fstab.zone_fs_options);