Skip to content

Commit 7f9589c

Browse files
committed
nfs4: set response committed value properly in op COMMIT based on VFS WriteResult return value
Signed-off-by: Rémi Alvergnat <[email protected]>
1 parent c4e1219 commit 7f9589c

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)