Skip to content

Commit

Permalink
DOSE-737 Reading blocks from device isn't implemented for object-store (
Browse files Browse the repository at this point in the history
  • Loading branch information
manoj-joseph authored Dec 3, 2021
1 parent 96c1168 commit 3c4f90f
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions cmd/zdb/zdb.c
Original file line number Diff line number Diff line change
Expand Up @@ -8584,6 +8584,16 @@ main(int argc, char **argv)
}

if (objstore) {
if (dump_opt['R']) {
(void) fprintf(stderr, "Reading blocks (-R) is "
"unsupported for an object-store based zpool.\n");
exit(1);
}
if (dump_opt['Z']) {
(void) fprintf(stderr, "Reading ZSTD headers (-Z) is "
"unsupported for an object-store based zpool.\n");
exit(1);
}
if (start_zfs_object_agent(zoa_log_file) != 0) {
(void) fprintf(stderr, "Error initializing libzoa.\n");
exit(1);
Expand Down

0 comments on commit 3c4f90f

Please sign in to comment.