Whamcloud - gitweb
LU-15066 utils: do not inherit limits from global pool 35/45135/10
authorSergey Cheremencev <sergey.cheremencev@hpe.com>
Fri, 2 Jul 2021 11:55:19 +0000 (14:55 +0300)
committerOleg Drokin <green@whamcloud.com>
Thu, 20 Jan 2022 18:25:08 +0000 (18:25 +0000)
commitbbecfa64fc585197246fcc443b487bec44b1f4dc
treeface8de52d7c0ee8607a56c06d74dda16656beef
parentb1acf734f31c13d291c5e1534d7a01f0fbd7e972
LU-15066 utils: do not inherit limits from global pool

lfs_setquota retrieves quota limits from the server
before setting new ones. It is needed to do not overwrite
already set limits. Before the patch limits were retrieved
only from global pool, despite the fact that new limit should
be set to a specific pool. Thus, setting only hard block limit
to a specific pool, this pool could inherit soft block limit
from the global pool.

HPE-bug-id: LUS-10186
Change-Id: I6fdbf3265f950e39b48a5ad06b059d8aa06a6218
Signed-off-by: Sergey Cheremencev <sergey.cheremencev@hpe.com>
Reviewed-on: https://review.whamcloud.com/45135
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Alexander Boyko <alexander.boyko@hpe.com>
Reviewed-by: Chris Horn <chris.horn@hpe.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
lustre/tests/sanity-quota.sh
lustre/utils/lfs.c