[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
This commit is contained in:
Pierre Schweitzer 2014-03-07 19:38:35 +00:00
parent 623048035a
commit 0ef03fcf25
2 changed files with 6 additions and 0 deletions

View file

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

View file

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