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

allow 'lfs find -printf' field widths

Details

    • 9223372036854775807

    Description

      For implementing "lfs find -ls" it would be useful to allow specifying the field width for the "%x" operators, rather than forcing the use of a full tabstop with "\t" (which is often too large a field width and doesn't always work properly).  Something like "%12s" to have the file size printed with 12-char fields (leading space) or "%06U" to have the file UID printed with leading zeroes.

      Attachments

        Issue Links

          Activity

            [LU-16561] allow 'lfs find -printf' field widths
            pjones Peter Jones added a comment -

            Merged for 2.17

            pjones Peter Jones added a comment - Merged for 2.17

            "Oleg Drokin <green@whamcloud.com>" merged in patch https://review.whamcloud.com/c/fs/lustre-release/+/57395/
            Subject: LU-16561: find: support width in -printf directive
            Project: fs/lustre-release
            Branch: master
            Current Patch Set:
            Commit: 6fe2fcb02c7fbbe00f7188e33bb65a38dc7ebcc3

            gerrit Gerrit Updater added a comment - "Oleg Drokin <green@whamcloud.com>" merged in patch https://review.whamcloud.com/c/fs/lustre-release/+/57395/ Subject: LU-16561 : find: support width in -printf directive Project: fs/lustre-release Branch: master Current Patch Set: Commit: 6fe2fcb02c7fbbe00f7188e33bb65a38dc7ebcc3

            Sorry for the delay. I had to find some time to work on this. There was a few changes made to the printf code since LUG.

            courrier Guillaume Courrier added a comment - Sorry for the delay. I had to find some time to work on this. There was a few changes made to the printf code since LUG.

            "Guillaume Courrier <guillaume.courrier@cea.fr>" uploaded a new patch: https://review.whamcloud.com/c/fs/lustre-release/+/57395
            Subject: LU-16561: find: support width in -printf directive
            Project: fs/lustre-release
            Branch: master
            Current Patch Set: 1
            Commit: 71fee521d592a1326107a1957e54c8c1bf023efd

            gerrit Gerrit Updater added a comment - "Guillaume Courrier <guillaume.courrier@cea.fr>" uploaded a new patch: https://review.whamcloud.com/c/fs/lustre-release/+/57395 Subject: LU-16561 : find: support width in -printf directive Project: fs/lustre-release Branch: master Current Patch Set: 1 Commit: 71fee521d592a1326107a1957e54c8c1bf023efd

            I made a prototype during the LUG's developper day but I didn't take the time to finish it. I will try to push it this week.

            courrier Guillaume Courrier added a comment - I made a prototype during the LUG's developper day but I didn't take the time to finish it. I will try to push it this week.

            courrier are you planning to work on this, or should I put it back into the pool for someone else?

            adilger Andreas Dilger added a comment - courrier are you planning to work on this, or should I put it back into the pool for someone else?

            People

              courrier Guillaume Courrier
              adilger Andreas Dilger
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: