Whamcloud - gitweb
LU-9424 tools: v1/v3 as composite layout 60/27060/6
authorNiu Yawei <yawei.niu@intel.com>
Thu, 11 May 2017 05:54:43 +0000 (01:54 -0400)
committerOleg Drokin <oleg.drokin@intel.com>
Sat, 3 Jun 2017 03:55:55 +0000 (03:55 +0000)
commit013baaa0ccac4a1e376081c604f5daacf828bfea
tree1bec33a48706fd4ceefc689a5f9133ac9d6949a2
parent65effa6dcb5e34ec9e91c86e35c52bc85562cf8b
LU-9424 tools: v1/v3 as composite layout

This patch changed 'lfs getstripe' & 'lfs find' to treat v1/v3
layout as single component composite layout, the component
attributes of the v1/v3 are:

component-count=0, (to distinguish with real composite file)
component-id=0,
component-flags=init/0 (file: init, dir: 0),
component-start=0,
component-end=eof.

When there is no specific component options provided,
'lfs getstripe' will keep the old output format of v1/v3.

Signed-off-by: Niu Yawei <yawei.niu@intel.com>
Change-Id: Ica5c958a964b16d26a7833ec2676c408f7f2e46c
Reviewed-on: https://review.whamcloud.com/27060
Reviewed-by: Andreas Dilger <andreas.dilger@intel.com>
Tested-by: Jenkins
Tested-by: Maloo <hpdd-maloo@intel.com>
Reviewed-by: Jinshan Xiong <jinshan.xiong@intel.com>
Reviewed-by: Oleg Drokin <oleg.drokin@intel.com>
lustre/tests/sanity-pfl.sh
lustre/utils/liblustreapi.c