Whamcloud - gitweb
LU-18386 utils: add lfs quota --delimiter option 39/56739/10
authorFrederick Dilger <fdilger@whamcloud.com>
Mon, 21 Oct 2024 07:53:57 +0000 (01:53 -0600)
committerOleg Drokin <green@whamcloud.com>
Thu, 6 Feb 2025 01:28:28 +0000 (01:28 +0000)
commit8064b6af1236f2df8d1c801e18f86a583c5a6fb6
tree4282932a45f1ec77265741de154deb909dceb5b8
parentf37e9527ef80ffcadcc849980d56ec83b039679e
LU-18386 utils: add lfs quota --delimiter option

Add a new --delimiter option to the lfs quota command, allowing
users to specify a custom delimiter for the output. This enhances
the flexibility of the quota display, making it easier to parse
the output for scripts and other automated tools.
The default delimiter is a space.

$ lfs quota --delimiter="," /mnt/lustre
Disk quotas for usr root (uid 0):
      Filesystem, kbytes, bquota, blimit, bgrace, ..., igrace
     /mnt/lustre,   4360,      0,      0,      -, ...,      -
Disk quotas for grp root (gid 0):
      Filesystem, kbytes, bquota, blimit, bgrace, ..., igrace
     /mnt/lustre,   4360,      0,      0,      -, ...,      -

Signed-off-by: Frederick Dilger <fdilger@whamcloud.com>
Change-Id: I58faffeeeecf07ae8630d3f518306c5dcec39867
Reviewed-on: https://review.whamcloud.com/c/fs/lustre-release/+/56739
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
Reviewed-by: Etienne AUJAMES <eaujames@ddn.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
lustre/doc/lfs-quota.1
lustre/utils/lfs.c