Adds a check to avoid to use FUSE filesystem.

This commit is contained in:
Andrea Mazzoleni 2013-08-25 22:39:58 +02:00
parent 181c8e71cf
commit 1e4bc72098
5 changed files with 84 additions and 3 deletions

View file

@ -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.
*/