Received: with ECARTIS (v1.0.0; list xfs); Mon, 05 Nov 2007 11:41:25 -0800 (PST) X-Spam-Checker-Version: SpamAssassin 3.3.0-r574664 (2007-09-11) on oss.sgi.com X-Spam-Level: X-Spam-Status: No, score=0.9 required=5.0 tests=AWL,BAYES_00,HTML_MESSAGE, J_CHICKENPOX_42 autolearn=no version=3.3.0-r574664 Received: from nz-out-0506.google.com (nz-out-0506.google.com [64.233.162.232]) by oss.sgi.com (8.12.11.20060308/8.12.10/SuSE Linux 0.7) with ESMTP id lA5JfEdg019444 for ; Mon, 5 Nov 2007 11:41:16 -0800 Received: by nz-out-0506.google.com with SMTP id x3so1002294nzd for ; Mon, 05 Nov 2007 11:41:19 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:references; bh=ullirRnf7fsRwZBlH1YzvyFmG4YErAL/OUOqVi6uLS8=; b=IvQ36/C4C6tAVQ2rKuKSRGhgY93wMsz+WeKAR5lk4vtZc683+c/CVz4PTyYNHGteVzJTEMDSFmDELi+NSDmbliSJZUbgBriag9f40qUUB46i7EWhgLPtmlftSv+e2k+nWnUtfiL0iFWCmk0QCPZOcr36EfX7yHYT2BO1rqUw7ug= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:references; b=qogWKHDaP0qAOLEfPvv/Rb+hXm/gur0LikbahJvvscOwTK+pJQiKjuJpikQ9d+oLGMiBaY7wncddsBV3OOhmSVvNN3qpenqZ7Tk+k40+cv0TjIpZtfSx5RLJ6iVsOztlivtyH9VFpclbxqAq5pNjA6JUckc/1owbi+Q7eNEhZ7U= Received: by 10.142.229.4 with SMTP id b4mr1177219wfh.1194288172123; Mon, 05 Nov 2007 10:42:52 -0800 (PST) Received: by 10.142.162.19 with HTTP; Mon, 5 Nov 2007 10:42:52 -0800 (PST) Message-ID: Date: Tue, 6 Nov 2007 00:12:52 +0530 From: "Bhagi rathi" To: "David Chinner" Subject: Re: TAKE 972756 - Implement fallocate. Cc: sgi.bugs.xfs@engr.sgi.com, xfs@oss.sgi.com In-Reply-To: <20071102024314.9BF3458C38F7@chook.melbourne.sgi.com> MIME-Version: 1.0 References: <20071102024314.9BF3458C38F7@chook.melbourne.sgi.com> X-Virus-Scanned: ClamAV 0.91.2/4675/Mon Nov 5 08:20:43 2007 on oss.sgi.com X-Virus-Status: Clean Content-Type: text/plain Content-Disposition: inline Content-Transfer-Encoding: 7bit Content-length: 1134 X-archive-position: 13555 X-ecartis-version: Ecartis v1.0.0 Sender: xfs-bounce@oss.sgi.com Errors-to: xfs-bounce@oss.sgi.com X-original-sender: jahnu77@gmail.com Precedence: bulk X-list: xfs David, What happens if offset is not aligned to 4k? Let's say we have a file whose size is not aligned to 4k. It could have blocks beyond the eof which haven't been zero'ed out. fallocate may increase the size and we can read garbage from disk-block if it hasn't been zero'ed out. -Thanks, Bhagi. On 11/2/07, David Chinner wrote: > > Implement fallocate. > > Implement the new generic callout for file preallocation. > Atomically change the file size if requested. > > > Date: Fri Nov 2 13:42:52 AEDT 2007 > Workarea: chook.melbourne.sgi.com:/build/dgc/isms/2.6.x-xfs > Inspected by: hch@infradead.org > > The following file(s) were checked into: > longdrop.melbourne.sgi.com:/isms/linux/2.6.x-xfs-melb > > > Modid: xfs-linux-melb:xfs-kern:30009a > fs/xfs/linux-2.6/xfs_iops.c - 1.268 - changed http://oss.sgi.com/cgi-bin/cvsweb.cgi/xfs-linux/> linux-2.6/xfs_iops.c.diff?r1=text&tr1=1.268&r2=text&tr2=1.267&f=h > > http://oss.sgi.com/cgi-bin/cvsweb.cgi/xfs-linux/linux-2.6/xfs_iops.c.diff?r1=text&tr1=1.268&r2=text&tr2=1.267&f=h > - implement ->fallocate() > > > > [[HTML alternate version deleted]]