Re: Mount failure caused by colon/comma characters in the path of lower/upper dirs

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Tue, 22 Jun 2021 at 18:30, Chengguang Xu <cgxu519@xxxxxxxxxxxx> 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



[Index of Archives]     [Linux Filesystems Devel]     [Linux NFS]     [Linux NILFS]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux