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;