From 41d698006fdcdfd00339633db178bafdaffb1800 Mon Sep 17 00:00:00 2001 From: Pierre Schweitzer Date: Fri, 23 Jan 2009 12:18:38 +0000 Subject: [PATCH] Added notifications stuff to VCB svn path=/trunk/; revision=39040 --- reactos/drivers/filesystems/fastfat_new/fat.c | 7 +++++++ reactos/drivers/filesystems/fastfat_new/fatstruc.h | 4 ++++ 2 files changed, 11 insertions(+) diff --git a/reactos/drivers/filesystems/fastfat_new/fat.c b/reactos/drivers/filesystems/fastfat_new/fat.c index f7a4164c4da..53bc3dec0fd 100644 --- a/reactos/drivers/filesystems/fastfat_new/fat.c +++ b/reactos/drivers/filesystems/fastfat_new/fat.c @@ -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); diff --git a/reactos/drivers/filesystems/fastfat_new/fatstruc.h b/reactos/drivers/filesystems/fastfat_new/fatstruc.h index abbb18013e4..89951cf29b8 100644 --- a/reactos/drivers/filesystems/fastfat_new/fatstruc.h +++ b/reactos/drivers/filesystems/fastfat_new/fatstruc.h @@ -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;