Whamcloud - gitweb
LU-5233 lod: Remove ldo_def_striping_set check 72/10772/4
authorWang Di <di.wang@intel.com>
Fri, 20 Jun 2014 15:15:04 +0000 (08:15 -0700)
committerOleg Drokin <oleg.drokin@intel.com>
Thu, 26 Jun 2014 05:33:40 +0000 (05:33 +0000)
commita213c3341903ff553df2e1cc42dd14a7b3d98845
tree84c172cd6562b40f665c7075ea665d544ba71ca6
parenta66c72c37140e17f600f9cab8f8f3b09374a96c4
LU-5233 lod: Remove ldo_def_striping_set check

Only check ldo_stripenr/ldo_stripe_offset before create
striped directory, and ldo_def_striping_set is used to
mark whether the directory has default stripe, which can
be inherited to its children.

Reset ldo_stripenr to 0, if initialization fails, otherwise
it will leave some invalid object in cache.

Change-Id: Iba6985861fb1443bd4e7fcce3cd8c523b31a5940
Signed-off-by: Wang Di <di.wang@intel.com>
Reviewed-on: http://review.whamcloud.com/10772
Reviewed-by: Andreas Dilger <andreas.dilger@intel.com>
Tested-by: Jenkins
Reviewed-by: John L. Hammond <john.hammond@intel.com>
Tested-by: Maloo <hpdd-maloo@intel.com>
Reviewed-by: Oleg Drokin <oleg.drokin@intel.com>
lustre/lod/lod_lov.c
lustre/lod/lod_object.c
lustre/lod/lod_qos.c