diff options
author | Alex Xu (Hello71) <alex_y_xu@yahoo.ca> | 2021-02-21 15:51:32 -0500 |
---|---|---|
committer | Alex Xu (Hello71) <alex_y_xu@yahoo.ca> | 2021-02-21 15:51:32 -0500 |
commit | c196a5db821735b000a2e0ddc8f57623146a64d2 (patch) | |
tree | 0159860790d0f27e4e436f476f5c2c56250f5cfa /README.rst | |
parent | 1287c61abde178c5602326c8bd928bb7be3c31b2 (diff) | |
download | tmpoverlay-c196a5db821735b000a2e0ddc8f57623146a64d2.tar.xz tmpoverlay-c196a5db821735b000a2e0ddc8f57623146a64d2.zip |
update README
Diffstat (limited to 'README.rst')
-rw-r--r-- | README.rst | 36 |
1 files changed, 25 insertions, 11 deletions
@@ -2,17 +2,31 @@ tmpoverlay ========== tmpoverlay is a small, almost-POSIX shell script to create tmpfs-backed -overlayfs mounts. tmpoverlay automatically detects and uses index=on and -volatile, as well as redirect_dir and metacopy if only a single lowerdir is -used. See tmpoverlay --help for usage information. - -One important thing to note is that like any other Linux mount, an overlayfs -mount only affects new directory lookups. If a process has its current -directory or has files open inside the mount point, it continues to access the -original directory, not the overlaid one. Each process also has a cached root -directory pointer, which can only be modified by chroot (internally) or -pivot_root (globally). The pivot_root(2)_ and pivot_root(8)_ man pages should -be fully read and understood before using tmpoverlay to overmount ``/``. +overlayfs mounts. + +Features +-------- + +- minimal requirements (sh, mount, getopt, stat) + +Benefits over manually calling ``mkdir /tmp/x; mount ...`` + +- separate tmpfs allows size limit (``tmpoverlay -t size=SIZE``) +- upperdir and workdir automatically managed +- tmpfs cleanup after mount so that umount frees RAM +- synchronizes owner, permissions, and xattrs (including lowerdir ACL) +- autodetects optimization flags (redirect_dir, metacopy, index, volatile) + +Overmounting notes +------------------ + +Like any other Linux mount, an overlayfs mount only affects new directory +lookups. If a process has its current directory or has files open inside the +mount point, it continues to access the original directory, not the overlaid +one. Each process also has a cached root directory pointer, which can only be +modified by chroot (internally) or pivot_root (globally). The pivot_root(2)_ +and pivot_root(8)_ man pages should be fully read and understood before using +tmpoverlay to overmount ``/``. .. _pivot_root(2): https://man7.org/linux/man-pages/man2/pivot_root.2.html .. _pivot_root(8): https://man7.org/linux/man-pages/man8/pivot_root.8.html |