optimize link_cow eligibility check

This commit is contained in:
Antonio SJ Musumeci 2019-01-04 10:21:28 -05:00
parent 90e422c113
commit 10f7f8bdea
2 changed files with 21 additions and 5 deletions

View file

@ -25,7 +25,10 @@ namespace fs
{
namespace cow
{
bool is_eligible(const int flags_);
bool is_eligible(const struct stat &st_);
bool is_eligible(const int flags_, const struct stat &st_);
bool is_eligible(const char *fullpath_, const int flags_);
int break_link(const char *fullpath_);