Whamcloud - gitweb
LU-6341 llite: Use ll_dir_getstripe to get default LMVEA 90/13990/11
authorwang di <di.wang@intel.com>
Tue, 14 Jul 2015 15:51:56 +0000 (08:51 -0700)
committerOleg Drokin <oleg.drokin@intel.com>
Wed, 29 Jul 2015 15:44:05 +0000 (15:44 +0000)
commit29d18f84e80b6f11d1e435c370ea962162851432
tree70a5a834717013510b381a9805f16f6bd86f940f
parent849d7d5b1b4cabb7578c3ab5aaf271e90dd33864
LU-6341 llite: Use ll_dir_getstripe to get default LMVEA

Use ll_dir_getstripe to get default stripeEA in ll_new_node(),
Because ll_getxattr_common requires admin rights for retrieving
default LMVEA (because of trusted- prefix), which might cause
mkdir (from normal user) failure.

If parent does not have default stripeEA, then child should always
be in the same MDT for mkdir. Otherwise MDT should return -EREMOTE,
then client will refresh the default stripe index, and recreate
the object.

Signed-off-by: wang di <di.wang@intel.com>
Change-Id: I0d8884b78fbc8b8d1930b1133150686e65d20c54
Reviewed-on: http://review.whamcloud.com/13990
Tested-by: Jenkins
Reviewed-by: John L. Hammond <john.hammond@intel.com>
Tested-by: Maloo <hpdd-maloo@intel.com>
Reviewed-by: James Simmons <uja.ornl@yahoo.com>
Reviewed-by: Oleg Drokin <oleg.drokin@intel.com>
lustre/include/obd_support.h
lustre/llite/namei.c
lustre/lod/lod_object.c
lustre/osd-ldiskfs/osd_handler.c
lustre/osd-zfs/osd_object.c
lustre/tests/sanity.sh