Whamcloud - gitweb
LU-4719 mdt: Don't try to print non-existent objects 20/9520/3
authorOleg Drokin <oleg.drokin@intel.com>
Thu, 6 Mar 2014 01:56:38 +0000 (20:56 -0500)
committerOleg Drokin <oleg.drokin@intel.com>
Thu, 20 Mar 2014 12:48:14 +0000 (12:48 +0000)
commitebfc6f4b54961e5e0762af7d2555f2dc5d1e1ec3
tree3c11698ebf6f82a9c5be63fd32a28c4f245f0f01
parentb98792ae96ad2bb3c73ca3ebebdd8edfdfbc35df
LU-4719 mdt: Don't try to print non-existent objects

mdt_dump_lmm() needs to make sure it's not trying to print
objects for a default striping from a directory, since there
are not objects in this case.

Return early if the D_INFO debug mask is disenabled, so it
doesn't iterate through the LOV/LMV layout at all.  That is
just a waste of effort.

Change-Id: I2fffdaefad2a6b05247676441451fffdca620dcd
Signed-off-by: Oleg Drokin <oleg.drokin@intel.com>
Reviewed-on: http://review.whamcloud.com/9520
Reviewed-by: Andreas Dilger <andreas.dilger@intel.com>
Tested-by: Jenkins
Reviewed-by: Matt Ezell <ezellma@ornl.gov>
Reviewed-by: James Simmons <uja.ornl@gmail.com>
Tested-by: Maloo <hpdd-maloo@intel.com>
lustre/mdt/mdt_handler.c
lustre/mdt/mdt_internal.h
lustre/mdt/mdt_lib.c