-
Bobi Jam authored
Add "lfs mirror copy" command to copy a mirror's content to other mirror(s) of a mirrored file. Usage: lfs mirror copy {--read-mirror|-i <id0>} {--write-mirror|-o <id1>[,<id2>,...]} <mirrored_file> Options: --read-mirror|-i <id0> This option indicates the content of which mirror specified by id0 needs to be read. The id0 is the numerical unique identifier for a mirror. --write-mirror|-o <id1>[,<id2>,...] This option indicates the content of which mirror(s) specified by mirror IDs needs to be written. The mirror IDs are separated with comma. If the mirror id -1 is used here, it means that all mirrors other than the read mirror are to be written. Note: Be ware that the written mirror(s) will be marked as non-stale mirror(s), be careful that after using this command, you could get a file with non-stale mirrors while containing different contents. This patch is back-ported from the following one: Lustre-commit: c6e7c078 Lustre-change: https://review.whamcloud.com/33220 Signed-off-by: Bobi Jam <bobijam@whamcloud.com> Change-Id: Id138368cdb29ec14b7c03a5db3b2dd1e0db5ea37 Reviewed-on: https://review.whamcloud.com/36193 Tested-by: jenkins <devops@whamcloud.com> Tested-by: Maloo <maloo@whamcloud.com> Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
24f18151