DragonFly users List (threaded) for 2008-10
DragonFly BSD
DragonFly users List (threaded) for 2008-10
[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]

Re: find hammer tid by timestamp


From: Matthew Dillon <dillon@xxxxxxxxxxxxxxxxxxxx>
Date: Thu, 23 Oct 2008 21:24:37 -0700 (PDT)

:Hi,
:
:finally I implemented a method to get a hammer tid from
:around a given time.
:
:This patchlet adds timestamps to the output of hammer mirror-dump:
:http://leaf.dragonflybsd.org/~hofmann/mirror-dump.patch
:And this bash script makes use of it to find a tid from around a given
:time stamp:
:http://leaf.dragonflybsd.org/~hofmann/findtid.sh
:
:You can call it like this:
:
:findtid.sh <filesystem> <secs since epoch>
:
:Here is an example:
:...
:Cheers,
:Johannes
:
:PS: Please correct me if I'm missing something!

    Hey, pretty good!  I was a bit surprised someone did it in a
    shell script, and I think it might eat a lot of memory, but
    it is a good demonstration.  Thanks for writing it!

    What we need is a C version of your script that directly runs
    the mirror-read ioctl and collects the results.

					-Matt
					Matthew Dillon 
					<dillon@backplane.com>



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