DragonFly BSD
DragonFly hammer List (threaded) for 2010-04
[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]

Re: hammerread.c and fuse-hammer ported to OS X


From: Matthew Dillon <dillon@xxxxxxxxxxxxxxxxxxxx>
Date: Mon, 5 Apr 2010 09:35:44 -0700 (PDT)

    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
    snapshot.

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

					-Matt
					Matthew Dillon 
					<dillon@backplane.com>



[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]