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

Newly created file is same size as directory

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Blocker
    • Lustre 2.4.0
    • None
    • Lustre 2.3.54-2chaos, 2.3.57-2chaos. (github.com/chaos/lustre) ZFS OSTs.
    • 3
    • 5987

    Description

      We have a subdirectory where any newly created files, e.g. "touch newfile", is created with a file size that matches the size of the directory, as listed in "ls -la .".

      I'm not sure yet what is specially about this directory. I can't reproduce the problem in directories that I just "mkdir" myself.

      However, if "cp -a" the problem subdirectory somewhere else in the filesystem, I AM able to then recreate the problem there. In the original problem directory, the directory size is 10720, and any newly created file is 10720 in size. In one copy that I made, the directory size is 9728 bytes, and any newly created files are 9728 bytes.

      Very strange. I'm not yet sure what is special about the directory contents that makes it able to trigger this bug.

      I am able to read the files, and they just contain zeroes.

      Attachments

        Issue Links

          Activity

            People

              laisiyao Lai Siyao
              morrone Christopher Morrone (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: