OpenWrt/LEDE Project

  • Status Unconfirmed
  • Percent Complete
  • Task Type Bug Report
  • Category Kernel
  • Assigned To No-one
  • Operating System All
  • Severity Medium
  • Priority Very Low
  • Reported Version Trunk
  • Due in Version Undecided
  • Due Date Undecided
  • Private
Attached to Project: OpenWrt/LEDE Project
Opened by zhanhb - 14.05.2020

FS#3097 - BUG when try to delete directory

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 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


Available keyboard shortcuts


Task Details

Task Editing