From: "André Roth" <neolynx@gmail.com>
To: linux-unionfs@vger.kernel.org
Subject: NFS/ro: mv: cannot move 'foo' to a subdirectory of itself, 'bar'
Date: Mon, 13 Jun 2016 13:07:10 +0200 [thread overview]
Message-ID: <20160613130710.57321936@gmail.com> (raw)
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é
next reply other threads:[~2016-06-13 11:07 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-06-13 11:07 André Roth [this message]
2016-06-16 12:30 ` NFS/ro: mv: cannot move 'foo' to a subdirectory of itself, 'bar' Miklos Szeredi
2016-06-18 11:32 ` André Roth
2016-06-29 14:21 ` Miklos Szeredi
2016-06-29 21:20 ` André Roth
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20160613130710.57321936@gmail.com \
--to=neolynx@gmail.com \
--cc=linux-unionfs@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).