archive mirror
 help / color / mirror / Atom feed
From: Chengguang Xu <>
To: "Miklos Szeredi" <>
Cc: "linux-unionfs" <>
Subject: Re: Mount failure caused by colon/comma characters in the path of lower/upper dirs
Date: Sat, 10 Jul 2021 22:22:15 +0800	[thread overview]
Message-ID: <> (raw)
In-Reply-To: <>

---- 在 星期五, 2021-07-09 22:03:11 Miklos Szeredi <> 撰写 ----
 > On Tue, 22 Jun 2021 at 18:30, Chengguang Xu <> 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"


      reply	other threads:[~2021-07-10 14:22 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
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 message]

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:

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \ \ \ \ \

* 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).