mirror of
https://github.com/trapexit/mergerfs.git
synced 2026-11-20 06:56:27 -05:00
general code cleanup
This commit is contained in:
parent
5a1a60742e
commit
9d9ee7b71d
178 changed files with 5100 additions and 5255 deletions
|
|
@ -25,20 +25,17 @@ namespace fs
|
|||
{
|
||||
namespace inode
|
||||
{
|
||||
enum
|
||||
{
|
||||
MAGIC = 0x7472617065786974
|
||||
};
|
||||
static const uint64_t MAGIC = 0x7472617065786974;
|
||||
|
||||
inline
|
||||
void
|
||||
recompute(struct stat &st)
|
||||
recompute(struct stat *st_)
|
||||
{
|
||||
// not ideal to do this at runtime but likely gets optimized out
|
||||
if(sizeof(st.st_ino) == 4)
|
||||
st.st_ino |= ((uint32_t)st.st_dev << 16);
|
||||
/* not ideal to do this at runtime but likely gets optimized out */
|
||||
if(sizeof(st_->st_ino) == 4)
|
||||
st_->st_ino |= ((uint32_t)st_->st_dev << 16);
|
||||
else
|
||||
st.st_ino |= ((uint64_t)st.st_dev << 32);
|
||||
st_->st_ino |= ((uint64_t)st_->st_dev << 32);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue