mirror of
https://github.com/trapexit/mergerfs.git
synced 2026-12-03 21:30:11 -05:00
Merge pull request #534 from trapexit/xattr
change xattr setting notsup to nosys
This commit is contained in:
commit
3c1f19e85a
5 changed files with 16 additions and 17 deletions
|
|
@ -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";
|
||||
|
|
|
|||
|
|
@ -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"
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue