From: Barry Naujok Date: Wed, 27 Aug 2008 04:12:12 +0000 (+0000) Subject: Increase default maximum extent size for xfs_metadump when copying X-Git-Tag: v3.0.0~64 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7431d134fe8e9d7b24160982a747260c974de9ad;p=thirdparty%2Fxfsprogs-dev.git Increase default maximum extent size for xfs_metadump when copying directory contents to 1000 blocks per extent. Merge of master-melb:xfs-cmds:31977a by kenmcd. Increase default max extent size to 1000 blocks --- diff --git a/db/metadump.c b/db/metadump.c index fe5bd7ba9..9342d0c08 100644 --- a/db/metadump.c +++ b/db/metadump.c @@ -27,6 +27,8 @@ #include "sig.h" #include "xfs_metadump.h" +#define DEFAULT_MAX_EXT_SIZE 1000 + /* copy all metadata structures to/from a file */ static int metadump_f(int argc, char **argv); @@ -58,7 +60,7 @@ static xfs_ino_t cur_ino; static int show_progress = 0; static int stop_on_read_error = 0; -static int max_extent_size = 20; +static int max_extent_size = DEFAULT_MAX_EXT_SIZE; static int dont_obfuscate = 0; static int show_warnings = 0; static int progress_since_warning = 0; @@ -80,10 +82,10 @@ metadump_help(void) " Options:\n" " -e -- Ignore read errors and keep going\n" " -g -- Display dump progress\n" -" -m -- Specify max extent size in blocks to copy (default = 20 blocks)\n" +" -m -- Specify max extent size in blocks to copy (default = %d blocks)\n" " -o -- Don't obfuscate names and extended attributes\n" " -w -- Show warnings of bad metadata information\n" -"\n"); +"\n", DEFAULT_MAX_EXT_SIZE); } static void