Whamcloud - gitweb
LU-16979 utils: enable throttling mirror extend
authorAlex Zhuravlev <bzzz@whamcloud.com>
Tue, 1 Aug 2023 08:40:32 +0000 (11:40 +0300)
committerAndreas Dilger <adilger@whamcloud.com>
Tue, 1 Aug 2023 22:04:54 +0000 (22:04 +0000)
this can be useful in some scenarios like massive mirror
creation.

Lustre-change: https://review.whamcloud.com/51758
Lustre-commit: 6f6804aca91d6a2a9e764a5b929feb85db138d88

Test-Parameters: trivial
Signed-off-by: Alex Zhuravlev <bzzz@whamcloud.com>
Change-Id: Ia84054f3519cd5cef37aaabb2ae605fb6ea200e0
Reviewed-on: https://review.whamcloud.com/c/ex/lustre-release/+/51830
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
lustre/utils/lfs.c

index dc69a82..8371adc 100644 (file)
@@ -4357,7 +4357,7 @@ static int lfs_setstripe_internal(int argc, char **argv,
                        xattr = optarg;
                        break;
                case 'W':
-                       if (!migrate_mode) {
+                       if (!migrate_mode && !mirror_mode) {
                                fprintf(stderr,
                                        "--bandwidth is valid only for migrate and mirror mode\n");
                                goto error;