Author: pschweitzer Date: Fri Jan 23 06:18:38 2009 New Revision: 39040
URL: http://svn.reactos.org/svn/reactos?rev=39040&view=rev Log: Added notifications stuff to VCB
Modified: trunk/reactos/drivers/filesystems/fastfat_new/fat.c trunk/reactos/drivers/filesystems/fastfat_new/fatstruc.h
Modified: trunk/reactos/drivers/filesystems/fastfat_new/fat.c URL: http://svn.reactos.org/svn/reactos/trunk/reactos/drivers/filesystems/fastfat... ============================================================================== --- trunk/reactos/drivers/filesystems/fastfat_new/fat.c [iso-8859-1] (original) +++ trunk/reactos/drivers/filesystems/fastfat_new/fat.c [iso-8859-1] Fri Jan 23 06:18:38 2009 @@ -593,6 +593,10 @@ goto FatInitializeVcbCleanup; }
+ /* Set up notifications */ + FsRtlNotifyInitializeSync(&Vcb->NotifySync); + InitializeListHead(&Vcb->NotifyList); + /* Call helper function */ FatiInitializeVcb(Vcb);
@@ -623,6 +627,9 @@ Vcb->VolumeFileObject = NULL; }
+ /* Free notifications stuff */ + FsRtlNotifyUninitializeSync(&Vcb->NotifySync); + /* Unlink from global Vcb list. */ RemoveEntryList(&Vcb->VcbLinks);
Modified: trunk/reactos/drivers/filesystems/fastfat_new/fatstruc.h URL: http://svn.reactos.org/svn/reactos/trunk/reactos/drivers/filesystems/fastfat... ============================================================================== --- trunk/reactos/drivers/filesystems/fastfat_new/fatstruc.h [iso-8859-1] (original) +++ trunk/reactos/drivers/filesystems/fastfat_new/fatstruc.h [iso-8859-1] Fri Jan 23 06:18:38 2009 @@ -90,6 +90,10 @@ PFILE_OBJECT VolumeFileObject; PDEVICE_OBJECT TargetDeviceObject; LIST_ENTRY VcbLinks; + + /* Notifications support */ + PNOTIFY_SYNC NotifySync; + LIST_ENTRY NotifyList;
/* Volume Characteristics: */ ULONG SerialNumber;