mirror of
https://github.com/trapexit/mergerfs.git
synced 2026-11-19 14:36:36 -05:00
Change the "devino" inode calculation
Use hashing of branch path rather than use st_dev.
This commit is contained in:
parent
ad54c8be19
commit
77bf16e9ae
15 changed files with 1890 additions and 245 deletions
|
|
@ -77,7 +77,7 @@ namespace l
|
|||
static const time_t now = ::time(NULL);
|
||||
|
||||
st_->st_dev = 0;
|
||||
st_->st_ino = fs::inode::MAGIC;
|
||||
st_->st_ino = 0;
|
||||
st_->st_mode = (S_IFREG|S_IRUSR|S_IWUSR|S_IRGRP|S_IWGRP|S_IROTH);
|
||||
st_->st_nlink = 1;
|
||||
st_->st_uid = uid;
|
||||
|
|
@ -141,7 +141,7 @@ namespace l
|
|||
if(symlinkify_ && symlinkify::can_be_symlink(*st_,symlinkify_timeout_))
|
||||
symlinkify::convert(fullpath,st_);
|
||||
|
||||
fs::inode::calc(fusepath_,st_);
|
||||
fs::inode::calc(basepaths[0],fusepath_,st_);
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue