You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
The text was updated successfully, but these errors were encountered:
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# rmdir /mnt # both /mnt and /rom/mnt are empty/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:
root@OpenWrt:
# mkdir /mnt# rmdir /etc/uci-defaults # /etc/uci-defaults is empty, while /rom/etc/uci-defaults isn't.mkdir: cannot create directory ‘mnt’: I/O error
root@OpenWrt:
rmdir: failed to remove '/etc/uci-defaults': I/O error
The text was updated successfully, but these errors were encountered: