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

'lfs df' should limit statfs by project quota limits

Details

    • Improvement
    • Resolution: Unresolved
    • Minor
    • None
    • Lustre 2.16.0

    Description

      Similar to how "df $DIR" (statfs()) on a directory with a project quota limit project will return the project quota bhardlimit and busage as the total/used blocks, "lfs df $DIR" should also return the project quota limits for that PROJID. The same holds for inode limits and "lfs df -i $DIR".

      This is a bit more complex to implement, because the space allocation to each OST may be different, and it isn't clear where to assign the unused space/qunits. However, it should be possible to get the per-OST usage/limits in a similar manner as "lfs quota -p", and then distribute any unused space/qunits across the OSTs as evenly as possible (subject to minimum 1MB qunit granularity.

      Attachments

        Issue Links

          Activity

            People

              wc-triage WC Triage
              adilger Andreas Dilger
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated: