- Setting loopback device with magic parameters
- Mounting device
- Coping
- Unmounting
- Release of lookback device
All of those steps needed to be run from root. I thought that since I have access to all files there is no need to have 0 rights. However I couldn't find anything so I write my own.
I implemented mbrfs as a FUSE program. The usage is quite 'standard':
Code: Select all
% mbrfs -o image=your_disk_image.img dir_to_mount
Github repository
PS. I cannot find any practical application except os dev so I posted it here. I'm sorry if you considered it as spam.