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

Data corruption after moving directories

    XMLWordPrintable

Details

    • 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. updatedir1.log
          33 kB
        2. updatedir.c
          3 kB
        3. rename_dir.patch
          1 kB
        4. partitions.png
          partitions.png
          8 kB

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved: