mirror of
https://github.com/containers/fuse-overlayfs.git
synced 2025-09-12 16:57:05 -04:00
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:
parent
1c72a1af1a
commit
2bcddc680c
2
main.c
2
main.c
@ -383,7 +383,7 @@ create_whiteout (struct ovl_data *lo, struct ovl_node *parent, const char *name,
|
|||||||
if (ret == 0)
|
if (ret == 0)
|
||||||
return 0;
|
return 0;
|
||||||
|
|
||||||
if (errno != EPERM)
|
if (errno != EPERM && errno != ENOTSUP)
|
||||||
return -1;
|
return -1;
|
||||||
|
|
||||||
/* if it fails with EPERM then do not attempt mknod again. */
|
/* if it fails with EPERM then do not attempt mknod again. */
|
||||||
|
Loading…
x
Reference in New Issue
Block a user