[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20100501101846.GA3769@infradead.org>
Date: Sat, 1 May 2010 06:18:46 -0400
From: Christoph Hellwig <hch@...radead.org>
To: "Amit K. Arora" <aarora@...ux.vnet.ibm.com>
Cc: Andrew Morton <akpm@...ux-foundation.org>,
Nikanth Karthikesan <knikanth@...e.de>, coly.li@...e.de,
Nick Piggin <npiggin@...e.de>,
Alexander Viro <viro@...iv.linux.org.uk>,
linux-fsdevel@...r.kernel.org, Theodore Ts'o <tytso@....edu>,
Andreas Dilger <adilger@....com>, linux-ext4@...r.kernel.org,
Eelis <opensuse.org@...tacts.eelis.net>,
Amit Arora <aarora@...ibm.com>
Subject: Re: [PATCH] Prevent creation of files larger than RLIMIT_FSIZE
using fallocate
On Sat, May 01, 2010 at 12:34:26PM +0530, Amit K. Arora wrote:
> Agreed. How about doing this check in the filesystem specific fallocate
> inode routines instead ? For example, in ext4 we could do :
That looks okay - in fact XFS should already have this check because
it re-uses the setattr implementation to set the size.
Can you submit an xfstests testcase to verify this behaviour on all
filesystems?
--
To unsubscribe from this list: send the line "unsubscribe linux-ext4" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists