Uploaded image for project: 'Lustre'
  1. Lustre
  2. LU-17702

'lfs quota -u $USER' should print quota for all Lustre mountpoints

    XMLWordPrintable

Details

    • 3
    • 9223372036854775807

    Description

      It would be useful if "lfs quota -u $USER" without a filesystem mountpoint would print the quota information for all of the mounted Lustre client filesystems, rather than having to specify the filesystem names explicitly, like "lfs df" does in lfs_df(). This would make it useful to add into a login script like:

      test -t 0 && lfs quota -u $USER
      

      so that it prints Lustre quota usage for interactive login shells without the user/admin having to script this to scan for mounted Lustre filesystems and run "lfs quota -u $USER MOUNTPOINT" for each one.

      Ideally, combined with "lfs quota -a" from LU-14535 for a regular user this would print the quota information for the current UID and every GID listed by "id". I'm not sure if there is any easy way to do this for project quota limits, except to check "lfs quota -p PROJID" where "PROJID = UID" as proposed in LU-13335.

      Attachments

        Issue Links

          Activity

            People

              fdilger Fred Dilger
              adilger Andreas Dilger
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: