Re: The value displayed by 'ls -s' command is strange.

2010-12-09 Thread Miao Xie
On wed, 08 Dec 2010 08:53:55 +0900, Tsutomu Itoh wrote: >>> I think that the disk allocation size of each file becomes a monotone >>> increase >>> when the file is made. >>> But, it sometimes return to 0. Is it correct? >>> >> >> The # of blocks is: >> >> stat->blocks = (inode_get_bytes(

Re: The value displayed by 'ls -s' command is strange.

2010-12-07 Thread Tsutomu Itoh
(2010/12/08 5:15), Chris Mason wrote: > Excerpts from Mike Fedyk's message of 2010-12-07 15:07:08 -0500: >> On Tue, Dec 7, 2010 at 11:29 AM, Chris Mason wrote: >>> Excerpts from Mike Fedyk's message of 2010-12-07 14:16:55 -0500: On Tue, Dec 7, 2010 at 10:44 AM, Chris Mason wrote:

Re: The value displayed by 'ls -s' command is strange.

2010-12-07 Thread Tsutomu Itoh
(2010/12/07 18:25), Li Zefan wrote: > Tsutomu Itoh wrote: >> Hi, >> >> I think that the disk allocation size of each file becomes a monotone >> increase >> when the file is made. >> But, it sometimes return to 0. Is it correct? >> > > The # of blocks is: > > stat->blocks = (inode_get_b

Re: The value displayed by 'ls -s' command is strange.

2010-12-07 Thread Mike Fedyk
On Tue, Dec 7, 2010 at 12:15 PM, Chris Mason wrote: > Excerpts from Mike Fedyk's message of 2010-12-07 15:07:08 -0500: >> On Tue, Dec 7, 2010 at 11:29 AM, Chris Mason wrote: >> > Excerpts from Mike Fedyk's message of 2010-12-07 14:16:55 -0500: >> >> On Tue, Dec 7, 2010 at 10:44 AM, Chris Mason

Re: The value displayed by 'ls -s' command is strange.

2010-12-07 Thread Chris Mason
Excerpts from Mike Fedyk's message of 2010-12-07 15:07:08 -0500: > On Tue, Dec 7, 2010 at 11:29 AM, Chris Mason wrote: > > Excerpts from Mike Fedyk's message of 2010-12-07 14:16:55 -0500: > >> On Tue, Dec 7, 2010 at 10:44 AM, Chris Mason > >> wrote: > >> > Excerpts from Tsutomu Itoh's message of

Re: The value displayed by 'ls -s' command is strange.

2010-12-07 Thread Mike Fedyk
On Tue, Dec 7, 2010 at 11:29 AM, Chris Mason wrote: > Excerpts from Mike Fedyk's message of 2010-12-07 14:16:55 -0500: >> On Tue, Dec 7, 2010 at 10:44 AM, Chris Mason wrote: >> > Excerpts from Tsutomu Itoh's message of 2010-12-07 02:59:52 -0500: >> >> Hi, >> >> >> >> I think that the disk allocat

Re: The value displayed by 'ls -s' command is strange.

2010-12-07 Thread Chris Mason
Excerpts from Mike Fedyk's message of 2010-12-07 14:16:55 -0500: > On Tue, Dec 7, 2010 at 10:44 AM, Chris Mason wrote: > > Excerpts from Tsutomu Itoh's message of 2010-12-07 02:59:52 -0500: > >> Hi, > >> > >> I think that the disk allocation size of each file becomes a monotone > >> increase > >>

Re: The value displayed by 'ls -s' command is strange.

2010-12-07 Thread Mike Fedyk
On Tue, Dec 7, 2010 at 10:44 AM, Chris Mason wrote: > Excerpts from Tsutomu Itoh's message of 2010-12-07 02:59:52 -0500: >> Hi, >> >> I think that the disk allocation size of each file becomes a monotone >> increase >> when the file is made. >> But, it sometimes return to 0.  Is it correct? > > W

Re: The value displayed by 'ls -s' command is strange.

2010-12-07 Thread Chris Mason
Excerpts from Tsutomu Itoh's message of 2010-12-07 02:59:52 -0500: > Hi, > > I think that the disk allocation size of each file becomes a monotone increase > when the file is made. > But, it sometimes return to 0. Is it correct? Well, there's a window during the processing of delayed allocation

Re: The value displayed by 'ls -s' command is strange.

2010-12-07 Thread Li Zefan
Tsutomu Itoh wrote: > Hi, > > I think that the disk allocation size of each file becomes a monotone increase > when the file is made. > But, it sometimes return to 0. Is it correct? > The # of blocks is: stat->blocks = (inode_get_bytes(inode) + BTRFS_I(inode)->d

The value displayed by 'ls -s' command is strange.

2010-12-07 Thread Tsutomu Itoh
Hi, I think that the disk allocation size of each file becomes a monotone increase when the file is made. But, it sometimes return to 0. Is it correct? The result of the test at 2.6.37-rc4 is shown below. (see inode no. 291) # df -T /test14 FilesystemType 1K-blocks Used Ava