alibaba / tfs

TFS (Taobao File System) is a distributed file system similar to GFS.
http://tfs.taobao.org
GNU General Public License v2.0
1.24k stars 457 forks source link

What is "flat structure" mean in the introduction part of the project homepage? #1

Open chenttuuvv opened 11 years ago

chenttuuvv commented 11 years ago

It seems that I fail to find any definition of this term in Google.com. I guess it may refer to the meaning that all block files are located in the same directory, is that right?

Queston 2 : Does this phrase "在块设备基础上建立自有的文件系统,减少EXT3等文件系统数据碎片带来的性能损耗" mean that TFS does not use API provided by VFS layer and write data to file /dev/sda1 directly ?

tfs-taobao commented 11 years ago

Question 1

“Flat structure“ means tfs doesn’t have a hierarchical directory structure similar to traditional filesystem, you can simply think that all the files are located in the same root path.

Question 2

Tfs uses ext4(or some other fs) to store block which contains many small files in it, not directly use raw device.

发件人: chenttuuvv [mailto:notifications@github.com] 发送时间: 2013年8月28日 10:33 收件人: alibaba/tfs 主题: [tfs] What is "flat structure" mean in the introduction part of the project homepage? (#1)

It seems that I fail to find any definition of this term in Google.com. I guess it may refer to the meaning that all block files are located in the same directory, is that right?

Queston 2 : Does this phrase "在块设备基础上建立自有的文件系统,减少EXT3等文件系统数据碎片带来的性能损耗" mean that TFS does not use API provided by VFS layer and write data to file /dev/sda1 directly ?

— Reply to this email directly or view it on GitHub https://github.com/alibaba/tfs/issues/1 . https://github.com/notifications/beacon/iTFC0gTL357GM7IXGDxbgjhcLfhzL4oplSa3cEsILkIurW66YJ8FbJ4xIHKUr6-W.gif