mirror of
https://github.com/reactos/reactos.git
synced 2025-07-04 02:41:21 +00:00
[FASTFAT] When not able to lock a volume due to open handles, print open handles
This commit is contained in:
parent
ab7ddc44f7
commit
27773dbb3f
1 changed files with 16 additions and 0 deletions
|
@ -1115,6 +1115,22 @@ VfatLockOrUnlockVolume(
|
||||||
/* Deny locking if we're not alone */
|
/* Deny locking if we're not alone */
|
||||||
if (Lock && DeviceExt->OpenHandleCount != 1)
|
if (Lock && DeviceExt->OpenHandleCount != 1)
|
||||||
{
|
{
|
||||||
|
PLIST_ENTRY ListEntry;
|
||||||
|
|
||||||
|
DPRINT1("Can't lock: %u opened\n", DeviceExt->OpenHandleCount);
|
||||||
|
|
||||||
|
ListEntry = DeviceExt->FcbListHead.Flink;
|
||||||
|
while (ListEntry != &DeviceExt->FcbListHead)
|
||||||
|
{
|
||||||
|
Fcb = CONTAINING_RECORD(ListEntry, VFATFCB, FcbListEntry);
|
||||||
|
ListEntry = ListEntry->Flink;
|
||||||
|
|
||||||
|
if (Fcb->OpenHandleCount > 0)
|
||||||
|
{
|
||||||
|
DPRINT1("Opened (%u - %u): %wZ\n", Fcb->OpenHandleCount, Fcb->RefCount, &Fcb->PathNameU);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
return STATUS_ACCESS_DENIED;
|
return STATUS_ACCESS_DENIED;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue