overlayfs in 4.12-rc1. Files in lower become unwritable in the overlay

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



How to reproduce: Make sure that the kernel is compiled with
CONFIG_TMPFS_XATTR not set. (Otherwise, as Miklos suggested, the bug
does not occur)

Start with a directory "lower" (btrfs in my case) containing an empty
file "x", and three empty directories "upper", "workdir", "over" on
"/tmp" (tmpfs). Then mount the overlayfs

   sudo mount -t overlay -o \
     lowerdir=lower,upperdir=/tmp/upper,workdir=/tmp/workdir overlay \
     /tmp/over

Then the commands

   sudo touch /tmp/over/x
   sudo mv /tmp/over/x /tmp/over/z

fail:
  touch: cannot touch '/tmp/over/x': Operation not supported
  mv: cannot move '/tmp/over/x' to '/tmp/over/z': Operation not
  supported

despite the permissions

  -rw-r--r-- 1 ziegler ziegler 0 Mai 14 12:27 /tmp/over/y

------------------------------------------------------------------

------------------------------------------------------------------

Bisection between 4.11.0 and 4.12-rc1 yielded

commit 3a1e819b4e80216e00ef6a4dfe67fa142450c5e1
Author: Amir Goldstein <amir73il@xxxxxxxxx>
Date:   Thu Mar 30 15:22:16 2017 +0300

    ovl: store file handle of lower inode on copy up

as responsible for this.

------------------------------------------------------------------


------------------------------------------------------------------


Regards,

Martin

--
To unsubscribe from this list: send the line "unsubscribe linux-unionfs" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [Linux Filesystems Devel]     [Linux NFS]     [Linux NILFS]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux