Created
August 4, 2020 22:52
-
-
Save sipsma/3399d4a30f2709019cd1d53309765878 to your computer and use it in GitHub Desktop.
example of trusted.overlay.origin
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
root@bincastle-dev:/home/sipsma/tmp/wh-issue2# ls | |
root@bincastle-dev:/home/sipsma/tmp/wh-issue2# mkdir -p lower/foo upper work merged | |
root@bincastle-dev:/home/sipsma/tmp/wh-issue2# touch lower/foo/bar | |
root@bincastle-dev:/home/sipsma/tmp/wh-issue2# mount overlay -t overlay -o lowerdir=lower,upperdir=upper,workdir=work,xino=off merged/ | |
root@bincastle-dev:/home/sipsma/tmp/wh-issue2# rm merged/foo/bar | |
root@bincastle-dev:/home/sipsma/tmp/wh-issue2# umount merged/ | |
root@bincastle-dev:/home/sipsma/tmp/wh-issue2# ls -la upper/foo/ | |
total 8 | |
drwxr-xr-x 2 root root 4096 Aug 4 15:50 . | |
drwxr-xr-x 3 root root 4096 Aug 4 15:49 .. | |
c--------- 1 root root 0, 0 Aug 4 15:50 bar | |
root@bincastle-dev:/home/sipsma/tmp/wh-issue2# python3 | |
Python 3.8.2 (default, Jul 16 2020, 14:00:26) | |
[GCC 9.3.0] on linux | |
Type "help", "copyright", "credits" or "license" for more information. | |
>>> import os | |
>>> os.listxattr("upper/foo") | |
['trusted.overlay.origin'] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment