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

"truncate" does not update blocks count on client

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: Lustre 2.10.1
    • Fix Version/s: Lustre 2.12.0
    • Labels:
    • Severity:
      3
    • Rank (Obsolete):
      9223372036854775807

      Description

      Running truncate --size=N file on a file larger than {{N} will correctly update and return the file size to the client, but does not update the client's idea of the block count. Running the following test fails on my 2.10.1 system:

      $ dd if=1k bs=1M /myth/tmp/largefile
      $ truncate --size 512M /myth/tmp/largefile
      

      The size is updated on the client to 512MB, but the blocks are left at 1GB in the client cache.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                arshad512 Arshad Hussain
                Reporter:
                adilger Andreas Dilger
              • Votes:
                0 Vote for this issue
                Watchers:
                10 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: