* Mount failure caused by colon/comma characters in the path of lower/upper dirs
@ 2021-06-22 16:15 Chengguang Xu
2021-07-09 14:03 ` Miklos Szeredi
0 siblings, 1 reply; 3+ messages in thread
From: Chengguang Xu @ 2021-06-22 16:15 UTC (permalink / raw)
To: linux-unionfs
Hello,
Today I got a mount failure report from a docker developer about special characters in overlayfs lower/upper path.
The root cause is quite straightforward because overlayfs uses colon/comma as seperator of lowerdir layers and module options.
However, Colon/Comma characters are valid for directory name on linux so some people(especially container users) hope overlayfs
could correctly recognize and handle those directories.
Strengthen option parsing seems a right solution for fixing the issue, what do think for this?
Thanks,
Chengguang Xu
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Mount failure caused by colon/comma characters in the path of lower/upper dirs
2021-06-22 16:15 Mount failure caused by colon/comma characters in the path of lower/upper dirs Chengguang Xu
@ 2021-07-09 14:03 ` Miklos Szeredi
2021-07-10 14:22 ` Chengguang Xu
0 siblings, 1 reply; 3+ messages in thread
From: Miklos Szeredi @ 2021-07-09 14:03 UTC (permalink / raw)
To: Chengguang Xu; +Cc: linux-unionfs
On Tue, 22 Jun 2021 at 18:30, Chengguang Xu <cgxu519@mykernel.net> wrote:
>
> Hello,
>
> Today I got a mount failure report from a docker developer about special characters in overlayfs lower/upper path.
> The root cause is quite straightforward because overlayfs uses colon/comma as seperator of lowerdir layers and module options.
> However, Colon/Comma characters are valid for directory name on linux so some people(especially container users) hope overlayfs
> could correctly recognize and handle those directories.
>
> Strengthen option parsing seems a right solution for fixing the issue, what do think for this?
Use backslash as an escape character. E.g. lower directory named
"ab,cd:ef" needs to be passed to mount as "-olowerdir=ab\,cd\:ef"
Thanks,
Miklos
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Mount failure caused by colon/comma characters in the path of lower/upper dirs
2021-07-09 14:03 ` Miklos Szeredi
@ 2021-07-10 14:22 ` Chengguang Xu
0 siblings, 0 replies; 3+ messages in thread
From: Chengguang Xu @ 2021-07-10 14:22 UTC (permalink / raw)
To: Miklos Szeredi; +Cc: linux-unionfs
---- 在 星期五, 2021-07-09 22:03:11 Miklos Szeredi <miklos@szeredi.hu> 撰写 ----
> On Tue, 22 Jun 2021 at 18:30, Chengguang Xu <cgxu519@mykernel.net> wrote:
> >
> > Hello,
> >
> > Today I got a mount failure report from a docker developer about special characters in overlayfs lower/upper path.
> > The root cause is quite straightforward because overlayfs uses colon/comma as seperator of lowerdir layers and module options.
> > However, Colon/Comma characters are valid for directory name on linux so some people(especially container users) hope overlayfs
> > could correctly recognize and handle those directories.
> >
> > Strengthen option parsing seems a right solution for fixing the issue, what do think for this?
>
> Use backslash as an escape character. E.g. lower directory named
> "ab,cd:ef" needs to be passed to mount as "-olowerdir=ab\,cd\:ef"
>
Hi Miklos,
Thanks for your advice, it worked well.
Minor fix is "ab,cd:ef" needs to be passed to mount as "-olowerdir=ab\\,cd\\:ef"
Thanks,
Chengguang
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2021-07-10 14:22 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-06-22 16:15 Mount failure caused by colon/comma characters in the path of lower/upper dirs Chengguang Xu
2021-07-09 14:03 ` Miklos Szeredi
2021-07-10 14:22 ` Chengguang Xu
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).