mirror of
https://github.com/amadvance/snapraid.git
synced 2026-12-04 13:50:09 -05:00
Adds a check to avoid to use FUSE filesystem.
This commit is contained in:
parent
181c8e71cf
commit
1e4bc72098
5 changed files with 84 additions and 3 deletions
18
portable.h
18
portable.h
|
|
@ -107,6 +107,14 @@
|
|||
#include <sys/stat.h>
|
||||
#endif
|
||||
|
||||
#if HAVE_SYS_VFS_H
|
||||
#include <sys/vfs.h>
|
||||
#endif
|
||||
|
||||
#if HAVE_SYS_STATFS_H
|
||||
#include <sys/statfs.h>
|
||||
#endif
|
||||
|
||||
#if HAVE_GETOPT_H
|
||||
#include <getopt.h>
|
||||
#endif
|
||||
|
|
@ -173,6 +181,16 @@ int devuuid(uint64_t device, char* uuid, size_t size);
|
|||
*/
|
||||
int filephy(const char* path, struct stat* st, uint64_t* physical);
|
||||
|
||||
/* Types of filesystem */
|
||||
#define FSTYPE_UNKNOWN 0
|
||||
#define FSTYPE_FUSE 1
|
||||
|
||||
/**
|
||||
* Get the filesystem type.
|
||||
* Returns -1 on error or one of the FSTYPE define.
|
||||
*/
|
||||
int fstype(const char* path);
|
||||
|
||||
/**
|
||||
* Initializes the system.
|
||||
*/
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue