]> git.proxmox.com Git - mirror_zfs.git/commit
Fix write(2) returns zero bug from 933ec99
authorChunwei Chen <tuxoko@gmail.com>
Thu, 2 Feb 2017 17:43:42 +0000 (09:43 -0800)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Thu, 2 Feb 2017 17:43:42 +0000 (09:43 -0800)
commitc7af63d62aba273554d6c8457e26c870ed207b40
tree568ce21d01bf2a6b9542b466edc876b0e37818b5
parentfc386db1916dd946512d9b965d4d354582be1f9e
Fix write(2) returns zero bug from 933ec99

For generic_write_checks with 2 args, we can exit when it returns zero because
it means count is zero. However this is not the case for generic_write_checks
with 4 args, where zero means no error.

Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Reviewed-by: Haakan T Johansson <f96hajo@chalmers.se>
Signed-off-by: Chunwei Chen <david.chen@osnexus.com>
Closes #5720
Closes #5726
module/zfs/zpl_file.c