|
@@ -293,7 +293,7 @@ class OpenFileCtx {
|
|
|
WccData fileWcc = new WccData(latestAttr.getWccAttr(), latestAttr);
|
|
|
WRITE3Response response = new WRITE3Response(Nfs3Status.NFS3ERR_IO,
|
|
|
fileWcc, 0, request.getStableHow(), Nfs3Constant.WRITE_COMMIT_VERF);
|
|
|
- Nfs3Utils.writeChannel(channel, response.send(new XDR(), xid));
|
|
|
+ Nfs3Utils.writeChannel(channel, response.send(new XDR(), xid), xid);
|
|
|
} else {
|
|
|
// Handle repeated write requests(same xid or not).
|
|
|
// If already replied, send reply again. If not replied, drop the
|
|
@@ -315,7 +315,7 @@ class OpenFileCtx {
|
|
|
WRITE3Response response = new WRITE3Response(Nfs3Status.NFS3_OK,
|
|
|
fileWcc, request.getCount(), request.getStableHow(),
|
|
|
Nfs3Constant.WRITE_COMMIT_VERF);
|
|
|
- Nfs3Utils.writeChannel(channel, response.send(new XDR(), xid));
|
|
|
+ Nfs3Utils.writeChannel(channel, response.send(new XDR(), xid), xid);
|
|
|
}
|
|
|
updateLastAccessTime();
|
|
|
|
|
@@ -369,7 +369,7 @@ class OpenFileCtx {
|
|
|
WccData fileWcc = new WccData(preOpAttr, postOpAttr);
|
|
|
WRITE3Response response = new WRITE3Response(Nfs3Status.NFS3_OK,
|
|
|
fileWcc, count, stableHow, Nfs3Constant.WRITE_COMMIT_VERF);
|
|
|
- Nfs3Utils.writeChannel(channel, response.send(new XDR(), xid));
|
|
|
+ Nfs3Utils.writeChannel(channel, response.send(new XDR(), xid), xid);
|
|
|
writeCtx.setReplied(true);
|
|
|
}
|
|
|
|
|
@@ -394,7 +394,7 @@ class OpenFileCtx {
|
|
|
WccData fileWcc = new WccData(preOpAttr, postOpAttr);
|
|
|
WRITE3Response response = new WRITE3Response(Nfs3Status.NFS3_OK,
|
|
|
fileWcc, count, stableHow, Nfs3Constant.WRITE_COMMIT_VERF);
|
|
|
- Nfs3Utils.writeChannel(channel, response.send(new XDR(), xid));
|
|
|
+ Nfs3Utils.writeChannel(channel, response.send(new XDR(), xid), xid);
|
|
|
writeCtx.setReplied(true);
|
|
|
}
|
|
|
|
|
@@ -420,7 +420,7 @@ class OpenFileCtx {
|
|
|
}
|
|
|
|
|
|
updateLastAccessTime();
|
|
|
- Nfs3Utils.writeChannel(channel, response.send(new XDR(), xid));
|
|
|
+ Nfs3Utils.writeChannel(channel, response.send(new XDR(), xid), xid);
|
|
|
}
|
|
|
}
|
|
|
|
|
@@ -715,7 +715,7 @@ class OpenFileCtx {
|
|
|
WccData fileWcc = new WccData(preOpAttr, latestAttr);
|
|
|
WRITE3Response response = new WRITE3Response(Nfs3Status.NFS3_OK,
|
|
|
fileWcc, count, stableHow, Nfs3Constant.WRITE_COMMIT_VERF);
|
|
|
- Nfs3Utils.writeChannel(channel, response.send(new XDR(), xid));
|
|
|
+ Nfs3Utils.writeChannel(channel, response.send(new XDR(), xid), xid);
|
|
|
}
|
|
|
|
|
|
} catch (IOException e) {
|
|
@@ -723,7 +723,7 @@ class OpenFileCtx {
|
|
|
+ offset + " and length " + data.length, e);
|
|
|
if (!writeCtx.getReplied()) {
|
|
|
WRITE3Response response = new WRITE3Response(Nfs3Status.NFS3ERR_IO);
|
|
|
- Nfs3Utils.writeChannel(channel, response.send(new XDR(), xid));
|
|
|
+ Nfs3Utils.writeChannel(channel, response.send(new XDR(), xid), xid);
|
|
|
// Keep stream open. Either client retries or SteamMonitor closes it.
|
|
|
}
|
|
|
|
|
@@ -761,7 +761,7 @@ class OpenFileCtx {
|
|
|
WRITE3Response response = new WRITE3Response(Nfs3Status.NFS3ERR_IO,
|
|
|
fileWcc, 0, writeCtx.getStableHow(), Nfs3Constant.WRITE_COMMIT_VERF);
|
|
|
Nfs3Utils.writeChannel(writeCtx.getChannel(),
|
|
|
- response.send(new XDR(), writeCtx.getXid()));
|
|
|
+ response.send(new XDR(), writeCtx.getXid()), writeCtx.getXid());
|
|
|
}
|
|
|
}
|
|
|
|