mirror of
https://github.com/trapexit/mergerfs.git
synced 2026-10-19 16:16:48 +00:00
fs_inode cleanup
This commit is contained in:
committed by
trapexit
parent
21ce889449
commit
d09fadbc28
+12
-12
@@ -52,8 +52,8 @@ static
|
||||
u64
|
||||
_passthrough(const std::string &branch_path_,
|
||||
const std::string &fusepath_,
|
||||
const mode_t mode_,
|
||||
const ino_t ino_)
|
||||
const mode_t mode_,
|
||||
const ino_t ino_)
|
||||
{
|
||||
return ino_;
|
||||
}
|
||||
@@ -62,8 +62,8 @@ static
|
||||
u64
|
||||
_path_hash(const std::string &branch_path_,
|
||||
const std::string &fusepath_,
|
||||
const mode_t mode_,
|
||||
const ino_t ino_)
|
||||
const mode_t mode_,
|
||||
const ino_t ino_)
|
||||
{
|
||||
u64 seed;
|
||||
|
||||
@@ -76,8 +76,8 @@ static
|
||||
u64
|
||||
_path_hash32(const std::string &branch_path_,
|
||||
const std::string &fusepath_,
|
||||
const mode_t mode_,
|
||||
const ino_t ino_)
|
||||
const mode_t mode_,
|
||||
const ino_t ino_)
|
||||
{
|
||||
u64 h;
|
||||
|
||||
@@ -93,8 +93,8 @@ static
|
||||
u64
|
||||
_devino_hash(const std::string &branch_path_,
|
||||
const std::string &fusepath_,
|
||||
const mode_t mode_,
|
||||
const ino_t ino_)
|
||||
const mode_t mode_,
|
||||
const ino_t ino_)
|
||||
{
|
||||
u64 seed;
|
||||
|
||||
@@ -108,8 +108,8 @@ static
|
||||
u64
|
||||
_devino_hash32(const std::string &branch_path_,
|
||||
const std::string &fusepath_,
|
||||
const mode_t mode_,
|
||||
const ino_t ino_)
|
||||
const mode_t mode_,
|
||||
const ino_t ino_)
|
||||
{
|
||||
u64 h;
|
||||
|
||||
@@ -125,8 +125,8 @@ static
|
||||
u64
|
||||
_hybrid_hash(const std::string &branch_path_,
|
||||
const std::string &fusepath_,
|
||||
const mode_t mode_,
|
||||
const ino_t ino_)
|
||||
const mode_t mode_,
|
||||
const ino_t ino_)
|
||||
{
|
||||
return (S_ISDIR(mode_) ?
|
||||
::_path_hash(branch_path_,fusepath_,mode_,ino_) :
|
||||
|
||||
Reference in New Issue
Block a user