From c070f4a178f9a560c47a9ad7cbe997f8d4fb2100 Mon Sep 17 00:00:00 2001 From: Markus Ressel Date: Thu, 30 Jul 2020 20:05:27 +0200 Subject: [PATCH] fixed passes parameter, added shorthands --- README.md | 4 ++-- zfs-inplace-rebalancing.sh | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index ef9e024..2df67f9 100644 --- a/README.md +++ b/README.md @@ -65,8 +65,8 @@ You can print a help message by running the script without any parameters: | Name | Description | Default | |-----------|-------------|---------| -| -checksum | Whether to compare attributes and content of the copied file using an **MD5** checksum. Technically this is a redundent check and consumes a lot of resources, so think twice. | `true` | -| -passes | The maximum number of rebalance passes per file. Setting this to infinity by using a value `<= 0` might improve performance when rebalancing a lot of small files. | `1` | +| `-c` | `--checksum` | Whether to compare attributes and content of the copied file using an **MD5** checksum. Technically this is a redundent check and consumes a lot of resources, so think twice. | `true` | +| `-p` | `--passes` | The maximum number of rebalance passes per file. Setting this to infinity by using a value `<= 0` might improve performance when rebalancing a lot of small files. | `1` | ### Example diff --git a/zfs-inplace-rebalancing.sh b/zfs-inplace-rebalancing.sh index 19f6789..4066053 100755 --- a/zfs-inplace-rebalancing.sh +++ b/zfs-inplace-rebalancing.sh @@ -176,7 +176,7 @@ fi while true ; do case "$1" in - -checksum ) + -c | --checksum ) if [ "$2" -eq 1 ] || [[ "$2" =~ (on|true|yes) ]]; then checksum_flag="true" else @@ -184,7 +184,7 @@ while true ; do fi shift 2 ;; - -count ) + -p | --passes ) passes_flag=$2 shift 2 ;;