]> granicus.if.org Git - zfs/commitdiff
Add missing -V option to zdb
authorBrian Behlendorf <behlendorf1@llnl.gov>
Wed, 6 Jan 2016 21:32:32 +0000 (16:32 -0500)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Fri, 8 Jan 2016 20:43:29 +0000 (12:43 -0800)
Add missing getopt specifier for `zdb -V` verbatim option and
set flag with correct bitwise operator.

Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
cmd/zdb/zdb.c

index 60095f82565d101ef3d63569e0e513e474c4d814..8f0421487f8615b04705c43358ceffe83af49e5d 100644 (file)
@@ -3623,7 +3623,7 @@ main(int argc, char **argv)
        int flags = ZFS_IMPORT_MISSING_LOG;
        int rewind = ZPOOL_NEVER_REWIND;
        char *spa_config_path_env;
-       const char *opts = "bcdhilmMI:suCDRSAFLXevp:t:U:P";
+       const char *opts = "bcdhilmMI:suCDRSAFLXevp:t:U:PV";
        boolean_t target_is_spa = B_TRUE;
 
        (void) setrlimit(RLIMIT_NOFILE, &rl);
@@ -3668,7 +3668,7 @@ main(int argc, char **argv)
                        dump_opt[c]++;
                        break;
                case 'V':
-                       flags = ZFS_IMPORT_VERBATIM;
+                       flags |= ZFS_IMPORT_VERBATIM;
                        break;
                case 'I':
                        max_inflight = strtoull(optarg, NULL, 0);