mirror of
https://github.com/trapexit/mergerfs.git
synced 2025-01-20 19:21:02 +08:00
restructure fadvise
This commit is contained in:
parent
581356a0c3
commit
9d0798dbfb
|
@ -17,7 +17,7 @@
|
|||
#include <fcntl.h>
|
||||
|
||||
#if _XOPEN_SOURCE >= 600 || _POSIX_C_SOURCE >= 200112L
|
||||
# include "fs_fadvise_posix.icpp"
|
||||
# include "fs_base_fadvise_posix.icpp"
|
||||
#else
|
||||
# include "fs_fadvise_unsupported.icpp"
|
||||
# include "fs_base_fadvise_unsupported.icpp"
|
||||
#endif
|
|
@ -14,6 +14,8 @@
|
|||
OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
||||
*/
|
||||
|
||||
#include <fcntl.h>
|
||||
|
||||
#include "errno.hpp"
|
||||
|
||||
namespace fs
|
|
@ -25,6 +25,7 @@
|
|||
#include "fs_base_chmod.hpp"
|
||||
#include "fs_base_chown.hpp"
|
||||
#include "fs_base_close.hpp"
|
||||
#include "fs_base_fadvise.hpp"
|
||||
#include "fs_base_fallocate.hpp"
|
||||
#include "fs_base_lseek.hpp"
|
||||
#include "fs_base_mkdir.hpp"
|
||||
|
@ -33,7 +34,6 @@
|
|||
#include "fs_base_stat.hpp"
|
||||
#include "fs_base_utime.hpp"
|
||||
#include "fs_base_write.hpp"
|
||||
#include "fs_fadvise.hpp"
|
||||
#include "fs_sendfile.hpp"
|
||||
#include "fs_xattr.hpp"
|
||||
|
||||
|
|
|
@ -22,7 +22,7 @@
|
|||
#include "errno.hpp"
|
||||
#include "fileinfo.hpp"
|
||||
#include "fs_base_close.hpp"
|
||||
#include "fs_fadvise.hpp"
|
||||
#include "fs_base_fadvise.hpp"
|
||||
|
||||
static
|
||||
int
|
||||
|
|
Loading…
Reference in New Issue
Block a user