Dienstag, 24. März 2009

hammerread.c

hammerread.c is a self-contained library for the bootloader to read the hammer filesystem. It can be compiled as a command line tool using -DTESTING.

First get the dragonfly sources with cvsup, then:

-bash-4.0# cd /usr/src/lib/libstand
-bash-4.0# cc -DTESTING -std=c99 hammerread.c -o hammerread

-bash-4.0# ./hammerread
usage: hammerread
-bash-4.0# ./hammerread /dev/ad1s0e
signature: valid
name: HAMMER
-bash-4.0# ./hammerread /dev/ad1s0e /test
signature: valid
name: HAMMER
/test 0/0 100644 12
Hello
World

0 Kommentare:

Kommentar veröffentlichen