Added notifications stuff to VCB

svn path=/trunk/; revision=39040
This commit is contained in:
Pierre Schweitzer 2009-01-23 12:18:38 +00:00
parent ff636d548a
commit 41d698006f
2 changed files with 11 additions and 0 deletions

View file

@ -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);

View file

@ -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;