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

add 'lfs df --output' option to print specific fields

    XMLWordPrintable

Details

    • Improvement
    • Resolution: Unresolved
    • Minor
    • None
    • None
    • 3
    • 9223372036854775807

    Description

      As with "df", it would be useful to allow specifying "lfs df --output=FIELD_LIST" to print only specific fields from the output:

      FIELD_LIST is a comma-separated list of columns to be included. Valid
      field names are: 'source', 'itotal', 'iused', 'iavail',
      'ipcent', 'size', 'used', 'avail', 'pcent', 'file' and 'target'

      This allows printing only specific fields, and would avoid a lot of "lfs df | awk '/OST0000/ { print $4 }'" kind of usage in test scripts, and is likely similarly useful for end users.

      Attachments

        Issue Links

          Activity

            People

              core-lustre-triage Core Lustre Triage
              adilger Andreas Dilger
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated: