diff options
-rw-r--r-- | module/zfs/zpl_file.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/module/zfs/zpl_file.c b/module/zfs/zpl_file.c index 5f5bbba3d..571e04315 100644 --- a/module/zfs/zpl_file.c +++ b/module/zfs/zpl_file.c @@ -272,6 +272,9 @@ zpl_write_common_iovec(struct inode *ip, const struct iovec *iovp, size_t count, uio_t uio; int error; + if (flags & O_APPEND) + *ppos = i_size_read(ip); + uio.uio_iov = (struct iovec *)iovp; uio.uio_resid = count; uio.uio_iovcnt = nr_segs; |