hammerread.c and fuse-hammer ported to OS X

Daniel Lorch daniel.lorch at epfl.ch
Sun Apr 4 09:01:35 PDT 2010


Hey,

hammerread.c and fuse-hammer now work on OS X. You can get the
-0.2.tar.gz from http://dlorch.github.com/hammer-linux/#download

Softlinks are not supported, yet. Hence the error message for the
snapshot directory. ctime/mtime are wrong as well.

$ wget http://dlorch.github.com/hammer-linux/files/hammerdisk.raw.bz2
$ bzip2 -d hammerdisk.raw.bz2
$ wget http://dlorch.github.com/hammer-linux/files/fusehammer-0.2.tar.gz
$ tar zxf fusehammer-0.2.tar.gz
$ cd fusehammer-0.2
$ make
$ mkdir tmp
$ ./fusehammer ../hammerdisk.raw tmp
$ ls -l tmp
total 12344
-rw-r--r--  1 root  wheel  5242880 Jan  1  1970 5M
-rw-r--r--  1 root  wheel       44 Jan  1  1970 5M.md5
drwxr-xr-x  0 root  wheel        0 Jan  1  1970 a
drwxr-xr-x  0 root  wheel        0 Jan  1  1970 manyfiles
drwxr-xr-x  0 root  wheel        0 Jan  1  1970 pfs

ls: tmp/snap-20090609-0137: Function not implemented
lrwxr-xr-x  0 root  wheel       28 Jan  1  1970 snap-20090609-0137
-rwxr-xr-x  1 root  wheel     4691 Jan  1  1970 sparse
-rw-r--r--  1 root  wheel      172 Jan  1  1970 sparse.c
-rw-r--r--  1 root  wheel  1048576 Jan  1  1970 sparse.file
-rw-r--r--  1 root  wheel       48 Jan  1  1970 sparse.md5
-rw-r--r--  1 root  wheel       12 Jan  1  1970 test

$ md5 5M sparse test
MD5 (5M) = 77c4539c40ad3717e934d320607a9fee
MD5 (sparse) = e348afb9e5647c5b1468025340c2afd6
MD5 (test) = f41121a903eafadf258962abc57c8644

now compare with
http://dlorch.github.com/hammer-linux/files/hammerdisk.raw.txt

Daniel





More information about the Hammer mailing list