Skip to content

Commit

Permalink
sys - Log ProcessId to CCB
Browse files Browse the repository at this point in the history
  • Loading branch information
Liryna committed Apr 27, 2020
1 parent c12463b commit c3dc4c1
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions sys/create.c
Original file line number Diff line number Diff line change
Expand Up @@ -264,6 +264,7 @@ PDokanCCB DokanAllocateCCB(__in PDokanDCB Dcb, __in PDokanFCB Fcb) {
InsertTailList(&Fcb->NextCCB, &ccb->NextCCB);

ccb->MountId = Dcb->MountId;
ccb->ProcessId = PsGetCurrentProcessId();

InterlockedIncrement(&Fcb->Vcb->CcbAllocated);
return ccb;
Expand Down
3 changes: 3 additions & 0 deletions sys/dokan.h
Original file line number Diff line number Diff line change
Expand Up @@ -707,6 +707,9 @@ typedef struct _DokanContextControlBlock {
// the IRP_MJ_CREATE does not succeed. The flag is cleared when the oplock
// request is backed out.
BOOLEAN AtomicOplockRequestPending;

// The process that created the CCB, for debugging purposes.
HANDLE ProcessId;
} DokanCCB, *PDokanCCB;

//
Expand Down

0 comments on commit c3dc4c1

Please sign in to comment.