Uploaded image for project: 'Core ReactOS'
  1. Core ReactOS
  2. CORE-11426

Data corruption after moving directories

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Fix Version/s: 0.4.2
    • Component/s: Filesystems
    • Labels:
      None
    • Module:
    • Sprint:
      July 2016

      Description

      While investigating CORE-11377, I ran into multiple issues related to renaming a directory, and then moving a subdirectory back to the original location.

      updatedir.c which reproduces this issue, creates two directories, each with a testfile:

      c:\movetest\1\
      c:\movetest\1\test.txt
      c:\movetest\1\u\
      c:\movetest\1\u\test.txt

      First it renames c:\movetest\1 into c:\movetest\2.
      Next it moves c:\movetest\2\u back to c:\movetest\1.

      The main problem is a data corruption after doing this. I'll add more details below.

        Attachments

        1. updatedir.c
          3 kB
        2. updatedir1.log
          33 kB
        3. partitions.png
          partitions.png
          8 kB
        4. rename_dir.patch
          1 kB

          Issue Links

            Activity

              People

              • Assignee:
                Heis Spiter Pierre Schweitzer
                Reporter:
                wimh wimh
              • Votes:
                3 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: