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

When mounting a volume, it gets an extra ReferenceCount.

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Fix Version/s: 0.4.13
    • Component/s: NTCore
    • Labels:

      Description

      IopParseDevice() calls IopCheckVpbMounted(), which checks whether the volume was mounted before. If the volume is already mounted, then simply increases Vpb->ReferenceCount, which will then be reduced in IopDeleteFile(). If the volume is not yet mounted, then the start looping until the VPB is mounted. In this loop, the function IopMountVolume() is called, which initializes the VPB - IopMountInitializeVpb(). In the IopMountInitializeVpb() function, the value of Vpb->ReferenceCount increases. Thus, when mounting a volume, Vpb->ReferenceCount increases twice and decreases only once (in IopDeleteFile()).

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Heis Spiter Pierre Schweitzer
                Reporter:
                vgal vgal
              • Votes:
                1 Vote for this issue
                Watchers:
                5 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: