From b6ced256cfe16d9647086e80fb1f6d86ad03f3da Mon Sep 17 00:00:00 2001 From: Matthew Dillon Date: Mon, 2 Jan 2012 10:10:52 -0800 Subject: [PATCH] hammer - Pass -S option to remote mirror-read * When doing a mirror or mirror-stream via pull from the remote pass the -S option to the remote end, otherwise the remote will just use the default split size. Reported-by: ftigeot --- sbin/hammer/hammer.c | 2 ++ sbin/hammer/hammer.h | 1 + 2 files changed, 3 insertions(+) diff --git a/sbin/hammer/hammer.c b/sbin/hammer/hammer.c index 800415e93a..f1b87a1577 100644 --- a/sbin/hammer/hammer.c +++ b/sbin/hammer/hammer.c @@ -61,6 +61,7 @@ int BulkOpt; u_int64_t BandwidthOpt; u_int64_t SplitupOpt = 4ULL * 1024ULL * 1024ULL * 1024ULL; u_int64_t MemoryLimit = 1024LLU * 1024 * 1024; +const char *SplitupOptStr; const char *CyclePath; const char *LinkPath; @@ -104,6 +105,7 @@ main(int ac, char **av) } break; case 'S': + SplitupOptStr = strdup(optarg); SplitupOpt = strtoull(optarg, &ptr, 0); switch(*ptr) { case 'g': diff --git a/sbin/hammer/hammer.h b/sbin/hammer/hammer.h index 988e05d6d2..399f32d9c5 100644 --- a/sbin/hammer/hammer.h +++ b/sbin/hammer/hammer.h @@ -78,6 +78,7 @@ extern int BulkOpt; extern u_int64_t BandwidthOpt; extern u_int64_t SplitupOpt; extern u_int64_t MemoryLimit; +extern const char *SplitupOptStr; extern const char *LinkPath; extern const char *CyclePath; -- 2.41.0