Whamcloud - gitweb
LU-4791 lod: subtract xattr overhead when calculate max EA size. 35/9835/4
authorwang di <di.wang@intel.com>
Thu, 27 Mar 2014 21:18:21 +0000 (14:18 -0700)
committerOleg Drokin <oleg.drokin@intel.com>
Fri, 4 Apr 2014 02:47:57 +0000 (02:47 +0000)
commita11c69ad81ca8071b9d97d5032539dd7b36873ee
tree3ece73a8344388277815571266bf6e46a0fdac6d
parent36374e6cb1cec9a456cb578315459b4e89f5ff61
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.

Signed-off-by: wang di <di.wang@intel.com>
Change-Id: Ibe46b8cbc161f151eae4eb14878af4406fc78d41
Reviewed-on: http://review.whamcloud.com/9835
Tested-by: Jenkins
Reviewed-by: Fan Yong <fan.yong@intel.com>
Tested-by: Maloo <hpdd-maloo@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