Whamcloud - gitweb
LU-12998 lod: statfs upon nocreate check 37/53437/3
authorLai Siyao <lai.siyao@whamcloud.com>
Tue, 12 Dec 2023 19:50:33 +0000 (14:50 -0500)
committerOleg Drokin <green@whamcloud.com>
Wed, 19 Jun 2024 00:45:22 +0000 (00:45 +0000)
commit6dbb4c6c826133452c8c2da3937711c2030f99eb
tree937fda23121b5a37764a5e3b2046ffd1d866e610
parent9dce1d70f11b0e0ed801dd11b4f525fc855e2f61
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
Reviewed-on: https://review.whamcloud.com/c/fs/lustre-release/+/53437
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
Reviewed-by: Hongchao Zhang <hongchao@whamcloud.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
lustre/lmv/lmv_obd.c
lustre/lod/lod_object.c