DragonFly users List (threaded) for 2008-10
[
Date Prev][
Date Next]
[
Thread Prev][
Thread Next]
[
Date Index][
Thread Index]
find hammer tid by timestamp
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:
root@blob:~ >/tmp/findtid.sh /hammer/ 1224775064
Mirror-read: Mirror from 0000000712eeede8 to 0000000e25dddbb0
Mirror-read: Mirror from 0000000a9c6664dc to 0000000e25dddbb0
Mirror-read: Mirror from 0000000c61222056 to 0000000e25dddbb0
Mirror-read: Mirror from 0000000d437ffe13 to 0000000e25dddbb0
Mirror-read: Mirror from 0000000db4aeecf1 to 0000000e25dddbb0
Mirror-read: Mirror from 0000000ded466460 to 0000000e25dddbb0
Mirror-read: Mirror from 0000000e09922018 to 0000000e25dddbb0
Mirror-read: Mirror from 0000000e17b7fdf4 to 0000000e25dddbb0
Mirror-read: Mirror from 0000000e1ecaece2 to 0000000e25dddbb0
Mirror-read: Mirror from 0000000e22546459 to 0000000e25dddbb0
Mirror-read: Mirror from 0000000e24192014 to 0000000e25dddbb0
Mirror-read: Mirror from 0000000e2336c236 to 0000000e25dddbb0
Mirror-read: Mirror from 0000000e22c59347 to 0000000e25dddbb0
Mirror-read: Mirror from 0000000e228cfbd0 to 0000000e25dddbb0
Mirror-read: Mirror from 0000000e2270b014 to 0000000e25dddbb0
Mirror-read: Mirror from 0000000e22628a36 to 0000000e25dddbb0
Mirror-read: Mirror from 0000000e225b7747 to 0000000e25dddbb0
Mirror-read: Mirror from 0000000e2257edd0 to 0000000e25dddbb0
Mirror-read: Mirror from 0000000e22562914 to 0000000e25dddbb0
Mirror-read: Mirror from 0000000e22570b72 to 0000000e25dddbb0
Mirror-read: Mirror from 0000000e22569a43 to 0000000e25dddbb0
Mirror-read: Mirror from 0000000e225661ab to 0000000e25dddbb0
Mirror-read: Mirror from 0000000e2256455f to 0000000e25dddbb0
Mirror-read: Mirror from 0000000e22563739 to 0000000e25dddbb0
Mirror-read: Mirror from 0000000e22563026 to 0000000e25dddbb0
Mirror-read: Mirror from 0000000e225633af to 0000000e25dddbb0
Mirror-read: Mirror from 0000000e22563574 to 0000000e25dddbb0
Mirror-read: Mirror from 0000000e22563491 to 0000000e25dddbb0
Mirror-read: Mirror from 0000000e22563420 to 0000000e25dddbb0
Mirror-read: Mirror from 0000000e225633e7 to 0000000e25dddbb0
Mirror-read: Mirror from 0000000e22563403 to 0000000e25dddbb0
Mirror-read: Mirror from 0000000e22563411 to 0000000e25dddbb0
Mirror-read: Mirror from 0000000e2256340a to 0000000e25dddbb0
Mirror-read: Mirror from 0000000e2256340d to 0000000e25dddbb0
Mirror-read: Mirror from 0000000e2256340f to 0000000e25dddbb0
Mirror-read: Mirror from 0000000e22563410 to 0000000e25dddbb0
tid=0xe22563410016 ts=1224708222
The resulting tid (0xe22563410016 in this case) should be
usable to create a snapshot provided the filesystem still
has fine grained history around this time.
Cheers,
Johannes
PS: Please correct me if I'm missing something!
[
Date Prev][
Date Next]
[
Thread Prev][
Thread Next]
[
Date Index][
Thread Index]