Boost C++ Libraries: Ticket #2139: Possible robustness improvement to Windows equivalent() implementation https://svn.boost.org/trac10/ticket/2139 <p> equivalent() is fragile in that corner cases, particularly for removable media, may incorrectly return true. </p> <p> Is is possible to use <a class="missing wiki">GetVolumeInformation</a>() or Win32_PhysicalMedia information to improve robustness? </p> <p> See <a class="ext-link" href="http://msdn.microsoft.com/en-us/library/aa364993(VS.85).aspx"><span class="icon">​</span>http://msdn.microsoft.com/en-us/library/aa364993(VS.85).aspx</a> </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/2139 Trac 1.4.3 Beman Dawes Mon, 13 Oct 2008 01:54:47 GMT status changed; resolution set https://svn.boost.org/trac10/ticket/2139#comment:1 https://svn.boost.org/trac10/ticket/2139#comment:1 <ul> <li><strong>status</strong> <span class="trac-field-old">new</span> → <span class="trac-field-new">closed</span> </li> <li><strong>resolution</strong> → <span class="trac-field-new">wontfix</span> </li> </ul> <p> <a class="missing wiki">GetVolumeInformation</a> suffers from the problem as the current implementation; some media vendors assign duplicate volume serial numbers. </p> <p> Win32_PhysicalMedia information doesn't add anything either. </p> <p> <a class="missing wiki">GetFinalPathNameByHandle</a> looks hopeful, but it is Vista only so I'm not sure its of much help. </p> <p> Also, for most practical purposes the current implementation works quite well. The corner cases are pretty much limited to deliberate cloning of media, so in one sense these are equivalent, even if the media is physically different. </p> <p> I'm going to close this ticket, but feel free to reopen it if you come up with a better solution. </p> <p> Thanks, </p> <p> --Beman </p> Ticket