branches: add per branch minfreespace w/ original value as default

example: /mnt/disk0=RW,1G:/mnt/disk1=RW,2G
This commit is contained in:
Antonio SJ Musumeci 2020-08-20 18:47:04 -04:00
parent 98c49b8001
commit fc3453932a
68 changed files with 3005 additions and 813 deletions

View file

@ -83,7 +83,6 @@ namespace l
symlink(Policy::Func::Search searchFunc_,
Policy::Func::Create createFunc_,
const Branches &branches_,
const uint64_t minfreespace_,
const char *oldpath_,
const char *newpath_)
{
@ -94,11 +93,11 @@ namespace l
newdirpath = fs::path::dirname(newpath_);
rv = searchFunc_(branches_,newdirpath,minfreespace_,&existingpaths);
rv = searchFunc_(branches_,newdirpath,&existingpaths);
if(rv == -1)
return -errno;
rv = createFunc_(branches_,newdirpath,minfreespace_,&newbasepaths);
rv = createFunc_(branches_,newdirpath,&newbasepaths);
if(rv == -1)
return -errno;
@ -120,7 +119,6 @@ namespace FUSE
return l::symlink(config.func.getattr.policy,
config.func.symlink.policy,
config.branches,
config.minfreespace,
oldpath_,
newpath_);
}