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

"truncate" does not update blocks count on client

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Minor
    • Lustre 2.12.0
    • Lustre 2.10.1
    • 3
    • 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

              arshad512 Arshad Hussain
              adilger Andreas Dilger
              Votes:
              0 Vote for this issue
              Watchers:
              11 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: