Merge pull request #534 from trapexit/xattr

change xattr setting notsup to nosys
This commit is contained in:
trapexit 2018-11-19 23:32:07 -05:00 • committed by GitHub
commit 3c1f19e85a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 16 additions and 17 deletions

View file

@ -161,8 +161,8 @@ _getxattr_controlfile_errno(const int errno_,
case ENOATTR:
attrvalue = "noattr";
break;
case ENOTSUP:
attrvalue = "notsup";
case ENOSYS:
attrvalue = "nosys";
break;
default:
attrvalue = "ERROR";

View file

@ -160,8 +160,8 @@ parse_and_process_errno(const std::string &value_,
{
if(value_ == "passthrough")
errno_ = 0;
else if(value_ == "notsup")
errno_ = ENOTSUP;
else if(value_ == "nosys")
errno_ = ENOSYS;
else if(value_ == "noattr")
errno_ = ENOATTR;
else
@ -365,11 +365,11 @@ usage(void)
" -o security_capability=<bool>\n"
" When disabled return ENOATTR when the xattr\n"
" security.capability is queried. default = true\n"
" -o xattr=passthrough|noattr|notsup\n"
" -o xattr=passthrough|noattr|nosys\n"
" Runtime control of xattrs. By default xattr\n"
" requests will pass through to the underlying\n"
" filesystems. notattr will short circuit as if\n"
" nothing exists. notsup will respond as if not\n"
" nothing exists. nosys will respond as if not\n"
" supported or disabled. default = passthrough\n"
" -o statfs=base|full When set to 'base' statfs will use all branches\n"
" when performing statfs calculations. 'full' will\n"

View file

@ -169,8 +169,8 @@ _setxattr_xattr(const string &attrval_,
xattr_ = 0;
else if(attrval_ == "noattr")
xattr_ = ENOATTR;
else if(attrval_ == "notsup")
xattr_ = ENOTSUP;
else if(attrval_ == "nosys")
xattr_ = ENOSYS;
else
return -EINVAL;