Whamcloud - gitweb
LU-4791 lod: subtract xattr overhead when calculate max EA size. 20/10020/2 2.5.1-crt1
authorwang di <di.wang@intel.com>
Thu, 27 Mar 2014 21:18:21 +0000 (14:18 -0700)
committerOleg Drokin <oleg.drokin@intel.com>
Wed, 30 Apr 2014 06:05:49 +0000 (06:05 +0000)
commit3376c6efabd4a48d865350d33de73e767632a6da
tree927873d3b28b43a98ebbe48a50d62cd8ccb4ce44
parentbe6781d6fb56dff7fc509bed80ce0ee0f675a107
LU-4791 lod: subtract xattr overhead when calculate max EA size.

1. It needs to subtract the xattr overhead when calculate the max
EA size, otherwise, it might get oversize stripe_count, which cause
ENOSPC error in the following xattr_set.
2. Release stripe information, if xattr set fails.

Lustre-change: http://review.whamcloud.com/9835
Lustre-commit: a11c69ad81ca8071b9d97d5032539dd7b36873ee

Change-Id: I4a4fe0681f2cd9dd6f242a03c75326acde02ae05
Signed-off-by: wang di <di.wang@intel.com>
Reviewed-on: http://review.whamcloud.com/10020
Tested-by: Jenkins
Tested-by: Maloo <hpdd-maloo@intel.com>
Reviewed-by: James Simmons <uja.ornl@gmail.com>
Reviewed-by: Fan Yong <fan.yong@intel.com>
Reviewed-by: Jian Yu <jian.yu@intel.com>
Reviewed-by: Oleg Drokin <oleg.drokin@intel.com>
lustre/include/lustre/lustre_idl.h
lustre/lod/lod_lov.c
lustre/osd-ldiskfs/osd_handler.c