All of lore.kernel.org
 help / color / mirror / Atom feed
* [Lustre-devel] changelog for whole filesystem?
@ 2010-10-27 13:06 Andreas Dilger
  2010-10-27 13:17 ` bzzz.tomas at gmail.com
  2010-10-27 15:28 ` LEIBOVICI Thomas
  0 siblings, 2 replies; 12+ messages in thread
From: Andreas Dilger @ 2010-10-27 13:06 UTC (permalink / raw)
  To: lustre-devel

I had an interesting idea today during a discussion on HSM.  One of the issues with enabling HSM today is that a full-filesystem scan must be done initially to populate the policy engine database.

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.

Cheers, Andreas
--
Andreas Dilger
Lustre Technical Lead
Oracle Corporation Canada Inc.

^ permalink raw reply	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2010-11-12 23:58 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-10-27 13:06 [Lustre-devel] changelog for whole filesystem? Andreas Dilger
2010-10-27 13:17 ` bzzz.tomas at gmail.com
2010-10-28  9:04   ` Andreas Dilger
2010-10-27 15:28 ` LEIBOVICI Thomas
2010-10-28  9:15   ` Andreas Dilger
2010-10-28 13:43     ` LEIBOVICI Thomas
2010-10-29 16:50       ` Eric Barton
2010-11-02  6:42         ` Andreas Dilger
2010-11-11  4:15           ` Nathan Rutman
2010-11-11 18:10             ` Eric Barton
2010-11-12 23:41               ` Robert Read
2010-11-12 23:58                 ` Andreas Dilger

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.