[lxc-devel] [PATCH] Check for symlinks before attempting create.

William Dauchy wdauchy at gmail.com
Fri Apr 25 19:32:13 UTC 2014


On Fri, Apr 25, 2014 at 6:06 PM, Michael H. Warfield <mhw at wittsend.com> wrote:
> Check for symlinks before attempting create.
>
> When attempting to create the compulsory symlinks in /dev,
> check for the existence of the link using stat first before
> blindly attempting to create the link.
>
> This works around an apparent quirk in the kernel VFS on read-only
> file systems where the returned error code might be EEXIST or EROFS
> depending on previous access to the /dev directory and its entries.
>
> Signed-off-by: Michael H. Warfield <mhw at WittsEnd.com>

Reported-by: William Dauchy <william at gandi.net>
Tested-by: William Dauchy <william at gandi.net>

-- 
William


More information about the lxc-devel mailing list