Whamcloud - gitweb
LU-2378 lma: move HSM & SOM attributes to dedicated xattrs
authorJohann Lombardi <johann.lombardi@intel.com>
Fri, 23 Nov 2012 14:23:29 +0000 (15:23 +0100)
committerOleg Drokin <green@whamcloud.com>
Mon, 17 Dec 2012 03:13:15 +0000 (22:13 -0500)
commitd0c104aa0e96b1f1d2366bc1e4715fe3830f41b4
tree4f3705a63ef131ef0a73bd0132ac1d0aec5d6aae
parent0f56a3679909bd67bd246cb3cd5370d8e90f3cba
LU-2378 lma: move HSM & SOM attributes to dedicated xattrs

Reduce LMA to its minimum and move HSM & SOM attributes to dedicated
on-disk extented attributes. This is more consistent with the MDS
layering (HSM, LMA & SOM are managed in different layers) and avoids
locking + read/modify/write in many cases.

As far as interoperability is concerned, the old code works just fine
if it reads a smaller LMA size and the new code retries with a
larger buffer on ERANGE error.

Signed-off-by: Johann Lombardi <johann.lombardi@intel.com>
Change-Id: Id4ee465ea69820229f7214d800821864330a8aec
Reviewed-on: http://review.whamcloud.com/4746
Reviewed-by: Aurelien Degremont <aurelien.degremont@cea.fr>
Tested-by: Hudson
Reviewed-by: Andreas Dilger <andreas.dilger@intel.com>
Reviewed-by: Alex Zhuravlev <bzzz@whamcloud.com>
Tested-by: Maloo <whamcloud.maloo@gmail.com>
13 files changed:
lustre/include/lustre/lustre_idl.h
lustre/include/md_object.h
lustre/mdt/Makefile.in
lustre/mdt/mdt_handler.c
lustre/mdt/mdt_hsm.c [new file with mode: 0644]
lustre/mdt/mdt_open.c
lustre/obdclass/Makefile.in
lustre/obdclass/md_attrs.c [new file with mode: 0644]
lustre/osd-ldiskfs/osd_handler.c
lustre/osd-ldiskfs/osd_internal.h
lustre/ptlrpc/wiretest.c
lustre/utils/wirecheck.c
lustre/utils/wiretest.c