[Ocfs2-devel] [PATCH] ocfs2: send SIGXFSZ if new filesize exceeds limit
Joel Becker
Joel.Becker at oracle.com
Thu Feb 25 12:01:53 PST 2010
On Fri, Feb 26, 2010 at 12:29:19AM +0800, Wengang Wang wrote:
> Yes that I considered using inode_newsize_ok().
> I'am not sure if checking i_size is safe(lack of knowledge).
It should be, given that i_mutex is held. Filesystems that
don't handle their own setattr get to inode_newsize_ok() via
vmtruncate.
Joel
--
"Time is an illusion, lunchtime doubly so."
-Douglas Adams
Joel Becker
Principal Software Developer
Oracle
E-mail: joel.becker at oracle.com
Phone: (650) 506-8127
More information about the Ocfs2-devel
mailing list