| To: | Andreas Dilger <adilger@xxxxxxxxxxxxx> |
|---|---|
| Subject: | Re: [PATCH 4/5] ext4: fallocate support in ext4 |
| From: | Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx> |
| Date: | Mon, 7 May 2007 15:38:56 -0700 |
| Cc: | "Amit K. Arora" <aarora@xxxxxxxxxxxxxxxxxx>, linux-fsdevel@xxxxxxxxxxxxxxx, linux-kernel@xxxxxxxxxxxxxxx, linux-ext4@xxxxxxxxxxxxxxx, xfs@xxxxxxxxxxx, suparna@xxxxxxxxxx, cmm@xxxxxxxxxx |
| In-reply-to: | <20070507222103.GJ8181@schatzie.adilger.int> |
| References: | <20070417125514.GA7574@amitarora.in.ibm.com> <20070418130600.GW5967@schatzie.adilger.int> <20070420135146.GA21352@amitarora.in.ibm.com> <20070420145918.GY355@devserv.devel.redhat.com> <20070424121632.GA10136@amitarora.in.ibm.com> <20070426175056.GA25321@amitarora.in.ibm.com> <20070426181332.GD7209@amitarora.in.ibm.com> <20070503213133.d1559f52.akpm@linux-foundation.org> <20070507113753.GA5439@schatzie.adilger.int> <20070507135825.f8545a65.akpm@linux-foundation.org> <20070507222103.GJ8181@schatzie.adilger.int> |
| Sender: | xfs-bounce@xxxxxxxxxxx |
On Mon, 7 May 2007 15:21:04 -0700 Andreas Dilger <adilger@xxxxxxxxxxxxx> wrote: > On May 07, 2007 13:58 -0700, Andrew Morton wrote: > > Final point: it's fairly disappointing that the present implementation is > > ext4-only, and extent-only. I do think we should be aiming at an ext4 > > bitmap-based implementation and an ext3 implementation. > > Actually, this is a non-issue. The reason that it is handled for extent-only > is that this is the only way to allocate space in the filesystem without > doing the explicit zeroing. For other filesystems (including ext3 and > ext4 with block-mapped files) the filesystem should return an error (e.g. > -EOPNOTSUPP) and glibc will do manual zero-filling of the file in userspace. hrm, spose so. It can be a bit suboptimal from the layout POV. The reservations code will largely save us here, but kernel support might make it a bit better. Totally blowing pagecache could be a problem. Fixable in userspace by using sync_file_range()+fadvise() or O_DIRECT, but I bet it doesn't. |
| Previous by Date: | Re: [PATCH 4/5] ext4: fallocate support in ext4, Andreas Dilger |
|---|---|
| Next by Date: | Re: [PATCH 4/5] ext4: fallocate support in ext4, Andrew Morton |
| Previous by Thread: | Re: [PATCH 4/5] ext4: fallocate support in ext4, Andreas Dilger |
| Next by Thread: | Re: [PATCH 4/5] ext4: fallocate support in ext4, Theodore Tso |
| Indexes: | [Date] [Thread] [Top] [All Lists] |