Yeah, sorry, the target device should be used to send a TARGET_DEVICE_CUSTOM_NOTIFICAITON of type GUID_IO_VOLUME_CHANGE at the end of the function (IoReportTargetDeviceChange).
FYI, Pierre, when you implement the notification system.
On 4-Jan-09, at 5:12 AM, fireball@svn.reactos.org wrote:
Author: fireball Date: Sun Jan 4 04:12:38 2009 New Revision: 38552
URL: http://svn.reactos.org/svn/reactos?rev=38552&view=rev Log:
- Revert changes to NtSetVolumeInformationFile made in 38550, it
should indeed use IoGetRelatedDeviceObject, not target device.
Modified: trunk/reactos/ntoskrnl/io/iomgr/iofunc.c
Modified: trunk/reactos/ntoskrnl/io/iomgr/iofunc.c URL: http://svn.reactos.org/svn/reactos/trunk/reactos/ntoskrnl/io/iomgr/iofunc.c?... = = = = = = = = ====================================================================== --- trunk/reactos/ntoskrnl/io/iomgr/iofunc.c [iso-8859-1] (original) +++ trunk/reactos/ntoskrnl/io/iomgr/iofunc.c [iso-8859-1] Sun Jan 4 04:12:38 2009 @@ -3307,8 +3307,7 @@ }
/* Get the device object */
- Status = IoGetRelatedTargetDevice(FileObject, &DeviceObject);
- if (!NT_SUCCESS(Status)) return Status;
DeviceObject = IoGetRelatedDeviceObject(FileObject);
/* Clear File Object event */ KeClearEvent(&FileObject->Event);
Best regards, Alex Ionescu