From 2bcddc680cf373f1259de4956543b4430cd99d9e Mon Sep 17 00:00:00 2001 From: Giuseppe Scrivano Date: Fri, 5 Oct 2018 12:47:23 +0200 Subject: [PATCH] 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 --- main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.c b/main.c index 7a5baff..fba7e7e 100644 --- a/main.c +++ b/main.c @@ -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. */