Whamcloud - gitweb
LU-7579 osd: move ORPHAN/DEAD flag to OSD 24/18024/12
authorDi Wang <di.wang@intel.com>
Sat, 9 Jan 2016 15:05:32 +0000 (10:05 -0500)
committerOleg Drokin <oleg.drokin@intel.com>
Sat, 13 Feb 2016 03:27:22 +0000 (03:27 +0000)
commit098fb363c3902f67b29ddfa864b452d0a8460ad2
treead01ea1c10c9342baa5c6cefc115d4054c6540bb
parent774ffa9bfa787e24d9adaa7309610e790c1fae39
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