patch-2.2.19 linux/fs/lockd/mon.c
Next file: linux/fs/lockd/svc.c
Previous file: linux/fs/lockd/host.c
Back to the patch index
Back to the overall index
- Lines: 21
- Date:
Sun Mar 25 11:37:38 2001
- Orig file:
v2.2.18/fs/lockd/mon.c
- Orig date:
Sun Mar 25 11:28:33 2001
diff -u --new-file --recursive --exclude-from /usr/src/exclude v2.2.18/fs/lockd/mon.c linux/fs/lockd/mon.c
@@ -47,7 +47,7 @@
args.addr = host->h_addr.sin_addr.s_addr;
args.prog = NLM_PROGRAM;
- args.vers = 1;
+ args.vers = host->h_version;
args.proc = NLMPROC_NSM_NOTIFY;
memset(res, 0, sizeof(*res));
@@ -76,8 +76,10 @@
if (status < 0 || res.status != 0)
printk(KERN_NOTICE "lockd: cannot monitor %s\n", host->h_name);
- else
+ else {
host->h_monitored = 1;
+ host->h_nsmstate = res.state;
+ }
return status;
}
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)