Whamcloud - gitweb
LU-18079 utils: argument parse opts for lfs quota 94/55894/29
authorFrederick Dilger <fdilger@whamcloud.com>
Mon, 2 Sep 2024 21:31:20 +0000 (15:31 -0600)
committerOleg Drokin <green@whamcloud.com>
Thu, 6 Feb 2025 01:28:00 +0000 (01:28 +0000)
commit7c02893e12e207ac543a15da15bdf5fa9597df9b
treeac1d0d8e173c59de5cb2bd781726f2615b42e01f
parentdf4183e837baaf8256723474dc3c842863aab595
LU-18079 utils: argument parse opts for lfs quota

Adding new options to only get certain arguments from 'lfs quota'.
This works much like 'lfs getstripe'. Each option will show their
respected argument and can be combined together to show multiple
arguments. They will be shown in the same order that they appear
in the full table for 'lfs quota'.
Added:
    --filesystem|--mount-point
    --blocks|--space|--busage
    --block-softlimit|--bsoftlimit
    --block-hardlimit|--bhardlimit
    --block-grace|--bgrace|--btime
    --inodes|--iusage
    --inode-softlimit|--isoftlimit
    --inode-hardlimit|--ihardlimit
    --inode-grace|--igrace|--itime
each matching a column of the table.

Signed-off-by: Frederick Dilger <fdilger@whamcloud.com>
Change-Id: Iffb9be9a55368a3faad3a8e74ee2f2a6b1ec7301
Reviewed-on: https://review.whamcloud.com/c/fs/lustre-release/+/55894
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
Reviewed-by: Sergey Cheremencev <scherementsev@ddn.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
lustre/doc/lfs-quota.1
lustre/include/uapi/linux/lustre/lustre_user.h
lustre/tests/sanity-quota.sh
lustre/utils/lfs.c