mirror of
https://github.com/trapexit/mergerfs.git
synced 2026-10-26 19:01:56 -04:00
Improve mount waiting + misc doc improvements
Adds user.mergerfs.branch and user.mergerfs.branch_mounts_here Adds .mergerfs.branch and .mergerfs.branch_mounts_here files.
This commit is contained in:
parent
212681ddc5
commit
de2a82800a
26 changed files with 583 additions and 212 deletions
|
|
@ -30,7 +30,7 @@
|
|||
#define PAD_LEN 16
|
||||
#define MAX_ATTEMPTS 3
|
||||
|
||||
static char const CHARS[] = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz";
|
||||
static char const CHARS[] = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz";
|
||||
static size_t const CHARS_SIZE = (sizeof(CHARS) - 1);
|
||||
|
||||
|
||||
|
|
@ -57,8 +57,8 @@ namespace l
|
|||
namespace fs
|
||||
{
|
||||
std::tuple<int,std::string>
|
||||
mktemp_in_dir(std::string const dirpath_,
|
||||
int const flags_)
|
||||
mktemp_in_dir(const std::string dirpath_,
|
||||
const int flags_)
|
||||
{
|
||||
int fd;
|
||||
int count;
|
||||
|
|
@ -85,10 +85,10 @@ namespace fs
|
|||
}
|
||||
|
||||
std::tuple<int,std::string>
|
||||
mktemp(std::string const filepath_,
|
||||
int const flags_)
|
||||
mktemp(const std::string filepath_,
|
||||
const int flags_)
|
||||
{
|
||||
ghc::filesystem::path filepath{filepath_};
|
||||
fs::Path filepath{filepath_};
|
||||
|
||||
return fs::mktemp_in_dir(filepath.parent_path(),flags_);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue