mount: nfs_mount -d removes persistent connections

bug: connections created through 'net use' or 'map network drive' are not fully removed by 'nfs_mount -d'.  the UNMOUNT upcall completes successfully, but the mount remains visible in net use and windows explorer; the next attempted use of the drive will send a new MOUNT and continue normally

solution: added flag CONNECT_UPDATE_PROFILE to WNetCancelConnection2(): "The system updates the user profile with the information that the connection is no longer a persistent one."

Signed-off-by: Casey Bodley <cbodley@umich.edu>
This commit is contained in:
Casey Bodley 2010-10-12 09:50:04 -04:00
parent 4731a97973
commit 62fa60a83a

View file

@ -315,7 +315,7 @@ static DWORD DoUnmount(
DWORD result;
/* disconnect the specified local drive */
result = WNetCancelConnection2(pLocalName, 0, bForce);
result = WNetCancelConnection2(pLocalName, CONNECT_UPDATE_PROFILE, bForce);
/* TODO: verify that this connection uses the nfs41 provider -cbodley */
switch (result)
{