From 9d6900e0d869674d6b415af3c856c4a784fa9d36 Mon Sep 17 00:00:00 2001 From: Daniel Langbein Date: Sun, 19 Mar 2023 18:44:16 +0100 Subject: [PATCH] refactor --- .../active_receive/btrfs_receive_chunks_active.py | 6 +++--- .../active_receive/btrfs_send_chunks_passive.py | 5 +++-- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/src/subprocess_util/chunked_transfer/active_receive/btrfs_receive_chunks_active.py b/src/subprocess_util/chunked_transfer/active_receive/btrfs_receive_chunks_active.py index a06ca8f..e0e893a 100644 --- a/src/subprocess_util/chunked_transfer/active_receive/btrfs_receive_chunks_active.py +++ b/src/subprocess_util/chunked_transfer/active_receive/btrfs_receive_chunks_active.py @@ -30,7 +30,7 @@ def parse_args(): parser.add_argument('--chunk-dir', help='Chunks are saved in this directory. ' - 'Defaults to directory `.chunk` next to SUBVOLUME.', + 'Defaults to directory `.chunk` next to TARGET_SUBVOLUME.', dest='chunk_dir', type=Path, metavar='CHUNK_DIR', @@ -62,11 +62,11 @@ def parse_args(): ) parser.add_argument('target_path', - help='Path where the subvolume will be created. ' + help='Path where CHILD_SUBVOLUME will be replicated. ' 'The last component of the path ' 'must be equal to the name of CHILD_SUBVOLUME on the sending side.', type=Path, - metavar='SUBVOLUME' + metavar='TARGET_SUBVOLUME' ) args = parser.parse_args() diff --git a/src/subprocess_util/chunked_transfer/active_receive/btrfs_send_chunks_passive.py b/src/subprocess_util/chunked_transfer/active_receive/btrfs_send_chunks_passive.py index d5d487a..12c1568 100644 --- a/src/subprocess_util/chunked_transfer/active_receive/btrfs_send_chunks_passive.py +++ b/src/subprocess_util/chunked_transfer/active_receive/btrfs_send_chunks_passive.py @@ -42,7 +42,7 @@ def parse_args(): ) parser.add_argument('--compressed-data', - help='Forwarded to btrfs-send.', + help='Reduce network bandwidth by compressing data.', dest='compressed_data', action='store_true', default=False, @@ -65,7 +65,7 @@ def parse_args(): ) parser.add_argument('child', - help='Path to child subvolume. Forwarded to btrfs-send.', + help='Path to child subvolume.', type=Path, metavar='CHILD_SUBVOLUME' ) @@ -81,6 +81,7 @@ def parse_args(): else: args.chunk_dir = args.chunk_dir.absolute() + # parent if args.parent is not None: args.parent = args.parent.absolute()