Whamcloud - gitweb
LU-14459 mdt: support fixed directory layout
authorLai Siyao <lai.siyao@whamcloud.com>
Wed, 28 Apr 2021 21:30:00 +0000 (05:30 +0800)
committerAndreas Dilger <adilger@whamcloud.com>
Fri, 6 Aug 2021 02:33:29 +0000 (02:33 +0000)
commit3ae36f4c0a5235c52f0a8003acf7986086528ce2
treec8083f7807d5520e42f724c8784a4e2aec34c463
parent0f52ee416b65346717af86516e465be38e77eccc
LU-14459 mdt: support fixed directory layout

User may not want directories split automatically in some cases:
*.directory migrated.
* directory restriped.

To support this, an LMV flag LMV_HASH_FLAG_FIXED is added, and it will
be set on migrated/restriped directories. NB, if directory is migrated
or restriped to a one-stripe directory, it won't be transformed into a
plain directory, because this flag needs to be kept.

Update sanity 230q.

Lustre-change: https://review.whamcloud.com/43291
Lustre-commit: 4c2514f4832801374092f3a48c755248af345566

Signed-off-by: Lai Siyao <lai.siyao@whamcloud.com>
Change-Id: Icd12b2aa34d391e32c3323a8b9c24449ea3e3d0e
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
Reviewed-by: Hongchao Zhang <hongchao@whamcloud.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
Reviewed-on: https://review.whamcloud.com/44459
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
14 files changed:
lustre/include/lustre_lmv.h
lustre/include/uapi/linux/lustre/lustre_user.h
lustre/lod/lod_object.c
lustre/mdd/mdd_dir.c
lustre/mdt/mdt_handler.c
lustre/mdt/mdt_lib.c
lustre/mdt/mdt_reint.c
lustre/mdt/mdt_restripe.c
lustre/mdt/mdt_xattr.c
lustre/ptlrpc/wiretest.c
lustre/tests/sanity.sh
lustre/utils/liblustreapi.c
lustre/utils/wirecheck.c
lustre/utils/wiretest.c