diff options
author | Ayush Ranjan <ayushranjan@google.com> | 2019-07-11 17:16:27 -0700 |
---|---|---|
committer | gVisor bot <gvisor-bot@google.com> | 2019-07-11 17:17:47 -0700 |
commit | 2eeca68900eeb57a679eccc08fe172b1d9ddf97f (patch) | |
tree | 996e494170afbcaaf3bdee69f1b7664376c681b5 /pkg/sentry/fs/ext/assets/README.md | |
parent | 07bb86080fd37f108d9bfa9bf32534bd25deb186 (diff) |
Added tiny ext4 image.
The image is of size 64Kb which supports 64 1k blocks
and 16 inodes. This is the smallest size mkfs.ext4 works with.
Added README.md documenting how this was created and included
all files on the device under assets.
PiperOrigin-RevId: 257712672
Diffstat (limited to 'pkg/sentry/fs/ext/assets/README.md')
-rw-r--r-- | pkg/sentry/fs/ext/assets/README.md | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/pkg/sentry/fs/ext/assets/README.md b/pkg/sentry/fs/ext/assets/README.md new file mode 100644 index 000000000..b6eac4f40 --- /dev/null +++ b/pkg/sentry/fs/ext/assets/README.md @@ -0,0 +1,28 @@ +### Tiny Ext4 Image + +The image is of size 64Kb which supports 64 1k blocks and 16 inodes. This is the +smallest size mkfs.ext4 works with. + +This image was generated using the following commands. + +```bash +fallocate -l 64K tiny.ext4 +mkfs.ext4 -j tiny.ext4 +``` + +You can mount it using: + +```bash +sudo mount -o loop tiny.ext4 $MOUNTPOINT +``` + +`file.txt`, `bigfile.txt` and `symlink.txt` were added to this image by just +mounting it and copying (while preserving links) those files to the mountpoint +directory using: + +```bash +sudo cp -P {file.txt,symlink.txt,bigfile.txt} $MOUNTPOINT/ +``` + +The files in this directory mirror the contents and organisation of the files +stored in the image. |