From 0ef03fcf25d31701b5baf7fd2aad3e6fd6e17ad0 Mon Sep 17 00:00:00 2001 From: Pierre Schweitzer Date: Fri, 7 Mar 2014 19:38:35 +0000 Subject: [PATCH] [FASTFAT] Add required fields to handle file system notifications to device extension/VCB and properly initialize them on volume mount svn path=/trunk/; revision=62443 --- reactos/drivers/filesystems/fastfat/fsctl.c | 2 ++ reactos/drivers/filesystems/fastfat/vfat.h | 4 ++++ 2 files changed, 6 insertions(+) diff --git a/reactos/drivers/filesystems/fastfat/fsctl.c b/reactos/drivers/filesystems/fastfat/fsctl.c index 24feadd906e..35e67d3893b 100644 --- a/reactos/drivers/filesystems/fastfat/fsctl.c +++ b/reactos/drivers/filesystems/fastfat/fsctl.c @@ -600,6 +600,8 @@ VfatMount( VolumeFcb->Flags |= VCB_IS_DIRTY; FsRtlNotifyVolumeEvent(DeviceExt->FATFileObject, FSRTL_VOLUME_MOUNT); + FsRtlNotifyInitializeSync(&DeviceExt->NotifySync); + InitializeListHead(&DeviceExt->NotifyList); Status = STATUS_SUCCESS; diff --git a/reactos/drivers/filesystems/fastfat/vfat.h b/reactos/drivers/filesystems/fastfat/vfat.h index 791daf29449..28a047a5b1e 100644 --- a/reactos/drivers/filesystems/fastfat/vfat.h +++ b/reactos/drivers/filesystems/fastfat/vfat.h @@ -291,6 +291,10 @@ typedef struct DEVICE_EXTENSION ULONG BaseDateYear; LIST_ENTRY VolumeListEntry; + + /* Notifications */ + LIST_ENTRY NotifyList; + PNOTIFY_SYNC NotifySync; } DEVICE_EXTENSION, VCB, *PVCB; typedef struct