Hello!

How CephFS calculates the directory size? As I know there is two
implementations:

1. Recursive directory traversal like in EXT4 and NTFS
2. Calculation of the directory size by the file system driver and save it
as an attribute. In this case, the driver catches adding, deleting and
editing files on the fly and changes the size of the directory. In this
case there is no need recursive directory traversal.

The directory which we are requesting a size can potentially contain
thousands of files at different levels of nesting.

Our components will call the the directory size using the POSIX API. The
number of calls of this attribute is will be high and recursive directory
traversal is not suitable for us.

Thanks for the answers!
_______________________________________________
ceph-users mailing list
ceph-users@lists.ceph.com
http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com

Reply via email to