Skip to content

Commit 930b7c3

Browse files
YBelikovamir73il
authored andcommitted
overlayfs.rst: update metacopy section in overlayfs documentation
- Provide info about trusted.overlay.metacopy extended attribute - Minor rephrasing regarding copy-up operation with metacopy=on Signed-off-by: Yuriy Belikov <[email protected]> Signed-off-by: Amir Goldstein <[email protected]>
1 parent 7d6899f commit 930b7c3

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

Documentation/filesystems/overlayfs.rst

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -367,8 +367,11 @@ Metadata only copy up
367367

368368
When the "metacopy" feature is enabled, overlayfs will only copy
369369
up metadata (as opposed to whole file), when a metadata specific operation
370-
like chown/chmod is performed. Full file will be copied up later when
371-
file is opened for WRITE operation.
370+
like chown/chmod is performed. An upper file in this state is marked with
371+
"trusted.overlayfs.metacopy" xattr which indicates that the upper file
372+
contains no data. The data will be copied up later when file is opened for
373+
WRITE operation. After the lower file's data is copied up,
374+
the "trusted.overlayfs.metacopy" xattr is removed from the upper file.
372375

373376
In other words, this is delayed data copy up operation and data is copied
374377
up when there is a need to actually modify data.

0 commit comments

Comments
 (0)