Skip to content
  • Bobi Jam's avatar
    LU-10258 lfs: lfs mirror write command · 14171e78
    Bobi Jam authored
    
    
    Rename "lfs mirror dump" command to "lfs mirror read".
    
    Add "lfs mirror write" command to write a mirror's content of a
    mirrored file.
    
    Usage:
    
    lfs mirror write {--mirror-id|-N <mirror_id>}
    	[--inputfile|-i <input_file>] <mirrored_file>
    
    Options:
    
    --mirror-id|-N <mirror_id>
      This  option  indicates  the  content of which mirror specified by
      mirror_id needs to be written. The mirror_id is the numerical unique
      identifier for a mirror.
    
    --inputfile|-i <input_file>
      The path name of the input file, if not specified, the standard
      input stream will be used. The input stream or input_file cannot
      be the same mirrored file as the mirrored_file.
    
    This command will issue a RESYNC lease write lock to notify MDS to
    prepare destination mirror for the write (instantiate components of
    the mirror), then client copy data from a file or STDIN to the
    specified mirror of the mirrored file. After the data copy, a
    RESYNC_DONE lease unlock is issued to MDS to update the layout
    of the mirrored file.
    
    Signed-off-by: default avatarBobi Jam <bobijam@whamcloud.com>
    Change-Id: I02022349d4ce871319903a8714ffc4534186c0e4
    Reviewed-on: https://review.whamcloud.com/33219
    
    
    Tested-by: Jenkins
    Reviewed-by: default avatarAndreas Dilger <adilger@whamcloud.com>
    Tested-by: default avatarMaloo <hpdd-maloo@intel.com>
    Reviewed-by: default avatarJian Yu <yujian@whamcloud.com>
    Reviewed-by: default avatarOleg Drokin <green@whamcloud.com>
    14171e78