linux-unionfs.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* NFS/ro: mv: cannot move 'foo' to a subdirectory of itself, 'bar'
@ 2016-06-13 11:07 André Roth
  2016-06-16 12:30 ` Miklos Szeredi
  0 siblings, 1 reply; 5+ messages in thread
From: André Roth @ 2016-06-13 11:07 UTC (permalink / raw)
  To: linux-unionfs


Hello,

I try to use overlay for network boot clients using an NFS read-only
filesystem. This works pretty well, except renaming files with the mv
command fails:

==========================
# ls -l
-rw-r--r-- 1 root root 785 Mar 27  2016 foo

# mv foo bar
mv: cannot move 'foo' to a subdirectory of itself, 'bar'
==========================

I mount the overlay filesystem as follows in the initrd, where /root is
already mounted read-only from NFS:
==========================
mkdir /writable
mkfs.ext2 /dev/ram0 >/dev/null
mount -n /dev/ram0 /writable >/dev/null

mkdir /writable/upper
mkdir /writable/work

modprobe overlay
mount -t overlay overlay -olowerdir=/root,upperdir=/writable/upper,workdir=/writable/work,default_permissions /root
==========================

kernel version is 4.7.0-rc2, git cloned from
git://git.kernel.org/pub/scm/linux/kernel/git/mszeredi/vfs.git,
using the overlayfs-next branch.

is this a bug ?
can I help anything debugging fixing this ?


Regards,

 André

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2016-06-29 21:20 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-06-13 11:07 NFS/ro: mv: cannot move 'foo' to a subdirectory of itself, 'bar' André Roth
2016-06-16 12:30 ` Miklos Szeredi
2016-06-18 11:32   ` André Roth
2016-06-29 14:21     ` Miklos Szeredi
2016-06-29 21:20       ` André Roth

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).