kernel-packages team mailing list archive
-
kernel-packages team
-
Mailing list archive
-
Message #154804
[Bug 1531747] [NEW] overlay: mkdir fails if directory exists in lowerdir
Public bug reported:
If a directory exists in the lowerdir but not in the mounted
overlay, then mkdir of the directory in the target dir results
in a mysterious -EPERM. I've seen this both in wily kernel
(4.2.0-22-generic #27-Ubuntu) and in a hand-built xenial
master-next (with unrelated patches added).
=====================================================
#!/bin/sh -ex
dir=`mktemp -d`
cleanup() {
umount -l $dir/t
rm -rf $dir
}
trap cleanup EXIT
echo "dir is $dir"
mkdir -p $dir/l $dir/u $dir/w $dir/t
mkdir $dir/l/dev
mount -t overlay -o lowerdir=$dir/l,upperdir=$dir/u,workdir=$dir/w o $dir/t
stat $dir/t/dev
rmdir $dir/t/dev
mkdir $dir/t/dev
echo $?
echo "mkdir should have succeeded"
=====================================================
** Affects: linux (Ubuntu)
Importance: Undecided
Status: Incomplete
--
You received this bug notification because you are a member of Kernel
Packages, which is subscribed to linux in Ubuntu.
https://bugs.launchpad.net/bugs/1531747
Title:
overlay: mkdir fails if directory exists in lowerdir
Status in linux package in Ubuntu:
Incomplete
Bug description:
If a directory exists in the lowerdir but not in the mounted
overlay, then mkdir of the directory in the target dir results
in a mysterious -EPERM. I've seen this both in wily kernel
(4.2.0-22-generic #27-Ubuntu) and in a hand-built xenial
master-next (with unrelated patches added).
=====================================================
#!/bin/sh -ex
dir=`mktemp -d`
cleanup() {
umount -l $dir/t
rm -rf $dir
}
trap cleanup EXIT
echo "dir is $dir"
mkdir -p $dir/l $dir/u $dir/w $dir/t
mkdir $dir/l/dev
mount -t overlay -o lowerdir=$dir/l,upperdir=$dir/u,workdir=$dir/w o $dir/t
stat $dir/t/dev
rmdir $dir/t/dev
mkdir $dir/t/dev
echo $?
echo "mkdir should have succeeded"
=====================================================
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1531747/+subscriptions
Follow ups
-
[Bug 1531747] Re: overlay: mkdir fails if directory exists in lowerdir in a user namespace
From: Launchpad Bug Tracker, 2016-02-26
-
[Bug 1531747] Re: overlay: mkdir fails if directory exists in lowerdir in a user namespace
From: Launchpad Bug Tracker, 2016-02-24
-
[Bug 1531747] Re: overlay: mkdir fails if directory exists in lowerdir in a user namespace
From: Launchpad Bug Tracker, 2016-02-24
-
[Bug 1531747] Re: overlay: mkdir fails if directory exists in lowerdir in a user namespace
From: Alberto Salvia Novella, 2016-02-24
-
[Bug 1531747] Re: overlay: mkdir fails if directory exists in lowerdir in a user namespace
From: Launchpad Bug Tracker, 2016-02-24
-
[Bug 1531747] Re: overlay: mkdir fails if directory exists in lowerdir in a user namespace
From: Launchpad Bug Tracker, 2016-02-24
-
[Bug 1531747] Re: overlay: mkdir fails if directory exists in lowerdir in a user namespace
From: Launchpad Bug Tracker, 2016-02-22
-
[Bug 1531747] Re: overlay: mkdir fails if directory exists in lowerdir in a user namespace
From: Philipp Wendler, 2016-02-15
-
[Bug 1531747] Re: overlay: mkdir fails if directory exists in lowerdir in a user namespace
From: Seth Forshee, 2016-02-02
-
[Bug 1531747] Re: overlay: mkdir fails if directory exists in lowerdir in a user namespace
From: Joseph Salisbury, 2016-01-19
-
[Bug 1531747] Re: overlay: mkdir fails if directory exists in lowerdir in a user namespace
From: oleg, 2016-01-18
-
[Bug 1531747] Re: overlay: mkdir fails if directory exists in lowerdir in a user namespace
From: Seth Forshee, 2016-01-14
-
[Bug 1531747] Re: overlay: mkdir fails if directory exists in lowerdir in a user namespace
From: Serge Hallyn, 2016-01-14
-
[Bug 1531747] Re: overlay: mkdir fails if directory exists in lowerdir in a user namespace
From: Seth Forshee, 2016-01-12
-
[Bug 1531747] Re: overlay: mkdir fails if directory exists in lowerdir in a user namespace
From: Serge Hallyn, 2016-01-12
-
[Bug 1531747] Re: overlay: mkdir fails if directory exists in lowerdir in a user namespace
From: Serge Hallyn, 2016-01-11
-
[Bug 1531747] Re: overlay: mkdir fails if directory exists in lowerdir in a user namespace
From: Seth Forshee, 2016-01-11
-
[Bug 1531747] Re: overlay: mkdir fails if directory exists in lowerdir in a user namespace
From: Serge Hallyn, 2016-01-09
-
[Bug 1531747] Re: overlay: mkdir fails if directory exists in lowerdir in a user namespace
From: Serge Hallyn, 2016-01-09
-
[Bug 1531747] Re: overlay: mkdir fails if directory exists in lowerdir in a user namespace
From: Serge Hallyn, 2016-01-09
-
[Bug 1531747] Re: overlay: mkdir fails if directory exists in lowerdir in a user namespace
From: Joseph Salisbury, 2016-01-07
-
[Bug 1531747] Re: overlay: mkdir fails if directory exists in lowerdir
From: Serge Hallyn, 2016-01-07
-
[Bug 1531747] Missing required logs.
From: Brad Figg, 2016-01-07