Whamcloud - gitweb
LU-16446 utils: specify total count for mirror extend 67/55867/11
authorFrederick Dilger <fdilger@whamcloud.com>
Wed, 24 Jul 2024 21:59:36 +0000 (15:59 -0600)
committerOleg Drokin <green@whamcloud.com>
Mon, 2 Dec 2024 05:46:43 +0000 (05:46 +0000)
commita796b10fa2609af6ab1869a04ea6cc6c2c9051ec
treeb703e4c3937bfd6a34f803fb0baaf30d6fd9cd85
parentafb8b8d49af604bc68d8568eaed4176e79121e40
LU-16446 utils: specify total count for mirror extend

The 'lfs mirror extend -N' can now be used to specify the total
number of mirrors to create on a file by using '=' infront of the
COUNT:
    'lfs mirror extend -N=TOTAL_COUNT'
or
    'lfs mirror extend --mirror-count==TOTAL_COUNT'

This is a no-op if the specified number of mirrors already exists on
that file.

Signed-off-by: Frederick Dilger <fdilger@whamcloud.com>
Change-Id: I76fc416b4dc2c37edf99926bae9a8d42167a49ab
Reviewed-on: https://review.whamcloud.com/c/fs/lustre-release/+/55867
Reviewed-by: Alexandre Ioffe <aioffe@ddn.com>
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
lustre/doc/lfs-mirror-extend.1
lustre/include/lustre/lustreapi.h
lustre/tests/sanity-flr.sh
lustre/utils/lfs.c
lustre/utils/liblustreapi.c