mirror of
https://github.com/trapexit/mergerfs.git
synced 2026-11-26 09:56:28 -05:00
Add readdir policies
This commit is contained in:
parent
d817fa4e97
commit
c92a10021e
22 changed files with 1077 additions and 172 deletions
|
|
@ -19,6 +19,7 @@
|
|||
#pragma once
|
||||
|
||||
#include "fs_fstat.hpp"
|
||||
#include "fs_dirfd.hpp"
|
||||
|
||||
|
||||
namespace fs
|
||||
|
|
@ -37,4 +38,16 @@ namespace fs
|
|||
|
||||
return st.st_dev;
|
||||
}
|
||||
|
||||
static
|
||||
inline
|
||||
dev_t
|
||||
devid(DIR *dh_)
|
||||
{
|
||||
int dirfd;
|
||||
|
||||
dirfd = fs::dirfd(dh_);
|
||||
|
||||
return fs::devid(dirfd);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue