freebsd-dev/sys/cddl/contrib/opensolaris/uts/common/fs/zfs
Edward Tomasz Napierala 9280affe16 Fix enforcement of file size limit with O_APPEND on ZFS.
vn_rlimit_fsize takes uio->uio_offset and uio->uio_resid into account
when determining whether given write would exceed RLIMIT_FSIZE.

When APPEND flag is specified, ZFS updates uio->uio_offset to point to the
end of file.

But this happens after a call to vn_rlimit_fsize, so vn_rlimit_fsize check
can be rendered ineffective by thread that opens some file with O_APPEND
and lseeks below RLIMIT_FSIZE before calling write.

Submitted by:	Mateusz Guzik <mjguzik at gmail dot com>
MFC after:	2 weeks
2012-05-22 10:54:42 +00:00
..
sys Import illumos changeset 13686:4bc0783f6064 2012-05-10 10:39:45 +00:00
arc.c - Allow to change vfs.zfs.arc_meta_limit at runtime. 2012-01-05 22:16:41 +00:00
bplist.c
bpobj.c Merge new ZFS features from illumos: 2011-11-28 21:40:00 +00:00
dbuf.c Move ru_inblock increment into arc_read_nolock() so we don't account for 2011-12-10 13:02:52 +00:00
ddt_zap.c
ddt.c
dmu_diff.c
dmu_object.c
dmu_objset.c
dmu_send.c Import illumos changeset 13686:4bc0783f6064 2012-05-10 10:39:45 +00:00
dmu_traverse.c
dmu_tx.c Import fix for Illumos bug #1475 to reduce diff against upstream. 2011-10-18 13:58:22 +00:00
dmu_zfetch.c
dmu.c Update per-thread I/O statistics collection in ZFS. 2011-10-21 21:49:34 +00:00
dnode_sync.c
dnode.c Revert r230913 and r230914. 2012-02-03 13:40:51 +00:00
dsl_dataset.c Import illumos changeset 13686:4bc0783f6064 2012-05-10 10:39:45 +00:00
dsl_deadlist.c Merge new ZFS features from illumos: 2011-11-28 21:40:00 +00:00
dsl_deleg.c Merge new ZFS features from illumos: 2011-11-28 21:40:00 +00:00
dsl_dir.c - Use better naming now that we allow to rename any mounted file system (not 2011-10-24 21:31:53 +00:00
dsl_pool.c Merge new ZFS features from illumos: 2011-11-28 21:40:00 +00:00
dsl_prop.c
dsl_scan.c
dsl_synctask.c
gzip.c
lzjb.c
metaslab.c Merge illumos revisions 13572, 13573, 13574: 2012-01-24 23:09:54 +00:00
refcount.c
rrwlock.c
sa.c Update copyright information in several ZFS files, as the clause 3.3 2011-10-25 08:35:30 +00:00
sha256.c
spa_config.c Merge new ZFS features from illumos: 2011-11-28 21:40:00 +00:00
spa_errlog.c
spa_history.c Merge new ZFS features from illumos: 2011-11-28 21:40:00 +00:00
spa_misc.c Merge new ZFS features from illumos: 2011-11-28 21:40:00 +00:00
spa.c Merge illumos revisions 13572, 13573, 13574: 2012-01-24 23:09:54 +00:00
space_map.c From time to time people report space map corruption resulting in panic 2011-12-18 12:27:45 +00:00
txg.c The vfs.zfs.txg.timeout sysctl can be safely modified at run time. 2011-12-09 18:22:57 +00:00
uberblock.c
unique.c
vdev_cache.c Disable vdev cache (readahead) by default. 2011-06-28 06:32:35 +00:00
vdev_disk.c
vdev_file.c zfs vdev_file_io_start: validate vdev before using vdev_tsd 2011-10-21 14:00:48 +00:00
vdev_geom.c Eliminate the zfsdev_state_lock entirely and replace it with the 2011-08-12 07:04:16 +00:00
vdev_label.c
vdev_mirror.c
vdev_missing.c
vdev_queue.c
vdev_raidz.c
vdev_root.c
vdev.c Merge illumos revisions 13572, 13573, 13574: 2012-01-24 23:09:54 +00:00
zap_leaf.c
zap_micro.c Merge new ZFS features from illumos: 2011-11-28 21:40:00 +00:00
zap.c
zfs_acl.c Resurrect the ZFS "aclmode" property 2011-07-18 07:16:44 +00:00
zfs_byteswap.c
zfs_ctldir.c Existing VOP_VPTOCNP() interface has a fatal flow that is critical for 2011-11-19 07:50:49 +00:00
zfs_debug.c
zfs_dir.c Don't pass pointer to name buffer which is on the stack to another thread, 2011-05-24 20:10:12 +00:00
zfs_fm.c Merge illumos revisions 13572, 13573, 13574: 2012-01-24 23:09:54 +00:00
zfs_fuid.c
zfs_ioctl.c Import illumos changeset 13686:4bc0783f6064 2012-05-10 10:39:45 +00:00
zfs_log.c
zfs_onexit.c
zfs_replay.c Implement replying of ACLs updates. ACL changes should go to ZIL only 2011-12-18 12:19:03 +00:00
zfs_rlock.c
zfs_sa.c
zfs_vfsops.c Analogous to r232059, add a parameter for the ZFS file system: 2012-02-26 16:30:39 +00:00
zfs_vnops.c Fix enforcement of file size limit with O_APPEND on ZFS. 2012-05-22 10:54:42 +00:00
zfs_znode.c Remove unused thread argument to vrecycle(). 2012-04-23 14:10:34 +00:00
zfs.conf
zil.c Fix serious bug in ZIL that can lead to pool corruption 2011-07-30 19:00:31 +00:00
zio_checksum.c
zio_compress.c
zio_inject.c
zio.c always exclude data bufs regardless of debug settings 2012-01-29 00:19:19 +00:00
zle.c
zrlock.c
zvol.c Correct typo in comment. 2011-11-05 16:44:25 +00:00