mirror of
https://github.com/amadvance/snapraid.git
synced 2026-11-26 09:56:29 -05:00
Use the st_dev field to ensure to use different disks.
This commit is contained in:
parent
83f89f4f0e
commit
e80d0ccdcf
16 changed files with 222 additions and 50 deletions
16
mingw.h
16
mingw.h
|
|
@ -64,18 +64,24 @@ struct windows_stat {
|
|||
int64_t st_mtime;
|
||||
uint32_t st_mode;
|
||||
uint32_t st_nlink;
|
||||
uint32_t st_dev;
|
||||
};
|
||||
|
||||
/**
|
||||
* Like the C fstat() including the inode information.
|
||||
* Like the C fstat() including the inode/device information.
|
||||
*/
|
||||
int windows_fstat(int fd, struct windows_stat* st);
|
||||
|
||||
/**
|
||||
* Like the C stat() but without the inode information.
|
||||
* Like the C lstat() but without the inode information.
|
||||
*/
|
||||
int windows_lstat(const char* file, struct windows_stat* st);
|
||||
|
||||
/**
|
||||
* Like the C stat() including the inode/device information.
|
||||
*/
|
||||
int windows_stat(const char* file, struct windows_stat* st);
|
||||
|
||||
/**
|
||||
* Like the C access().
|
||||
*/
|
||||
|
|
@ -87,12 +93,12 @@ int windows_access(const char* file, int mode);
|
|||
int windows_mkdir(const char* file);
|
||||
|
||||
/**
|
||||
* Like the C lstat() including the inode information.
|
||||
* Like the C lstat() including the inode/device information.
|
||||
* It doesn't work for all kind of files and directories. For example "\System Volume Information" cannot be opened.
|
||||
* Note that instead lstat() works for all the files.
|
||||
*/
|
||||
#define HAVE_LSTAT_INODE 1
|
||||
int lstat_inode(const char* file, struct windows_stat* st);
|
||||
#define HAVE_LSTAT_EX 1
|
||||
int lstat_ex(const char* file, struct windows_stat* st);
|
||||
|
||||
/**
|
||||
* Like the C ftruncate().
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue