[prev in list] [next in list] [prev in thread] [next in thread] 

List:       ms-cifs
Subject:    Unmount last mapped drive ...?
From:       Ajay Agrawal <aajay () IN ! IBM ! COM>
Date:       2000-07-12 12:00:49
[Download RAW message or body]


Hello,

I am working on a SMB server code. I am facing a strange problem:-

When ever I unmount the last mapped drive, my SMB server receives
SMB_COM_TREE_DISCONNECT followed by SMB_COM_LOGOFF_ANDX and current session
is closed. Soon I received SMB_COM_SESSION_SETUP_ANDX to create the new
session. This happens randomly. I mean sometimes after unmounting last
mapped drive session is not closed, because my SMB server does not receive
SMB_COM_TREE_DISCONNECT and SMB_COM_LOGOFF_ANDX.

When you logout from Windows then also SMB server receives
SMB_COM_TREE_DISCONNECT and SMB_COM_LOGOFF_ANDX. Hence
unmounting last drive and logging off windows causes same behaviour, ie
session is closed.

Can somebody explain me this random behaviour? And if it is as per the CIFS
standard, then can somebody tell me how I can differentiate between these
two cases?

Thanks and Regards
-Ajay

---------------------------------------------------------------
Ajay Agrawal
Sr. Software Engineer
IBM India Ltd.
"Parvazz" Building, Shanker Sheth Road
Pune-411001, INDIA
Tel: 91-020-649724 Extn - 1155
E-Mail:aajay@in.ibm.com, ajay_agr@yahoo.com

----------------------------------------------------------------
Users Guide http://msdn.microsoft.com/workshop/essentials/mail.asp
contains important info including how to unsubscribe.  Save time, search
the archives at http://discuss.microsoft.com/archives/index.html

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic