Whamcloud - gitweb
LU-1546 mdd: return nlink as zero for dead objects
authorJohn L. Hammond <john.hammond@intel.com>
Wed, 16 Jan 2013 11:53:19 +0000 (05:53 -0600)
committerOleg Drokin <oleg.drokin@intel.com>
Wed, 27 Feb 2013 09:33:38 +0000 (04:33 -0500)
commit413b6c2e365cf3ff986611e20dd77186ed25a3ac
tree7d369fb7cf7b07211b4850d22df7bdc0997720a7
parentafe1d3a47bc97525d0f5adf686bb24e848e04755
LU-1546 mdd: return nlink as zero for dead objects

In mdd_attr_get_internal() check for dead objects and set nlink to
zero accordingly.  Add a sanity check to verify that this works as
expected.

Change-Id: I9dd574cce63bcbf47c9f8f3c7ae6d151c704a45a
Signed-off-by: John L. Hammond <john.hammond@intel.com>
Reviewed-on: http://review.whamcloud.com/3154
Tested-by: Hudson
Reviewed-by: Bobi Jam <bobijam@gmail.com>
Tested-by: Maloo <whamcloud.maloo@gmail.com>
Reviewed-by: Andreas Dilger <andreas.dilger@intel.com>
lustre/mdd/mdd_object.c
lustre/tests/sanity.sh