From fb7c379f06326a271f238b665e14aac545997261 Mon Sep 17 00:00:00 2001 From: Casey Bodley Date: Mon, 13 Feb 2012 15:49:41 -0500 Subject: [PATCH] pnfs: fix for write length returned fixes an issue introduced by commit 1f7e560a9a93d2413518b6c93777ff7706e0031b, "pnfs: fix for short write on ds error" when a write is satisfied completely by pnfs, the upcall was returning out_len=0. the only time i noticed this was against python server, where cp in cygwin would succeed but print 'No space left on device' Signed-off-by: Casey Bodley --- daemon/readwrite.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/daemon/readwrite.c b/daemon/readwrite.c index b30ba90..5929a8c 100644 --- a/daemon/readwrite.c +++ b/daemon/readwrite.c @@ -296,9 +296,8 @@ static int handle_write(nfs41_upcall *upcall) #endif status = write_to_mds(upcall, &stateid); - - args->out_len += pnfs_bytes_written; out: + args->out_len += pnfs_bytes_written; return status; }