mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 21:17:44 +00:00
Utilities/mount: Automatically mount regular files with loop devices
Check if the source fd is not a block device file using the fstat syscall and if that's the case, try to mount the file using a temporary loop device.
This commit is contained in:
parent
e14c571916
commit
0739b5df11
2 changed files with 24 additions and 1 deletions
|
@ -44,6 +44,9 @@ Additionally, the name `defaults` is accepted and ignored.
|
|||
```sh
|
||||
# mount devpts /dev/pts -t devpts -o noexec,nosuid
|
||||
# mount /home/anon/myfile.txt /tmp/foo -o bind
|
||||
|
||||
# mount a regular file using a temporary loop device
|
||||
$ mount /home/anon/myfilesystem.bin /mnt
|
||||
```
|
||||
|
||||
## See also
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue