Whamcloud - gitweb
LU-12998 lod: statfs upon nocreate check 37/53437/1
authorLai Siyao <lai.siyao@whamcloud.com>
Tue, 12 Dec 2023 19:50:33 +0000 (14:50 -0500)
committerLai Siyao <lai.siyao@whamcloud.com>
Tue, 12 Dec 2023 20:03:11 +0000 (15:03 -0500)
commit066262a04cb8e0cbf49a20b7bf036d4484399afe
treeafb22832611c6d069906deb1012be1622b0ca33e
parentde352465eb6a02aeb20357208c54e903585e12e3
LU-12998 lod: statfs upon nocreate check

lod_declare_create() checks whether directory create target MDT is
current MDT, this may happen if nocreate is set on some MDT. Upon
such mismatch, call dt_statfs() to fetch latest statfs to know
whether nocreate is set.

lmv_create() will choose another MDT if target MDT is set with
nocreate, but in case the flag is cleared, call obd_statfs() to fetch
cached statfs and check again.

Fixes: 1dbcd0bab88 (LU-12998 mds: add no_create parameter to stop creates)
Signed-off-by: Lai Siyao <lai.siyao@whamcloud.com>
Change-Id: I2575d15416968554c66d40dcf18ecca2a06c7a37
lustre/lmv/lmv_obd.c
lustre/lod/lod_object.c