Whamcloud - gitweb
LU-15707 lod: force creation of a component without a pool 77/49477/2
authorEtienne AUJAMES <etienne.aujames@cea.fr>
Wed, 30 Mar 2022 16:43:44 +0000 (18:43 +0200)
committerOleg Drokin <green@whamcloud.com>
Mon, 13 Nov 2023 02:07:11 +0000 (02:07 +0000)
commitfab54100cb822e8b471b0df92ce24f41bd0fd94c
treeb2312c129af6fd05372acb02cb6ff4990736d845
parent24b55e7c8b153f9dfc04ec4cc428bd613ebdec69
LU-15707 lod: force creation of a component without a pool

This patch add the pool option "lfs setstripe -p ignore" to force
the creation of component without a pool set by inheritance (from
parent or root).

e.g:
$ lfs setstripe -p pool tdir
$ lfs setstripe -E1M -p ignore -E-1 -p '' -c2 -S2M tdir/tfile
$ lfs getstripe -I1 -p tdir/tfile
(no pool set)
$ lfs getstripe -I2 -p tdir/tfile
pool
(inherited from tdir)

This patch add the test "ost-pools test_32" to verify this behavior.

The poorly-named "-p none" keyword, which indicates the pool name
should be inherited from the root or parent dir layout, will be
eventually replaced by the new "-p inherit" keyword.

Lustre-change: https://review.whamcloud.com/46955
Lustre-commit: 6b69d22e4cb738f4f9ff5454a6f9ae17a3a2d6fa

Test-Parameters: serverdistro=el7.9 serverversion=2.12.8 testlist=ost-pools env=ONLY=32,ONLY_REPEAT=50
Test-Parameters: testlist=ost-pools env=ONLY=32,ONLY_REPEAT=50
Signed-off-by: Etienne AUJAMES <eaujames@ddn.com>
Change-Id: I782cbafe209cff6857162303a4650f5e3b438be5
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
Reviewed-by: Jian Yu <yujian@whamcloud.com>
Reviewed-on: https://review.whamcloud.com/c/fs/lustre-release/+/49477
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
12 files changed:
lustre/doc/lfs-setstripe.1
lustre/include/obd_class.h
lustre/include/uapi/linux/lustre/lustre_user.h
lustre/lod/lod_object.c
lustre/lod/lod_pool.c
lustre/lod/lod_qos.c
lustre/mdd/mdd_lproc.c
lustre/mgs/mgs_handler.c
lustre/tests/ost-pools.sh
lustre/utils/lfs.c
lustre/utils/liblustreapi.c
lustre/utils/obd.c