mirror of
https://github.com/aaru-dps/fstester.git
synced 2025-12-16 19:24:39 +00:00
Add two new volume flags for win32.
This commit is contained in:
@@ -361,6 +361,18 @@ void GetVolumeInfo(const char *path, size_t *clusterSize)
|
|||||||
dwFileSystemFlags -= FILE_VOLUME_QUOTAS;
|
dwFileSystemFlags -= FILE_VOLUME_QUOTAS;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if(dwFileSystemFlags & (DWORD)FILE_RETURNS_CLEANUP_RESULT_INFO)
|
||||||
|
{
|
||||||
|
printf("\t\tOn a clean operation, volume returns additional information.\n");
|
||||||
|
dwFileSystemFlags -= FILE_RETURNS_CLEANUP_RESULT_INFO;
|
||||||
|
}
|
||||||
|
|
||||||
|
if(dwFileSystemFlags & (DWORD)FILE_SUPPORTS_POSIX_UNLINK_RENAME)
|
||||||
|
{
|
||||||
|
printf("\t\tVolume supports POSIX-style delete and rename operations.\n");
|
||||||
|
dwFileSystemFlags -= FILE_SUPPORTS_POSIX_UNLINK_RENAME;
|
||||||
|
}
|
||||||
|
|
||||||
if(dwFileSystemFlags > 0) printf("Unknown flags: 0x%08lx.\n", dwFileSystemFlags);
|
if(dwFileSystemFlags > 0) printf("Unknown flags: 0x%08lx.\n", dwFileSystemFlags);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -49,10 +49,6 @@ Copyright (C) 2011-2020 Natalia Portillo
|
|||||||
#define VER_PLATFORM_WIN32_NT 2
|
#define VER_PLATFORM_WIN32_NT 2
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifndef VER_PLATFORM_WIN32_NT
|
|
||||||
#define VER_PLATFORM_WIN32_NT 2
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifndef FILE_CASE_PRESERVED_NAMES
|
#ifndef FILE_CASE_PRESERVED_NAMES
|
||||||
#define FILE_CASE_PRESERVED_NAMES 0x00000002
|
#define FILE_CASE_PRESERVED_NAMES 0x00000002
|
||||||
#endif
|
#endif
|
||||||
@@ -173,6 +169,14 @@ Copyright (C) 2011-2020 Natalia Portillo
|
|||||||
#define FSCTL_SET_COMPRESSION 0x9C040
|
#define FSCTL_SET_COMPRESSION 0x9C040
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#ifndef FILE_RETURNS_CLEANUP_RESULT_INFO
|
||||||
|
#define FILE_RETURNS_CLEANUP_RESULT_INFO 0x00000200
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#ifndef FILE_SUPPORTS_POSIX_UNLINK_RENAME
|
||||||
|
#define FILE_SUPPORTS_POSIX_UNLINK_RENAME 0x00000400
|
||||||
|
#endif
|
||||||
|
|
||||||
#ifndef COMPRESSION_FORMAT_DEFAULT
|
#ifndef COMPRESSION_FORMAT_DEFAULT
|
||||||
#define COMPRESSION_FORMAT_DEFAULT 1
|
#define COMPRESSION_FORMAT_DEFAULT 1
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
Reference in New Issue
Block a user