Whamcloud - gitweb
LU-11245 flr: lfs mirror dump command 97/32997/5
authorBobi Jam <bobijam@whamcloud.com>
Tue, 14 Aug 2018 04:53:15 +0000 (12:53 +0800)
committerOleg Drokin <green@whamcloud.com>
Mon, 10 Sep 2018 16:53:53 +0000 (16:53 +0000)
commita5905b2a2c478f638420db9a002f2055fce3d5e2
tree7f8e7802b1ddf66f57804dae04d22789b4ab81b0
parent76af9f62481b1ac910cd6a0f7237fe32b0657c29
LU-11245 flr: lfs mirror dump command

Adds "lfs mirror dump" command to dump a mirror's content of a
mirrored file.

Usage:

lfs mirror dump <-N|--mirror-id <mirror_id>>
[-o|--outfile <output_file> ] <mirrored_file>

Options:

--mirror-id <mirror_id>
  Specify the mirror by mirror_id to dump its content.
--outfile <output_file>
  Dump the content into file output_file, if not specified, the
  content will be dump to the standard output stream.

Test-Parameters: testlist=sanity-flr
Signed-off-by: Bobi Jam <bobijam@whamcloud.com>
Change-Id: I2846b1c1968d9cc302c07b57a05687af50530d53
Reviewed-on: https://review.whamcloud.com/32997
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
Reviewed-by: Jinshan Xiong <jinshan.xiong@gmail.com>
Tested-by: Jenkins
Tested-by: Maloo <hpdd-maloo@intel.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
lustre/doc/lfs-mirror-dump.1 [new file with mode: 0644]
lustre/tests/sanity-flr.sh
lustre/utils/lfs.c