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
Sérgio Surkamp
2011-Sep-02 12:42 UTC
[Ocfs2-users] Zero allocated blocks for nonempty file
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 > oss.oracle.com/mailman/listinfo/ocfs2-users-- .:''''':. .:' ` S?rgio Surkamp | Gerente de Rede :: ........ sergio at gruposinternet.com.br `:. .:' `:, ,.:' *Grupos Internet S.A.* `: :' R. Lauro Linhares, 2123 Torre B - Sala 201 : : Trindade - Florian?polis - SC :.' :: +55 48 3234-4109 : ' gruposinternet.com.br