It should check if the pool_name is NULL before
dumping pool information in lmv_dump_user_lmm().
Signed-off-by: wang di <di.wang@intel.com>
Change-Id: I2f3c016be919d099437bfdb0cf78a2a1ca88d57d
Reviewed-on: http://review.whamcloud.com/15296
Tested-by: Jenkins
Reviewed-by: Andreas Dilger <andreas.dilger@intel.com>
Tested-by: Maloo <hpdd-maloo@intel.com>
Reviewed-by: Oleg Drokin <oleg.drokin@intel.com>
local mode=$(stat -c%a $DIR/$tdir/striped_dir)
[ "$mode" = "755" ] || error "expect 755 got $mode"
+ $LFS getdirstripe $DIR/$tdir/striped_dir > /dev/null 2>&1 ||
+ error "getdirstripe failed"
stripe_count=$($LFS getdirstripe -c $DIR/$tdir/striped_dir)
if [ "$stripe_count" != "2" ]; then
error "stripe_count is $stripe_count, expect 2"
}
- if ((verbose & VERBOSE_POOL) && (pool_name[0] != '\0')) {
+ if ((verbose & VERBOSE_POOL) && pool_name != NULL &&
+ pool_name[0] != '\0') {
llapi_printf(LLAPI_MSG_NORMAL, "%s", separator);
if (verbose & ~VERBOSE_POOL)
llapi_printf(LLAPI_MSG_NORMAL, "%slmv_pool: ",