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
2011-06-27 09:59:19 -07:00
2011-06-27 09:59:19 -07:00
2011-06-27 09:59:19 -07:00
2011-06-27 09:59:19 -07:00
2010-08-31 13:41:27 -07:00
2011-06-17 16:35:49 -07:00
2010-09-01 15:42:32 -07:00
2010-08-31 13:41:27 -07:00
2011-06-27 09:59:19 -07:00
2010-05-18 10:32:23 -07:00
2011-03-17 16:52:04 -07:00
2011-05-03 10:29:05 -07:00
2008-12-01 14:49:34 -08:00
2010-09-15 09:09:37 -07:00
2010-08-26 14:24:34 -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

S
Description
No description provided
Readme 122 MiB
Languages
C 70.2%
Shell 19.9%
Assembly 5.1%
M4 1.9%
Python 1.6%
Other 1.3%