From: hujianyang <hujianyang@huawei.com>
To: Fabian Sturm <fabian.sturm@aduu.de>
Cc: miklos@szeredi.hu, linux-unionfs@vger.kernel.org
Subject: Re: PROBLEM: Mounting multiple lowerdirs with "lowerdir=/tmp/a0,/tmp/a" returns 32
Date: Tue, 13 Jan 2015 10:17:57 +0800 [thread overview]
Message-ID: <54B48055.8070806@huawei.com> (raw)
In-Reply-To: <3603873.tCNzyKeON0@debian-desktop-mine>
Hi Fabian,
Thanks for reporting.
On 2015/1/13 5:59, Fabian Sturm wrote:
>
> sudo mount -t overlay -o lowerdir=/tmp/a,/tmp/a0 overlay /tmp/merged
I think the cause of this failure is the wrong mount option you
are using.
should be:
sudo mount -t overlay -o lowerdir=/tmp/a:/tmp/a0 overlay /tmp/merged
Comma is used to separate different mount options. Overlayfs use
colon as the separator between lower directories.
I don't know if it is a correct resolution for your problem. You
can try it first. It's OK in my environment to mount ovl with
numbers in directory name.
> ret=$(echo $?)
> echo $ret
> if [[ "$ret" == "0" ]]; then
> sudo umount /tmp/merged
> fi
>
> sudo mount -t overlay -o lowerdir=/tmp/a,/tmp/0a overlay /tmp/merged
> ret=$(echo $?)
> echo $ret
> if [[ "$ret" == "0" ]]; then
> sudo umount /tmp/merged
> fi
>
Anyway, I think overlayfs should print an error message if an
incorrect mount option is caught like other filesystems.
Reported-by: Fabian Sturm <fabian.sturm@aduu.de>
Signed-off-by: hujianyang <hujianyang@huawei.com>
---
fs/overlayfs/super.c | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/fs/overlayfs/super.c b/fs/overlayfs/super.c
index b90952f..ab3c8cb 100644
--- a/fs/overlayfs/super.c
+++ b/fs/overlayfs/super.c
@@ -615,6 +615,7 @@ static int ovl_parse_opt(char *opt, struct ovl_config *config)
break;
default:
+ pr_err("overlayfs: unrecognized mount option \"%s\" or missing value\n", p);
return -EINVAL;
}
}
--
1.6.0.2
next prev parent reply other threads:[~2015-01-13 2:18 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-01-12 21:59 PROBLEM: Mounting multiple lowerdirs with "lowerdir=/tmp/a0,/tmp/a" returns 32 Fabian Sturm
2015-01-13 2:17 ` hujianyang [this message]
2015-01-13 8:27 ` Fabian Sturm
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=54B48055.8070806@huawei.com \
--to=hujianyang@huawei.com \
--cc=fabian.sturm@aduu.de \
--cc=linux-unionfs@vger.kernel.org \
--cc=miklos@szeredi.hu \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.