mirror of
https://github.com/trapexit/mergerfs.git
synced 2026-11-21 23:46:26 -05:00
refactor and simplify getxattr for user.mergerfs.\*
This commit is contained in:
parent
22d254e8df
commit
8178bf518c
3 changed files with 75 additions and 38 deletions
|
|
@ -139,4 +139,12 @@ namespace str
|
|||
++si;
|
||||
}
|
||||
}
|
||||
|
||||
bool
|
||||
isprefix(const string &s0,
|
||||
const string &s1)
|
||||
{
|
||||
return ((s0.size() >= s1.size()) &&
|
||||
(s0.compare(0,s1.size(),s1) == 0));
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue