https://github.com/vi/fusefile
Mount one file to another (with offset and append_only support)
https://github.com/vi/fusefile
Last synced: about 1 year ago
JSON representation
Mount one file to another (with offset and append_only support)
- Host: GitHub
- URL: https://github.com/vi/fusefile
- Owner: vi
- Created: 2011-01-22T22:49:36.000Z (over 15 years ago)
- Default Branch: master
- Last Pushed: 2024-05-08T08:11:45.000Z (about 2 years ago)
- Last Synced: 2025-03-28T21:03:45.715Z (over 1 year ago)
- Language: C
- Homepage:
- Size: 9.77 KB
- Stars: 5
- Watchers: 4
- Forks: 3
- Open Issues: 1
-
Metadata Files:
- Readme: README
Awesome Lists containing this project
README
Mount one file to another (with offset and append_only support)
Examples:
# Simplest mode
echo qqq > source
touch mountpoint
fusefile source mountpoint
# 1KB random file (frandom is a fast urandom)
fusefile /dev/frandom mountpoint -r -S 1024 -M 0100666
# Instead of "losetup -r -o"
fusefile /dev/sda sda1_readonly -r -S 1024 -O $((63*512)) -S $((626535*512)) -M 0100600
# Append-only public log using FUSE
fusefile /var/log/mylog publiclog -a -M 0100777 -o allow_other
# Force a file to be "regular"
fusefile /dev/uba1 mountpoint -w -M 0100600 -S `blockdev --getsize64 /dev/uba1`
# Note: for this purpose there are also special FUSE filesystems:
# * https://github.com/vasi/diskfile
# * https://github.com/vi/simplecowfs#bonus-2-demotetoregularfilefs