mirror of
https://github.com/trapexit/mergerfs.git
synced 2026-10-26 19:01:56 -04:00
use temp files (then rename) when moving files for moveonenospc
This commit is contained in:
parent
fa3ff40218
commit
aea2b40dda
4 changed files with 86 additions and 7 deletions
|
|
@ -218,6 +218,13 @@ namespace fs
|
|||
return ::fcntl(fd,F_GETFL,0);
|
||||
}
|
||||
|
||||
int
|
||||
setfl(const int fd,
|
||||
const mode_t mode)
|
||||
{
|
||||
return ::fcntl(fd,F_SETFL,mode);
|
||||
}
|
||||
|
||||
int
|
||||
mfs(const vector<string> &basepaths,
|
||||
const uint64_t minfreespace,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue