mirror of
https://github.com/winfsp/winfsp.git
synced 2025-07-26 20:42:50 -05:00
inc: winfsp.hpp: default VolumeParams are same as in C API
This commit is contained in:
@@ -30,8 +30,7 @@
|
|||||||
#define FSP_CPP_EXCEPTION_GUARD_VOID(...)\
|
#define FSP_CPP_EXCEPTION_GUARD_VOID(...)\
|
||||||
try { __VA_ARGS__ } catch (...) { self->ExceptionHandler(); return; }
|
try { __VA_ARGS__ } catch (...) { self->ExceptionHandler(); return; }
|
||||||
|
|
||||||
namespace Fsp
|
namespace Fsp {
|
||||||
{
|
|
||||||
|
|
||||||
inline NTSTATUS Initialize()
|
inline NTSTATUS Initialize()
|
||||||
{
|
{
|
||||||
@@ -68,12 +67,6 @@ public:
|
|||||||
FileSystem() : _VolumeParams(), _FileSystem(0)
|
FileSystem() : _VolumeParams(), _FileSystem(0)
|
||||||
{
|
{
|
||||||
Initialize();
|
Initialize();
|
||||||
_VolumeParams.SectorSize = 4096;
|
|
||||||
_VolumeParams.SectorsPerAllocationUnit = 1;
|
|
||||||
_VolumeParams.MaxComponentLength = 255;
|
|
||||||
_VolumeParams.FileInfoTimeout = 1000;
|
|
||||||
GetSystemTimeAsFileTime((PFILETIME)&_VolumeParams.VolumeCreationTime);
|
|
||||||
_VolumeParams.VolumeSerialNumber = (UINT32)(_VolumeParams.VolumeCreationTime / (10000 * 1000));
|
|
||||||
_VolumeParams.UmFileContextIsFullContext = 1;
|
_VolumeParams.UmFileContextIsFullContext = 1;
|
||||||
}
|
}
|
||||||
virtual ~FileSystem()
|
virtual ~FileSystem()
|
||||||
|
Reference in New Issue
Block a user