mirror of
https://github.com/ApfelTeeSaft/reactos.git
synced 2026-08-28 19:26:16 +00:00
Added notifications stuff to VCB
svn path=/trunk/; revision=39040
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user