mirror of
https://github.com/trapexit/mergerfs.git
synced 2026-11-25 09:26:25 -05: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
|
|
@ -20,6 +20,7 @@
|
|||
#include <string>
|
||||
#include <vector>
|
||||
|
||||
#include <fcntl.h>
|
||||
#include <stdint.h>
|
||||
|
||||
namespace fs
|
||||
|
|
@ -59,6 +60,8 @@ namespace fs
|
|||
void realpathize(vector<string> &strs);
|
||||
|
||||
int getfl(const int fd);
|
||||
int setfl(const int fd,
|
||||
const mode_t mode);
|
||||
|
||||
int mfs(const vector<string> &srcs,
|
||||
const uint64_t minfreespace,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue