|
@@ -7,8 +7,10 @@
|
|
*/
|
|
*/
|
|
|
|
|
|
#include <linux/namei.h>
|
|
#include <linux/namei.h>
|
|
|
|
+#include <linux/sunrpc/svc_xprt.h>
|
|
#include "xdr3.h"
|
|
#include "xdr3.h"
|
|
#include "auth.h"
|
|
#include "auth.h"
|
|
|
|
+#include "netns.h"
|
|
|
|
|
|
#define NFSDDBG_FACILITY NFSDDBG_XDR
|
|
#define NFSDDBG_FACILITY NFSDDBG_XDR
|
|
|
|
|
|
@@ -720,12 +722,14 @@ int
|
|
nfs3svc_encode_writeres(struct svc_rqst *rqstp, __be32 *p,
|
|
nfs3svc_encode_writeres(struct svc_rqst *rqstp, __be32 *p,
|
|
struct nfsd3_writeres *resp)
|
|
struct nfsd3_writeres *resp)
|
|
{
|
|
{
|
|
|
|
+ struct nfsd_net *nn = net_generic(SVC_NET(rqstp), nfsd_net_id);
|
|
|
|
+
|
|
p = encode_wcc_data(rqstp, p, &resp->fh);
|
|
p = encode_wcc_data(rqstp, p, &resp->fh);
|
|
if (resp->status == 0) {
|
|
if (resp->status == 0) {
|
|
*p++ = htonl(resp->count);
|
|
*p++ = htonl(resp->count);
|
|
*p++ = htonl(resp->committed);
|
|
*p++ = htonl(resp->committed);
|
|
- *p++ = htonl(nfssvc_boot.tv_sec);
|
|
|
|
- *p++ = htonl(nfssvc_boot.tv_usec);
|
|
|
|
|
|
+ *p++ = htonl(nn->nfssvc_boot.tv_sec);
|
|
|
|
+ *p++ = htonl(nn->nfssvc_boot.tv_usec);
|
|
}
|
|
}
|
|
return xdr_ressize_check(rqstp, p);
|
|
return xdr_ressize_check(rqstp, p);
|
|
}
|
|
}
|
|
@@ -1082,11 +1086,13 @@ int
|
|
nfs3svc_encode_commitres(struct svc_rqst *rqstp, __be32 *p,
|
|
nfs3svc_encode_commitres(struct svc_rqst *rqstp, __be32 *p,
|
|
struct nfsd3_commitres *resp)
|
|
struct nfsd3_commitres *resp)
|
|
{
|
|
{
|
|
|
|
+ struct nfsd_net *nn = net_generic(SVC_NET(rqstp), nfsd_net_id);
|
|
|
|
+
|
|
p = encode_wcc_data(rqstp, p, &resp->fh);
|
|
p = encode_wcc_data(rqstp, p, &resp->fh);
|
|
/* Write verifier */
|
|
/* Write verifier */
|
|
if (resp->status == 0) {
|
|
if (resp->status == 0) {
|
|
- *p++ = htonl(nfssvc_boot.tv_sec);
|
|
|
|
- *p++ = htonl(nfssvc_boot.tv_usec);
|
|
|
|
|
|
+ *p++ = htonl(nn->nfssvc_boot.tv_sec);
|
|
|
|
+ *p++ = htonl(nn->nfssvc_boot.tv_usec);
|
|
}
|
|
}
|
|
return xdr_ressize_check(rqstp, p);
|
|
return xdr_ressize_check(rqstp, p);
|
|
}
|
|
}
|