Skip to content

Commit

Permalink
Merge pull request #19 from giuseppe/whiteout-enotsup
Browse files Browse the repository at this point in the history
fuse-overlayfs: try alternative whiteout on ENOTSUP
  • Loading branch information
giuseppe authored Oct 16, 2018
2 parents c33f7d4 + 36099f4 commit 5e0b422
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ addons:
- xz-utils
- python3.5
- g++
- python3-setuptools
before_install:
- sudo mkdir -p /lower /upper /mnt
- (cd /; sudo git clone https://github.com/amir73il/unionmount-testsuite.git)
Expand Down
2 changes: 1 addition & 1 deletion main.c
Original file line number Diff line number Diff line change
Expand Up @@ -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. */
Expand Down

0 comments on commit 5e0b422

Please sign in to comment.