Document how to enable debug mode to troubleshoot issues

This commit is contained in:
Tor Arne Vestbø
2012-11-18 15:57:18 +01:00
parent c2f9531811
commit fda9993aea
2 changed files with 10 additions and 1 deletions

View File

@@ -106,6 +106,15 @@ Luckily there's another FUSE filesystem available, [tmfs][tmfs], which will allo
tmfs /mnt/tm-hfs-image /mnt/tm-root
### Troubleshooting
If any of the above operations fail, you may try running `sparsebundlefs` in debug mode, where it will dump lots of debug output to the console:
sparsebundlefs ~/MyDiskImage.sparsebundle /tmp/my-disk-image -s -f -D
The `-s` and `-f` options ensure that `sparsebundlefs` runs single-threaded and in the foreground, and the `-D` option turns on the debug logging. You should not see any errors in the log output, and if you suspect that the disk image is corrupted you may compare the read operations against a known good disk image.
License
-------

View File

@@ -345,7 +345,7 @@ static int sparsebundle_release(const char *path, struct fuse_file_info *fi)
static int sparsebundle_show_usage(char *program_name)
{
fprintf(stderr, "usage: %s [-o options] [-f] [-D] <sparsebundle> <mountpoint>\n", program_name);
fprintf(stderr, "usage: %s [-o options] [-s] [-f] [-D] <sparsebundle> <mountpoint>\n", program_name);
return 1;
}