From: F. <748...@qq...> - 2015-07-30 10:52:14
|
Hello, we use the MFS to store small files that are static, but found a problem, we are a directory of the file size may not be enough 100 k, but in the upper du - sh found the directory size is 1.1 m, could you tell me the size of the directory in the MFS is determined by what or cause, will store the information, how directory the assembly. We applied many of these directories, excuse me, how can we solve or what solution is better. There is a problem, can you tell me our chunkserver is based on the Lvm, want to ask next chunker how to obtain the size of the size The results of our experiment is as follows: [root@ftp-1-1 testdir]# stat ../testdir File: "../testdir" Size: 0 Blocks: 0 IO Block: 65536 目录 Device: 13h/19d Inode: 471775 Links: 2 Access: (0755/drwxr-xr-x) Uid: ( 1001/ mypep) Gid: ( 1001/ mypep) Access: 2015-07-30 14:09:57.000000000 +0800 Modify: 2015-07-30 14:09:57.000000000 +0800 Change: 2015-07-30 14:09:57.000000000 +0800 [root@ftp-1-1 testdir]# echo "a" >test #我只echo一个字节 [root@ftp-1-1 testdir]# stat ../testdir File: "../testdir" #目录的大小,却增加了200 Size: 200 Blocks: 1 IO Block: 65536 目录 Device: 13h/19d Inode: 471775 Links: 2 Access: (0755/drwxr-xr-x) Uid: ( 1001/ mypep) Gid: ( 1001/ mypep) Access: 2015-07-30 14:09:57.000000000 +0800 Modify: 2015-07-30 14:10:18.000000000 +0800 Change: 2015-07-30 14:10:18.000000000 +0800 [root@ftp-1-1 testdir]# echo "ab" >test #如果echo 两个字节 [root@ftp-1-1 testdir]# stat ../testdir File: "../testdir" Size: 300 Blocks: 1 IO Block: 65536 目录大小就增加到了300个b 这个地方有待考究 Device: 13h/19d Inode: 471775 Links: 2 Access: (0755/drwxr-xr-x) Uid: ( 1001/ mypep) Gid: ( 1001/ mypep) Access: 2015-07-30 14:09:57.000000000 +0800 Modify: 2015-07-30 14:10:18.000000000 +0800 Change: 2015-07-30 14:10:18.000000000 +0800 |