Whamcloud - gitweb
LU-7787 mdd: clean up orphan object handling 47/30547/1
authorAndreas Dilger <andreas.dilger@intel.com>
Thu, 14 Dec 2017 21:53:58 +0000 (14:53 -0700)
committerAndreas Dilger <andreas.dilger@intel.com>
Thu, 14 Dec 2017 22:04:31 +0000 (15:04 -0700)
commita02fd4573fea82b30a9e2f294d871110f6017ee3
tree222b434286f0145335f5e6bf547d895861e21143
parent11aae875be5fb30a88281ab47e491b75447b299b
LU-7787 mdd: clean up orphan object handling

There was a potential problem in the orphan object naming because
it had an embedded space in the filename before the "operation",
which might cause issues if they are accessed for other reasons.
It turns out that there is no need for the "operation" to be
embedded into the filename, since it was always ORPH_OP_UNLINK.

Use standard DFID formatting for the orphan object names, which
is a bit shorter and more efficient on disk, without the embedded
operation type.

Remove the use of "ORPH_OP_UNLINK" in the code, except in the
compatibility code for handling orphans left over after upgrades
from older Lustre versions.  This can be removed at some point
in the future when there are no longer upgrades from pre-2.11
versions.

Signed-off-by: Andreas Dilger <andreas.dilger@intel.com>
Change-Id: Ica90cc03c3212103c39cba11c4566584bf9cab07
lustre/mdd/mdd_orphans.c