adding version to the upcall
to determine that the daemon has restarted -- rather that daemon is receiving upcalls from the kernel that were processed by the old instance of the daemon -- add a version to the upcall mechanism. when daemon starts up it generates a version number (just a timestamp). it passes this value to the driver on start up via "start_ioctl" downcall. the driver saves that value in its device extensions. it uses that value in the mount and shtudown upcalls. when daemon replies to the mount command it again sends its version as a part of the reply. this reply is stored in driver;s netroot extensions. the driver uses netroot's value in each upcall to the daemon. if the daemon receives an upcall for an operation where the included version does not equal to the its current version, it fails the upcall (error_code=116). a restart of the daemon would change driver's device extension value which the driver will then use in the new mount upcalls that would establish new sessions. then the correct daemon version would be returned as a part of the mount downcalled and saved in the netroot.
This commit is contained in:
parent
765fb43156
commit
a25a5221d9
7 changed files with 101 additions and 35 deletions
|
|
@ -26,7 +26,7 @@
|
|||
|
||||
#include "nfs41_types.h"
|
||||
|
||||
|
||||
extern DWORD NFS41D_VERSION;
|
||||
struct __nfs41_session;
|
||||
struct __nfs41_write_verf;
|
||||
enum stable_how4;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue