Whamcloud - gitweb
LU-18353 utils: prohibit set inode limit to PQ 34/56634/4
authorSergey Cheremencev <scherementsev@ddn.com>
Wed, 9 Oct 2024 22:19:23 +0000 (01:19 +0300)
committerOleg Drokin <green@whamcloud.com>
Sat, 18 Jan 2025 22:04:19 +0000 (22:04 +0000)
commit3d838a1b37e57b028fa1f7a55a32e16eb75e7c80
treee599e23857a169741a444fe10815e65ab64adb12
parenta32c87805ffb04dad416705e8058775835df0899
LU-18353 utils: prohibit set inode limit to PQ

Prohibit to set inode limit for Pool Quotas.
Without the fix it sent a request at MDT and
failed with following errors:

  lfs setquota: Cannot find pool 'ddn_ssd'
  lfs setquota: quotactl failed: No such file or directory

With the patch it fails with more suitable message
and returns ENOENT directly from utils without extra
request at MDT:

  lt-lfs setquota: inode limits are not supported with Pool Quotas
  setquota failed: Invalid argument

Test-Parameters: trivial testlist=sanity-quota
Signed-off-by: Sergey Cheremencev <scherementsev@ddn.com>
Change-Id: If3fae3cee49138b47605bc603e896955f9b73851
Reviewed-on: https://review.whamcloud.com/c/fs/lustre-release/+/56634
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
Reviewed-by: Alexander Boyko <alexander.boyko@hpe.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
lustre/tests/sanity-quota.sh
lustre/utils/lfs.c