-
Notifications
You must be signed in to change notification settings - Fork 1
/
inode.h
28 lines (22 loc) · 801 Bytes
/
inode.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
#ifndef INODE_H_INCLUDED
#define INODE_H_INCLUDED
#include <windows.h>
#include "dokan.h"
#include "internal.h"
int MxfsReadInode(MINIX_FS *FileSys, int FileIdx, minix_inode *Result);
int MxfsWriteInode(MINIX_FS *FileSys, int FileIdx, minix_inode *Result);
int MxfsAllocZone(MINIX_FS *FileSys);
int MxfsGetBlockFromFileOffset(MINIX_FS *FileSys, unsigned FileIdx, minix_inode *FileInfo, unsigned Offset, BOOL Alloc);
int DOKAN_CALLBACK MxfsSetEndOfFile(
LPCWSTR FileName,
LONGLONG Length,
PDOKAN_FILE_INFO FileInfo);
FORCEINLINE int MxfsZoneFromBit(MINIX_FS *FileSys, unsigned Bit)
{
return FileSys->Super.s_firstdatazone + Bit - 1;
}
FORCEINLINE int MxfsBitFromZone(MINIX_FS *FileSys, unsigned Zone)
{
return Zone - FileSys->Super.s_firstdatazone + 1;
}
#endif // INODE_H_INCLUDED