pnfs: fix for write length returned

fixes an issue introduced by commit 1f7e560a9a, "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 <cbodley@citi.umich.edu>
This commit is contained in:
Casey Bodley 2012-02-13 15:49:41 -05:00 committed by unknown
parent d42f769bff
commit fb7c379f06

View file

@ -296,9 +296,8 @@ static int handle_write(nfs41_upcall *upcall)
#endif #endif
status = write_to_mds(upcall, &stateid); status = write_to_mds(upcall, &stateid);
args->out_len += pnfs_bytes_written;
out: out:
args->out_len += pnfs_bytes_written;
return status; return status;
} }