Browse Source

[core] fix ReFS no longer being available unless VDS is enabled

pull/2730/head
Pete Batard 4 months ago
parent
commit
871bc9a25f
No known key found for this signature in database GPG Key ID: 38E0CF5E69EDD671
  1. 5
      src/rufus.c
  2. 10
      src/rufus.rc

5
src/rufus.c

@ -405,11 +405,15 @@ static BOOL IsRefsAvailable(MEDIA_TYPE MediaType)
// Microsoft in Windows 10 1709, except for the Enterprise and Pro Workstation
// versions. Oh and VdsService::QueryFileSystemTypes() is *USELESS* to detect
// if ReFS is available on the system. Oh, and it only applies to fixed media.
// Oh and Microsoft removed the ability to format a volume to ReFS unless you
// use VDS... Why do I even bother with this?
if (MediaType != FixedMedia)
return FALSE;
if (WindowsVersion.Version < WINDOWS_8_1 || WindowsVersion.BuildNumber <= 0)
return FALSE;
if (!use_vds)
return FALSE;
// Per https://gist.github.com/0xbadfca11/da0598e47dd643d933dc
if (WindowsVersion.BuildNumber < 16226)
return TRUE;
@ -4051,6 +4055,7 @@ extern int TestHashes(void);
if ((msg.message == WM_SYSKEYDOWN) && (msg.wParam == 'V')) {
if (is_vds_available) {
use_vds = !use_vds;
SetFileSystemAndClusterSize(NULL);
WriteSettingBool(SETTING_USE_VDS, use_vds);
PrintStatusTimeout("VDS", use_vds);
}

10
src/rufus.rc

@ -33,7 +33,7 @@ LANGUAGE LANG_NEUTRAL, SUBLANG_NEUTRAL
IDD_DIALOG DIALOGEX 12, 12, 232, 326
STYLE DS_SETFONT | DS_MODALFRAME | DS_CENTER | WS_MINIMIZEBOX | WS_POPUP | WS_CAPTION | WS_SYSMENU
EXSTYLE WS_EX_ACCEPTFILES
CAPTION "Rufus 4.7.2228"
CAPTION "Rufus 4.7.2229"
FONT 9, "Segoe UI Symbol", 400, 0, 0x0
BEGIN
LTEXT "Drive Properties",IDS_DRIVE_PROPERTIES_TXT,8,6,53,12,NOT WS_GROUP
@ -407,8 +407,8 @@ END
//
VS_VERSION_INFO VERSIONINFO
FILEVERSION 4,7,2228,0
PRODUCTVERSION 4,7,2228,0
FILEVERSION 4,7,2229,0
PRODUCTVERSION 4,7,2229,0
FILEFLAGSMASK 0x3fL
#ifdef _DEBUG
FILEFLAGS 0x1L
@ -426,13 +426,13 @@ BEGIN
VALUE "Comments", "https://rufus.ie"
VALUE "CompanyName", "Akeo Consulting"
VALUE "FileDescription", "Rufus"
VALUE "FileVersion", "4.7.2228"
VALUE "FileVersion", "4.7.2229"
VALUE "InternalName", "Rufus"
VALUE "LegalCopyright", "© 2011-2025 Pete Batard (GPL v3)"
VALUE "LegalTrademarks", "https://www.gnu.org/licenses/gpl-3.0.html"
VALUE "OriginalFilename", "rufus-4.7.exe"
VALUE "ProductName", "Rufus"
VALUE "ProductVersion", "4.7.2228"
VALUE "ProductVersion", "4.7.2229"
END
END
BLOCK "VarFileInfo"

Loading…
Cancel
Save