Whamcloud - gitweb
LU-18639 dne: a correct check for dir split 84/57784/11
authorAlexander Zarochentsev <alexander.zarochentsev@hpe.com>
Tue, 21 Jan 2025 20:10:22 +0000 (20:10 +0000)
committerOleg Drokin <green@whamcloud.com>
Thu, 6 Mar 2025 08:04:59 +0000 (08:04 +0000)
commit103c1f560c8c8dde601aac1fafed137b19fa3429
treea0a0a5d9c4ea8f7104655d3314c3a15c3414be3b
parent54a64ea818d936cb52c263fd34bb359972ae9fb1
LU-18639 dne: a correct check for dir split

Use the actual dir stripe count while performing
a dir split sanity check in lod_dir_declare_dir_split().

Fix lod_object_lock() to work with a striped dir with
only one stripe correctly.

Improve sanity test_230p by adding a dir split right
after the dir merges.

Also fix a typo in lustre/doc/lfs-migrate.1 .

Fixes: 2e2b16c28b ("LU-11025 dne: support directory restripe")
Fixes: 392f558f40 ("LU-17810 dne: dir restripe without fixed hash flag")
HPE-bug-id: LUS-12701
Test-Parameters: envdefinitions=ONLY=230p fstype=ldiskfs mdtcount=2 mdscount=2 testlist=sanity
Signed-off-by: Alexander Zarochentsev <alexander.zarochentsev@hpe.com>
Change-Id: I8d8501fd09f89d03ccb1ea92a8562326110ecc24
Reviewed-on: https://review.whamcloud.com/c/fs/lustre-release/+/57784
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
Reviewed-by: Lai Siyao <lai.siyao@whamcloud.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
lustre/doc/lfs-migrate.1
lustre/lod/lod_object.c
lustre/tests/sanity.sh