When a disk is soft disconnected, other applications are notified through PnP events and can temporarily delay the disk removal.
We're logging a message if a disconnect operation is rejected by other applications, specifying the veto name.
This change brings the following improvements:
the log level is increased from "debug" to "warning", otherwise it's very easy to miss
while performing retries, we'll log the time left, not just the time elapsed
we'll add a message pointing to the windows event log, which contains additional information about the process that's holding the disk (e.g. application name, arguments, pid, etc)
When a disk is soft disconnected, other applications are notified through PnP events and can temporarily delay the disk removal.
We're logging a message if a disconnect operation is rejected by other applications, specifying the veto name.
This change brings the following improvements:
Signed-off-by: Lucian Petrut lpetrut@cloudbasesolutions.com