Whamcloud - gitweb
LU-7579 osd: move ORPHAN/DEAD flag to OSD
authorDi Wang <di.wang@intel.com>
Sat, 9 Jan 2016 15:05:32 +0000 (10:05 -0500)
committerOleg Drokin <oleg.drokin@intel.com>
Sun, 14 Feb 2016 00:31:59 +0000 (19:31 -0500)
commit916a4d1712f6aad9c643dd92b503b36441051a59
tree67f8fcb0b6e17ca2e38b8ce5ccc3566eca221811
parent5f6c5c89ebf0abf88b6fc1e80ff349990a97abf9
LU-7579 osd: move ORPHAN/DEAD flag to OSD

If a directory is unlinked while it is opened, then
it will set LUSTRE_ORPHAN_FL flag to osd object, so
the remote target can get this status by dt_attr_get().

And also LUSTRE_ORPHAN_FL will be stored inside
LMA (converted to LMAI_ORPHAN). In the meantime,
it will remove LUSTRE_SLAVE_DEAD_FL flag for dead
stripes of a striped directory, i.e. all of
dead directories (stripes) will use LMAI_ORPHAN
in LMA to indicate the status.

Also in osp_xattr, it should retrieve the return
value from the reply, which is the real length of
EA, instead of using reply buffer length.

Change-Id: I14e933b5f008981cbacbdfa478e4ec8cbebf97dc
Signed-off-by: Di Wang <di.wang@intel.com>
Reviewed-on: http://review.whamcloud.com/18024
Reviewed-by: John L. Hammond <john.hammond@intel.com>
Reviewed-by: Andreas Dilger <andreas.dilger@intel.com>
Tested-by: Jenkins
Tested-by: Maloo <hpdd-maloo@intel.com>
Reviewed-by: Oleg Drokin <oleg.drokin@intel.com>
17 files changed:
lustre/include/lustre/lustre_idl.h
lustre/include/md_object.h
lustre/include/obd_support.h
lustre/llite/dir.c
lustre/lod/lod_object.c
lustre/mdd/mdd_dir.c
lustre/mdd/mdd_object.c
lustre/osd-ldiskfs/osd_handler.c
lustre/osd-ldiskfs/osd_internal.h
lustre/osd-zfs/osd_internal.h
lustre/osd-zfs/osd_object.c
lustre/osp/osp_object.c
lustre/ptlrpc/wiretest.c
lustre/tests/sanity.sh
lustre/tests/sanityn.sh
lustre/utils/wirecheck.c
lustre/utils/wiretest.c