create different policies based on category of use

This commit is contained in:
Antonio SJ Musumeci
2015-06-30 23:35:28 -04:00
parent 51b6d3f647
commit 0c60701b29
23 changed files with 589 additions and 290 deletions

View File

@ -91,10 +91,9 @@ _rename(Policy::Func::Search searchFunc,
return -errno;
error = 0;
for(Paths::const_iterator
i = oldpaths.begin(), ei = oldpaths.end(); i != ei; ++i)
for(size_t i = 0, ei = oldpaths.size(); i != ei; i++)
{
rv = _single_rename(searchFunc,srcmounts,minfreespace,*i,newpath);
rv = _single_rename(searchFunc,srcmounts,minfreespace,oldpaths[i],newpath);
if(rv == -1)
error = errno;
}