
数字でラベル付けされたディレクトリがいくらでもあるとしましょう。
私もディレクトリを持っていますmerge
。
私はできます。
mount -t overlay -olowerdir=1:2:50 overlay merge
1
、 、2
の50
内容を取得しますmerge
。
コマンドを実行したかのように、オーバーレイにさらにディレクトリを23
「追加」する最良の方法は何ですか?81
457
mount -t overlay -olowerdir=1:2:50:23:81:457 overlay merge
最初の?
たとえば、ディレクトリを「上書き解除」するには、ディレクトリ全体を23
アンマウントせずにこれを実行できますか?
概念的には、同じ「レベル」のカバレッジ内にあるディレクトリを好きなだけ持たせたいと言えるでしょう。
答え1
(私も同じ問題があります。)唯一私が見つけることができる情報は次のとおりです。
~からhttps://lkml.org/lkml/2014/11/10/129:
Maybe it wasn't clear, but the number of lower layers isn't limited by
FILESYSTEM_MAX_STACK_DEPTH, only by the max size of the mount option buffer in
the kernel (1 page, usually 4096bytes). So you could have a hundred read-only
layers stacked in a single overlayfs mount.
As for changing the stacking while the overlayfs is mounted: currently this is
not supported, the layers specified at the mount time remain there until the
overlay is unmounted. Currently there's no possibility to add or remove layers
in a dynamic way, and it is definitely more tricky to implement than the static
configuration.
-- Miklos Szeredi Mon, 10 Nov 2014