<html><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div>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).</div><div><br></div><div>FYI, Pierre, when you implement the notification system.</div><div><br></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 10px/normal 'Andale Mono'; "><span class="Apple-style-span" style="font-family: Helvetica; font-size: 12px; ">On 4-Jan-09, at 5:12 AM, <a href="mailto:fireball@svn.reactos.org">fireball@svn.reactos.org</a> wrote:</span></div><div><br class="Apple-interchange-newline"><blockquote type="cite"><div>Author: fireball<br>Date: Sun Jan &nbsp;4 04:12:38 2009<br>New Revision: 38552<br><br>URL: <a href="http://svn.reactos.org/svn/reactos?rev=38552&amp;view=rev">http://svn.reactos.org/svn/reactos?rev=38552&amp;view=rev</a><br>Log:<br>- Revert changes to NtSetVolumeInformationFile made in 38550, it should indeed use IoGetRelatedDeviceObject, not target device.<br><br>Modified:<br> &nbsp;&nbsp;&nbsp;trunk/reactos/ntoskrnl/io/iomgr/iofunc.c<br><br>Modified: trunk/reactos/ntoskrnl/io/iomgr/iofunc.c<br>URL: <a href="http://svn.reactos.org/svn/reactos/trunk/reactos/ntoskrnl/io/iomgr/iofunc.c?rev=38552&amp;r1=38551&amp;r2=38552&amp;view=diff">http://svn.reactos.org/svn/reactos/trunk/reactos/ntoskrnl/io/iomgr/iofunc.c?rev=38552&amp;r1=38551&amp;r2=38552&amp;view=diff</a><br>==============================================================================<br>--- trunk/reactos/ntoskrnl/io/iomgr/iofunc.c [iso-8859-1] (original)<br>+++ trunk/reactos/ntoskrnl/io/iomgr/iofunc.c [iso-8859-1] Sun Jan &nbsp;4 04:12:38 2009<br>@@ -3307,8 +3307,7 @@<br> &nbsp;&nbsp;&nbsp;&nbsp;}<br><br> &nbsp;&nbsp;&nbsp;&nbsp;/* Get the device object */<br>- &nbsp;&nbsp;&nbsp;Status = IoGetRelatedTargetDevice(FileObject, &amp;DeviceObject);<br>- &nbsp;&nbsp;&nbsp;if (!NT_SUCCESS(Status)) return Status;<br>+ &nbsp;&nbsp;&nbsp;DeviceObject = IoGetRelatedDeviceObject(FileObject);<br><br> &nbsp;&nbsp;&nbsp;&nbsp;/* Clear File Object event */<br> &nbsp;&nbsp;&nbsp;&nbsp;KeClearEvent(&amp;FileObject->Event);<br><br></div></blockquote></div><br><div> <span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0; "><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div>Best regards,</div><div>Alex Ionescu</div></div></span> </div><br></body></html>