Created
August 4, 2020 19:25
-
-
Save sipsma/f113c578f3a8a86a93cd047f26bfa273 to your computer and use it in GitHub Desktop.
example of whiteouts being weird w/ overlay
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-issue# ls | |
root@bincastle-dev:/home/sipsma/tmp/wh-issue# mkdir -p lower1/foo lower2/foo upper work merged | |
root@bincastle-dev:/home/sipsma/tmp/wh-issue# mknod lower1/foo/wh c 0 0 | |
root@bincastle-dev:/home/sipsma/tmp/wh-issue# mknod lower1/foo/other-device c 0 1 | |
root@bincastle-dev:/home/sipsma/tmp/wh-issue# mount overlay -t overlay -o lowerdir=lower1,upperdir=upper,workdir=work merged/ | |
root@bincastle-dev:/home/sipsma/tmp/wh-issue# ls -la merged/foo/ | |
ls: cannot access 'merged/foo/wh': No such file or directory | |
total 8 | |
drwxr-xr-x 2 root root 4096 Aug 4 12:22 . | |
drwxr-xr-x 1 root root 4096 Aug 4 12:21 .. | |
crw-r--r-- 1 root root 0, 1 Aug 4 12:22 other-device | |
c????????? ? ? ? ? ? wh | |
root@bincastle-dev:/home/sipsma/tmp/wh-issue# umount merged/ | |
root@bincastle-dev:/home/sipsma/tmp/wh-issue# mount overlay -t overlay -o lowerdir=lower1:lower2,upperdir=upper,workdir=work merged/ | |
root@bincastle-dev:/home/sipsma/tmp/wh-issue# ls -la merged/foo/ | |
total 8 | |
drwxr-xr-x 1 root root 4096 Aug 4 12:22 . | |
drwxr-xr-x 1 root root 4096 Aug 4 12:21 .. | |
crw-r--r-- 1 root root 0, 1 Aug 4 12:22 other-device |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment