overlayctl

command module
v1.0.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 2, 2017 License: GPL-3.0 Imports: 9 Imported by: 0

README

overlayctl

An overlayfs controller

About overlayfs: https://www.kernel.org/doc/Documentation/filesystems/overlayfs.txt

Usage

Commands:
        mount [-ro] <bottom0> ...<bottomN> <top> <workdir>;
        unmount [<top>] <workdir>;
        merge <bottom0> ...<bottomN> <dest> <source> <path>

Example:
        Create a simple 2-layer filesystem:
                overlayctl mount test/lower test/upper /mnt/workdir
        Create a 3-layer read-only filesystem:
                overlayctl mount -ro bottom middle top /mnt/workdir2
        Unmount it:
                overlayctl unmount /mnt/workdir2
        Unmount it and delete temporary directory (test/upper.tmp):
                overlayctl unmount test/upper /mnt/workdir
        Merge a directory from middle to bottom1 layer:
                overlayctl merge bottom0 bottom1 middle /file/to/merge

Do not use merge to change an online(mounted) filesystem.

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL