hammerread.c and fuse-hammer ported to OS X

Matthew Dillon dillon at apollo.backplane.com
Mon Apr 5 09:36:24 PDT 2010

    You could probably implement the @@PFSxxxxx softlink conversion
    feature in your fuse/hammerread.  You do it by looking up the PFS
    management record in the B-Tree, see hammer_load_pseudofs()
    around line 931 of hammer_inode.c.

    If you do that then you can adjust your code at hammerread.c line 838
    to lookup the PFS, determine if it is a slave PFS, and then extract
    the proper transaction id.  HAMMER_MAX_TID is always used for masters
    but slaves have a tracking transaction id stored in the PFS record.

    Being able to access snapshots would also be cool.  Now that snapshots
    (in HAMMER v4) are stored as meta-data you can actually extract a list
    of available snapshot transaction ids and make them available.
    You'd have to implement the @@<transactionid> extension for file
    and directory name lookups for people to be able to CD into a

    In anycase, I'm just throwing stuff at you :-)

					Matthew Dillon 
					<dillon at backplane.com>

More information about the Hammer mailing list