Skip to content
Commit b10b85fe authored by Miklos Szeredi's avatar Miklos Szeredi
Browse files

ovl: warn if trusted xattr creation fails



When mounting overlayfs in an unprivileged user namespace, trusted xattr
creation will fail.  This will lead to failures in some file operations,
e.g. in the following situation:

  mkdir lower upper work merged
  mkdir lower/directory
  mount -toverlay -olowerdir=lower,upperdir=upper,workdir=work none merged
  rmdir merged/directory
  mkdir merged/directory

The last mkdir will fail:

  mkdir: cannot create directory 'merged/directory': Input/output error

The cause for these failures is currently extremely non-obvious and hard to
debug.  Hence, warn the user and suggest using the userxattr mount option,
if it is not already supplied and xattr creation fails during the
self-check.

Reported-by: default avatarAlois Wohlschlager <alois1@gmx-topmail.de>
Signed-off-by: default avatarMiklos Szeredi <mszeredi@redhat.com>
parent e0dccc3b
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment