sys & dll: Added FlushOnCleanup volume param

This commit is contained in:
ethan
2025-06-20 14:56:01 +08:00
parent ddca7bd548
commit c8e182e1d4
6 changed files with 26 additions and 2 deletions

View File

@@ -250,7 +250,8 @@ enum
UINT32 StreamInfoTimeout; /* stream info timeout (millis); overrides FileInfoTimeout */\
UINT32 EaTimeout; /* EA timeout (millis); overrides FileInfoTimeout */\
UINT32 FsextControlCode;\
UINT32 Reserved32[1];\
UINT32 FlushOnCleanup:1;\
UINT32 Reserved32:31;\
UINT64 Reserved64[2];
typedef struct
{

View File

@@ -620,6 +620,14 @@ public:
{
_VolumeParams.FlushAndPurgeOnCleanup = !!FlushAndPurgeOnCleanup;
}
BOOLEAN FlushOnCleanup()
{
return _VolumeParams.FlushOnCleanup;
}
VOID SetFlushOnCleanup(BOOLEAN FlushOnCleanup)
{
_VolumeParams.FlushOnCleanup = !!FlushOnCleanup;
}
PWSTR Prefix()
{
return _VolumeParams.Prefix;