mirror of
https://github.com/amadvance/snapraid.git
synced 2026-12-03 05:10:16 -05:00
Adds support for hardlinks.
This commit is contained in:
parent
a5aa964f8f
commit
501e8e7ec3
2 changed files with 11 additions and 3 deletions
|
|
@ -132,6 +132,7 @@ struct windows_stat {
|
|||
int64_t st_size;
|
||||
int64_t st_mtime;
|
||||
uint32_t st_mode;
|
||||
uint32_t st_nlink;
|
||||
};
|
||||
|
||||
/**
|
||||
|
|
@ -167,6 +168,8 @@ static inline void windows_info2stat(const BY_HANDLE_FILE_INFORMATION* info, str
|
|||
st->st_ino = info->nFileIndexHigh;
|
||||
st->st_ino <<= 32;
|
||||
st->st_ino |= info->nFileIndexLow;
|
||||
|
||||
st->st_nlink = info->nNumberOfLinks;
|
||||
}
|
||||
|
||||
static inline int windows_fstat(int fd, struct windows_stat* st)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue