diskfile
diskfile copied to clipboard
Expose a disk block device as a regular file (FUSE)
When the mountpoint does not exist, the application errors with a non-descriptive error. This could be more descriptive. ``` ~/projects/misc/diskfile (master)$ ./diskfile /dev/disk2s1 ./mount Segmentation fault: 11 ```
$ mount|grep diskfile diskfile on /diskfile type fuse.diskfile (rw,relatime,user_id=0,group_id=0) $ ls -ld /diskfile ls: cannot access /diskfile: Permission denied $ ls -l /|grep diskfile ls: cannot access /diskfile: Permission denied...
File sizes are otherwise filled with junk if the device nodes were not readable.
This is needed when using backup systems that check mtime; now restarting diskfile will make the files appear fresh.