Hi, I've written a new tool grub-fstest which can be useful in debuging filesystem drivers. To build grub-fstest, you must use option --enable-grub-fstest:
./configure --enable-grub-fstest Usage: fstest [OPTIONS] IMAGE_PATH COMMANDS IMAGE_PATH is the absolute path to an image file, COMMANDS is one of the following commands: ls PATH list files in PATH cp SRC DEST copy file SRC in the image file to DEST in the local system. cmp SRC DEST compare file SRC in the image file with DEST in the local system. dump FILE hexdump FILE in the image file blst FILE display the blocklist of FILE in the image file Options: -s, --skip=N set the number of bytes to skip in command cp, cmp and dump. -n, --length=N set the number of bytes to process in command cp, cmp and dump. -r, --raw disable auto decompression -p, --part=N if IMAGE_FILE contain partition map, use the option to select partition. Examples: ./grub-fstest /path/aa.iso ls / List files in aa.iso ./grub-fstest -p 1 /path/aa.dsk cp /bb cc Copy file /bb in the first partition of aa.dsk to cc in the current directory ./grub-fstest -p 1 /path/aa.dsk cmp /bb cc Compare file /bb in the first partition of aa.dsk with cc in the current directory ./grub-fstest -s 10 -n 20 /path/aa.tar dump /bb Hexdump file /bb in aa.tar, skip 10 bytes, print 20 bytes. ./grub-fstest /path/aa.iso blst /bb display the blocklist of file /bb in aa.iso -- Bean
grub2-fstest.diff
Description: Binary data
_______________________________________________ Grub-devel mailing list [email protected] http://lists.gnu.org/mailman/listinfo/grub-devel
