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

FS#3097 - BUG when try to delete directory #7853

Open
openwrt-bot opened this issue May 14, 2020 · 0 comments
Open

FS#3097 - BUG when try to delete directory #7853

openwrt-bot opened this issue May 14, 2020 · 0 comments
Labels
flyspray kernel pull request/issue with Linux kernel related changes

Comments

@openwrt-bot
Copy link

zhanhb:

Device: gl-ar300m-nand
OPENWRT_RELEASE: OpenWrt SNAPSHOT r13235-eb17ee294c
Kernel: 4.19.123-1-79d26c42c84b39dafc40e3236152b99d

It seems a bug on overlayfs with ubifs. It works as expected with overlayfs and jffs2. I search the source and found [[https://github.com/openwrt/openwrt/blob/e04ff3c7cc52c23f5b40730ee426710e22940d68/target/linux/generic/pending-4.19/140-jffs2-use-.rename2-and-add-RENAME_WHITEOUT-support.patch|jffs2-rename.patch]]. Maybe a patch with ubifs should be added.

Steps to reproduce:

root@OpenWrt:# mount
/dev/root on /rom type squashfs (ro,relatime)
......
/dev/ubi0_1 on /overlay type ubifs (rw,noatime,assert=read-only,ubi=0,vol=1)
overlayfs:/overlay on / type overlay (rw,noatime,lowerdir=/,upperdir=/overlay/upper,workdir=/overlay/work)
......
root@OpenWrt:
# rmdir /mnt # both /mnt and /rom/mnt are empty
root@OpenWrt:# mkdir /mnt
mkdir: cannot create directory ‘mnt’: I/O error
root@OpenWrt:
# rmdir /etc/uci-defaults # /etc/uci-defaults is empty, while /rom/etc/uci-defaults isn't.
rmdir: failed to remove '/etc/uci-defaults': I/O error

@aparcar aparcar added the kernel pull request/issue with Linux kernel related changes label Feb 22, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
flyspray kernel pull request/issue with Linux kernel related changes
Projects
None yet
Development

No branches or pull requests

2 participants