mirror of
https://github.com/torarnv/sparsebundlefs.git
synced 2026-02-26 18:35:50 +01:00
Document how to enable debug mode to troubleshoot issues
This commit is contained in:
@@ -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
|
||||
-------
|
||||
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user