[Ocfs2-users] Zero allocated blocks for nonempty file
Sunil Mushran
sunil.mushran at oracle.com
Fri Sep 2 07:02:44 PDT 2011
Yes. Files and directories under 3800 bytes (or so) are inlined.
The max inline size depends on the features enabled.
On 09/02/2011 05:42 AM, Sérgio Surkamp wrote:
> Hi.
>
> I *suppose* its the inline-data feature, as it's permit the allocation
> of small files and directories inside the inode itself.
>
> > From mkfs.ocfs2 man page:
>
> inline-data
> Enable inline-data support. If this
> feature is turned on, OCFS2 will store small files
> and directo- ries inside the inode block. Data is
> transparently moved out to an extent when it no
> longer fits inside the inode block. In some cases,
> this can also make a positive impact on cold-cache
> directory and file operations.
>
> Regards,
> Sérgio
>
> Em Fri, 02 Sep 2011 12:36:08 +0200
> Michal Vyoral<michal.vyoral at chmi.cz> escreveu:
>
>> Hello,
>> A question: some non empty files on ocfs2 appears to have zero
>> allocated blocks, see
>>
>> $ stat SXCZ80
>> File: `SXCZ80'
>> Size: 3133 Blocks: 0 IO Block: 4096 regular
>> file Device: fe01h/65025d Inode: 9484572 Links: 1
>> Access: (0644/-rw-r--r--) Uid: ( 1001/ webms) Gid:
>> ( 33/www-data) Access: 2011-08-31 11:38:23.272211360 +0000
>> Modify: 2011-08-29 13:27:17.080403887 +0000
>> Change: 2011-08-29 13:27:17.080403887 +0000
>>
>> How is it possible?
>>
>> Environment:
>> OS: Debian 6.0.1
>> Kernel: 2.6.38.5-custom-1
>> Ocfs2-tools: 1.4.4-3
>>
>> Thanks.
>> Michal Vyoral
>>
>>
>>
>> _______________________________________________
>> Ocfs2-users mailing list
>> Ocfs2-users at oss.oracle.com
>> http://oss.oracle.com/mailman/listinfo/ocfs2-users
>
More information about the Ocfs2-users
mailing list