fuse-overlayfs: try alternative whiteout on ENOTSUP

if mknod fails with ENOTSUP then use the .wh.FILE variant.

Closes: https://github.com/containers/fuse-overlayfs/issues/17

Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
This commit is contained in:
Giuseppe Scrivano 2018-10-05 12:47:23 +02:00
parent 1c72a1af1a
commit 2bcddc680c
No known key found for this signature in database
GPG Key ID: E4730F97F60286ED

2
main.c
View File

@ -383,7 +383,7 @@ create_whiteout (struct ovl_data *lo, struct ovl_node *parent, const char *name,
if (ret == 0)
return 0;
if (errno != EPERM)
if (errno != EPERM && errno != ENOTSUP)
return -1;
/* if it fails with EPERM then do not attempt mknod again. */