mirror of
https://github.com/amadvance/snapraid.git
synced 2026-11-30 11:56:33 -05:00
Marks FUSE filesystem as with not persistent inodes,
disabling inode use in such case.
This commit is contained in:
parent
4fb96c0dec
commit
e4e13a669b
8 changed files with 65 additions and 35 deletions
10
portable.h
10
portable.h
|
|
@ -181,15 +181,11 @@ 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.
|
||||
* Checks if the underline filesystem support persistent inodes.
|
||||
* Returns -1 on error, 0 on success.
|
||||
*/
|
||||
int fstype(const char* path);
|
||||
int fsinfo(const char* path, int* has_persistent_inode);
|
||||
|
||||
/**
|
||||
* Initializes the system.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue