mirror of
https://github.com/reactos/reactos.git
synced 2025-04-25 16:10:29 +00:00
Added notifications stuff to VCB
svn path=/trunk/; revision=39040
This commit is contained in:
parent
ff636d548a
commit
41d698006f
2 changed files with 11 additions and 0 deletions
|
@ -593,6 +593,10 @@ FatInitializeVcb(IN PVCB Vcb,
|
|||
goto FatInitializeVcbCleanup;
|
||||
}
|
||||
|
||||
/* Set up notifications */
|
||||
FsRtlNotifyInitializeSync(&Vcb->NotifySync);
|
||||
InitializeListHead(&Vcb->NotifyList);
|
||||
|
||||
/* Call helper function */
|
||||
FatiInitializeVcb(Vcb);
|
||||
|
||||
|
@ -623,6 +627,9 @@ FatUninitializeVcb(IN PVCB Vcb)
|
|||
Vcb->VolumeFileObject = NULL;
|
||||
}
|
||||
|
||||
/* Free notifications stuff */
|
||||
FsRtlNotifyUninitializeSync(&Vcb->NotifySync);
|
||||
|
||||
/* Unlink from global Vcb list. */
|
||||
RemoveEntryList(&Vcb->VcbLinks);
|
||||
|
||||
|
|
|
@ -91,6 +91,10 @@ typedef struct _VCB
|
|||
PDEVICE_OBJECT TargetDeviceObject;
|
||||
LIST_ENTRY VcbLinks;
|
||||
|
||||
/* Notifications support */
|
||||
PNOTIFY_SYNC NotifySync;
|
||||
LIST_ENTRY NotifyList;
|
||||
|
||||
/* Volume Characteristics: */
|
||||
ULONG SerialNumber;
|
||||
BIOS_PARAMETER_BLOCK Bpb;
|
||||
|
|
Loading…
Reference in a new issue