[Lustre-devel] changelog for whole filesystem?

Andreas Dilger andreas.dilger at oracle.com
Thu Oct 28 02:04:02 PDT 2010


On 2010-10-27, at 21:17, bzzz.tomas at gmail.com wrote:
> On 10/27/10 5:06 PM, Andreas Dilger wrote:
>> 
>> I was thinking that it would be useful to have a virtual changelog that provides a feed from internally traversing the whole filesystem in an efficient manner.  For bug 22741 we have implemented a virtual index in the OSD which will return all of the in-use ldiskfs inodes in inode-number order (which is the fastest way to read/stat all of the inodes).  It probably wouldn't be too hard to hook this OSD callback into the changelog API, so that reading a special changelog file would return all of the files in the filesystem.  It is possible to generate the full pathnames of these inodes via the "link" xattr, if that is needed.
> 
> probably you meant to iterate over OI ?

Yes, I was thinking to hook the OI iteration to the ChangeLog API so that it is easier to iterate over the Filesystem from userspace. 

Cheers, Andreas


More information about the lustre-devel mailing list