| To: | linux-fsdevel@xxxxxxxxxxxxxxx, linux-kernel@xxxxxxxxxxxxxxx, linux-ext4@xxxxxxxxxxxxxxx |
|---|---|
| Subject: | Re: [PATCH 4/7][TAKE5] support new modes in fallocate |
| From: | "Amit K. Arora" <aarora@xxxxxxxxxxxxxxxxxx> |
| Date: | Tue, 3 Jul 2007 15:38:48 +0530 |
| Cc: | adilger@xxxxxxxxxxxxx, David Chinner <dgc@xxxxxxx>, suparna@xxxxxxxxxx, cmm@xxxxxxxxxx, xfs@xxxxxxxxxxx, Christoph Hellwig <hch@xxxxxxxxxxxxx> |
| In-reply-to: | <20070630165246.GA5159@schatzie.adilger.int> |
| References: | <20070614091458.GH5181@schatzie.adilger.int> <20070614120413.GD86004887@sgi.com> <20070614193347.GN5181@schatzie.adilger.int> <20070625132810.GA1951@amitarora.in.ibm.com> <20070625134500.GE1951@amitarora.in.ibm.com> <20070625150320.GA8686@amitarora.in.ibm.com> <20070625214626.GJ5181@schatzie.adilger.int> <20070626103247.GA19870@amitarora.in.ibm.com> <20070630102111.GB23568@infradead.org> <20070630165246.GA5159@schatzie.adilger.int> |
| Sender: | xfs-bounce@xxxxxxxxxxx |
| User-agent: | Mutt/1.4.1i |
On Sat, Jun 30, 2007 at 12:52:46PM -0400, Andreas Dilger wrote:
> The @mode flags that are currently under consideration are (AFAIK):
>
> FA_FL_DEALLOC 0x01 /* deallocate unwritten extent (default allocate)
> */
> FA_FL_KEEP_SIZE 0x02 /* keep size for EOF {pre,de}alloc (default change
> size) */
> FA_FL_DEL_DATA 0x04 /* delete existing data in alloc range (default
> keep) */
We now have two sets of flags -
1) the above three with which I think no one has any issues with, and
2) the ones below, for which we need some discussions before finalizing
on them.
I will prefer fallocate going in mainline with the above three modes, and
rest of the modes can be debated upon and discussed parallely. And, each
new mode/flag can be pushed as a separate patch. This will not hold
fallocate feature indefinitely...
Please confirm if you find this approach ok. Otherwise, please object.
Thanks!
> FA_FL_ERR_FREE 0x08 /* free preallocation on error (default keep
> prealloc) */
> FA_FL_NO_MTIME 0x10 /* keep same mtime (default change on size, data
> change) */
> FA_FL_NO_CTIME 0x20 /* keep same ctime (default change on size, data
> change) */
--
Regards,
Amit Arora
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | Re: [PATCH] Teach do_mpage_readpage() about unwritten buffers, David Chinner |
|---|---|
| Next by Date: | Re: [PATCH 4/7][TAKE5] support new modes in fallocate, Christoph Hellwig |
| Previous by Thread: | Re: [PATCH 4/7][TAKE5] support new modes in fallocate, Andreas Dilger |
| Next by Thread: | Re: [PATCH 4/7][TAKE5] support new modes in fallocate, Christoph Hellwig |
| Indexes: | [Date] [Thread] [Top] [All Lists] |