Skip to content

Commit

Permalink
ovl: return EIO on internal error
Browse files Browse the repository at this point in the history
EIO better represents an internal error than ENOENT.

Signed-off-by: Miklos Szeredi <mszeredi@redhat.com>
  • Loading branch information
Miklos Szeredi committed May 31, 2018
1 parent f73cc77 commit dd8ac69
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fs/overlayfs/dir.c
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,7 @@ struct dentry *ovl_create_real(struct inode *dir, struct dentry *newdentry,
* Not quite sure if non-instantiated dentry is legal or not.
* VFS doesn't seem to care so check and warn here.
*/
err = -ENOENT;
err = -EIO;
}
out:
if (err) {
Expand Down

0 comments on commit dd8ac69

Please sign in to comment.