Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Whiteout directory not work. #425

Open
pigfall opened this issue Jun 24, 2024 · 0 comments
Open

Whiteout directory not work. #425

pigfall opened this issue Jun 24, 2024 · 0 comments

Comments

@pigfall
Copy link

pigfall commented Jun 24, 2024

Reproduce steps:

#!/bin/bash
set -e
mkdir -p /tmp/reproduce
cd /tmp/reproduce
curl -LO https://github.com/user-attachments/files/15951378/fuse-layers.zip
unzip fuse-layers.zip
cd fuse-layers
mkdir -p merged
fuse-overlayfs -o lowerdir="$(pwd)/l1:$(pwd)/l0" merged
  • Reproduce the bug by access files in following sequence
#!/bin/bash
# Result is as expected.
ls /tmp/reproduce/fuse-layers/merged/site-packages > /dev/null

# Result is as expected.
ls /tmp/reproduce/fuse-layers/merged/site-packages/setuptools > /dev/null

# Result is wrong. Beacuse there is whiteout file in `l1/site-package/setuptools/.wh..wh.opq`, so we should only see the file `depends.cpython-38.pyc` from `l1`.  But result is `config.cpython-38.pyc  depends.cpython-38.pyc` which are from `l0`
ls /tmp/reproduce/fuse-layers/merged/site-packages/setuptools/__pycache__

echo ''
echo 'Result is wrong. Beacuse there is whiteout file in `l1/site-package/setuptools/.wh..wh.opq`, so we should only see the file `depends.cpython-38.pyc` from `l1`.  But result is `config.cpython-38.pyc  depends.cpython-38.pyc` which are from `l0`'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant