Go to file
Prasad Joshi 218b8eafbd Use truncate_setsize in zfs_setattr
According to Linux kernel commit 2c27c65e, using truncate_setsize in
setattr simplifies the code. Therefore, the patch replaces the call
to vmtruncate() with truncate_setsize().

zfs_setattr uses zfs_freesp to free the disk space belonging to the
file.  As truncate_setsize may release the page cache and flushing
the dirty data to disk, it must be called before the zfs_freesp.

Suggested-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: Prasad Joshi <pjoshi@stec-inc.com>
Closes #255
2011-06-27 09:59:52 -07:00
cmd Tear down and flush the mmap region 2011-06-27 09:59:19 -07:00
config Tear down and flush the mmap region 2011-06-27 09:59:19 -07:00
dracut Tear down and flush the mmap region 2011-06-27 09:59:19 -07:00
etc Tear down and flush the mmap region 2011-06-27 09:59:19 -07:00
include Tear down and flush the mmap region 2011-06-27 09:59:19 -07:00
lib Tear down and flush the mmap region 2011-06-27 09:59:19 -07:00
man Tear down and flush the mmap region 2011-06-27 09:59:19 -07:00
module Use truncate_setsize in zfs_setattr 2011-06-27 09:59:52 -07:00
patches Add build system 2010-08-31 13:41:27 -07:00
scripts Tear down and flush the mmap region 2011-06-27 09:59:19 -07:00
.gitignore Ignore unsigned module build products 2010-03-09 14:14:09 -08:00
AUTHORS Add "ashift" property to zpool create 2011-06-17 16:35:49 -07:00
autogen.sh Minor packaging fixes 2010-09-01 15:42:32 -07:00
ChangeLog Add build system 2010-08-31 13:41:27 -07:00
configure Tear down and flush the mmap region 2011-06-27 09:59:19 -07:00
configure.ac Multipath device manageability improvements 2011-06-23 10:46:06 -07:00
COPYING Relocate COPYING+COPYRIGHT, remove README cruft 2008-12-01 15:34:53 -08:00
COPYRIGHT Update COPYRIGHT to reference zpios CDDL exceptions. 2010-05-18 14:25:28 -07:00
DISCLAIMER Update COPYRIGHT and DISCLAIMER. 2010-05-18 10:32:23 -07:00
Makefile.am Add dracut support 2011-03-17 16:52:04 -07:00
Makefile.in Tear down and flush the mmap region 2011-06-27 09:59:19 -07:00
META Prep zfs-0.6.0-rc4 tag 2011-05-03 10:29:05 -07:00
OPENSOLARIS.LICENSE Add CDDL license file 2008-12-01 14:49:34 -08:00
README.markdown Fix markdown rendering 2010-09-15 09:09:37 -07:00
zfs_config.h.in Tear down and flush the mmap region 2011-06-27 09:59:19 -07:00
zfs-modules.spec.in Fix rebuildable RPMs for el6/ch5 2011-04-08 10:22:42 -07:00
zfs-script-config.sh.in Unconditionally load core kernel modules 2010-11-11 11:38:25 -08:00
ZFS.RELEASE Update to onnv_147 2010-08-26 14:24:34 -07:00
zfs.spec.in Update rpm/deb packages to be FHS compliant 2011-06-17 13:36:16 -07:00

Native ZFS for Linux! ZFS is an advanced file system and volume manager which was originally developed for Solaris. It has been successfully ported to FreeBSD and now there is a functional Linux ZFS kernel port too. The port currently includes a fully functional and stable SPA, DMU, and ZVOL with a ZFS Posix Layer (ZPL) on the way!

$ ./configure
$ make pkg

Full documentation for building, configuring, and using ZFS can be found at: http://zfsonlinux.org