]> granicus.if.org Git - spl/commit
vn_rdwr() didn't properly advance the file position
authorGunnar Beutner <gunnar@beutner.name>
Wed, 12 Oct 2011 10:49:18 +0000 (12:49 +0200)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Tue, 18 Oct 2011 23:51:35 +0000 (16:51 -0700)
commitf3989ed3223363330af014062caeeb1afbd0503f
tree86f93e0e7a1d297fd0b24e637ff5d9bde7c1f967
parenta49bc996897fb0f4c38ea6d3bbeafbe27dc82e72
vn_rdwr() didn't properly advance the file position

This would cause problems when using 'zfs send' with a file as the
target (rather than a pipe or a socket as is usually the case) as
for each write the destination offset in the file would be 0.

Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
Closes ZFS issue #391
module/spl/spl-vnode.c