lkml.org 
[lkml]   [2011]   [Feb]   [28]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: ext2/3/4: punch support?
On 2/28/11 8:29 AM, Dave Young wrote:
> On Mon, Feb 28, 2011 at 9:11 PM, Josef Bacik <josef@redhat.com> wrote:
>> On Mon, Feb 28, 2011 at 03:03:40PM +0800, Dave Young wrote:
>>> Hi, josef and ext guys
>>>
>>> Do you have any plan with ext4 hole punching support? And the
>>> fallocate for ext2/3?
>>>
>>> What's the obstacle to work on this? could someone tell the status of
>>> this issue?
>>
>> There is no obstacle, just nobody has bothered to do it. If you want to do it
>> go for it. Thanks,
>
> Yes, I want to do some kvm image space discard stuff,
> I use ext4 as my filesystem, but currently only xfs support something
> like trim/discard.

As Lukas said, ext4 & ext3 support various forms of trim/discard already.

But that's different from punch...

And as for fallocate on ext3, you need somewhere to put the metadata to indicate a block is allocated but not written. This was a lot more straightforward for ext4, since it describes a large range of blocks with a single extent structure.

-Eric

> I know general knowledge about ext filesystem, but nearly new to ext4 code,
> could you give some hint where to start?
>
> --
> Thanks
> dave
> --
> To unsubscribe from this list: send the line "unsubscribe linux-ext4" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at http://vger.kernel.org/majordomo-info.html



\
 
 \ /
  Last update: 2011-02-28 16:21    [W:0.048 / U:2.592 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site