Skip to content

Commit 6b2284b

Browse files
authored
Merge pull request #67 from Toilal/fix-commit-response
nfs4: set response committed value properly in op COMMIT based on VFS WriteResult return value
2 parents c4e1219 + 7f9589c commit 6b2284b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

core/src/main/java/org/dcache/nfs/v4/OperationWRITE.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ public void process(CompoundContext context, nfs_resop4 result) throws ChimeraNF
8989
res.status = nfsstat.NFS_OK;
9090
res.resok4 = new WRITE4resok();
9191
res.resok4.count = new count4(writeResult.getBytesWritten());
92-
res.resok4.committed = stable_how4.FILE_SYNC4;
92+
res.resok4.committed = writeResult.getStabilityLevel().toStableHow();
9393
res.resok4.writeverf = context.getRebootVerifier();
9494

9595
}

0 commit comments

Comments
 (0)