Whamcloud - gitweb
LU-11631 obdclass: nlink is not set in struct obdo 96/39896/2
authorLai Siyao <lai.siyao@whamcloud.com>
Sat, 12 Sep 2020 02:23:00 +0000 (10:23 +0800)
committerOleg Drokin <green@whamcloud.com>
Fri, 25 Sep 2020 03:12:53 +0000 (03:12 +0000)
commita9ba4bca528938bf24ec1b172e03b24808393fb2
tree999443d4c94f10f3d2732389bb8003eec2047079
parent1b4054790b88fa046af6dd488d4d4e643154c22d
LU-11631 obdclass: nlink is not set in struct obdo

Traditionally the nlink field is not set in obdo_from_la() and vice
versa, because it's used for communication between MDT and OST, and
this field is not used, but when DNE is enabled, this function is
used to getattr between MDTs, which will always see zero nlink.

Signed-off-by: Lai Siyao <lai.siyao@whamcloud.com>
Change-Id: I2a8e6a7b3f98864ec11bca7f7c2070af90b64ade
Reviewed-on: https://review.whamcloud.com/39896
Tested-by: jenkins <devops@whamcloud.com>
Reviewed-by: Mike Pershin <mpershin@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
lustre/obdclass/obdo_server.c