Skip to content

Commit 871bc9a

Browse files
committed
[core] fix ReFS no longer being available unless VDS is enabled
1 parent fdde687 commit 871bc9a

File tree

2 files changed

+10
-5
lines changed

2 files changed

+10
-5
lines changed

src/rufus.c

+5
Original file line numberDiff line numberDiff line change
@@ -405,11 +405,15 @@ static BOOL IsRefsAvailable(MEDIA_TYPE MediaType)
405405
// Microsoft in Windows 10 1709, except for the Enterprise and Pro Workstation
406406
// versions. Oh and VdsService::QueryFileSystemTypes() is *USELESS* to detect
407407
// if ReFS is available on the system. Oh, and it only applies to fixed media.
408+
// Oh and Microsoft removed the ability to format a volume to ReFS unless you
409+
// use VDS... Why do I even bother with this?
408410

409411
if (MediaType != FixedMedia)
410412
return FALSE;
411413
if (WindowsVersion.Version < WINDOWS_8_1 || WindowsVersion.BuildNumber <= 0)
412414
return FALSE;
415+
if (!use_vds)
416+
return FALSE;
413417
// Per https://gist.github.com/0xbadfca11/da0598e47dd643d933dc
414418
if (WindowsVersion.BuildNumber < 16226)
415419
return TRUE;
@@ -4051,6 +4055,7 @@ extern int TestHashes(void);
40514055
if ((msg.message == WM_SYSKEYDOWN) && (msg.wParam == 'V')) {
40524056
if (is_vds_available) {
40534057
use_vds = !use_vds;
4058+
SetFileSystemAndClusterSize(NULL);
40544059
WriteSettingBool(SETTING_USE_VDS, use_vds);
40554060
PrintStatusTimeout("VDS", use_vds);
40564061
}

src/rufus.rc

+5-5
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ LANGUAGE LANG_NEUTRAL, SUBLANG_NEUTRAL
3333
IDD_DIALOG DIALOGEX 12, 12, 232, 326
3434
STYLE DS_SETFONT | DS_MODALFRAME | DS_CENTER | WS_MINIMIZEBOX | WS_POPUP | WS_CAPTION | WS_SYSMENU
3535
EXSTYLE WS_EX_ACCEPTFILES
36-
CAPTION "Rufus 4.7.2228"
36+
CAPTION "Rufus 4.7.2229"
3737
FONT 9, "Segoe UI Symbol", 400, 0, 0x0
3838
BEGIN
3939
LTEXT "Drive Properties",IDS_DRIVE_PROPERTIES_TXT,8,6,53,12,NOT WS_GROUP
@@ -407,8 +407,8 @@ END
407407
//
408408

409409
VS_VERSION_INFO VERSIONINFO
410-
FILEVERSION 4,7,2228,0
411-
PRODUCTVERSION 4,7,2228,0
410+
FILEVERSION 4,7,2229,0
411+
PRODUCTVERSION 4,7,2229,0
412412
FILEFLAGSMASK 0x3fL
413413
#ifdef _DEBUG
414414
FILEFLAGS 0x1L
@@ -426,13 +426,13 @@ BEGIN
426426
VALUE "Comments", "https://rufus.ie"
427427
VALUE "CompanyName", "Akeo Consulting"
428428
VALUE "FileDescription", "Rufus"
429-
VALUE "FileVersion", "4.7.2228"
429+
VALUE "FileVersion", "4.7.2229"
430430
VALUE "InternalName", "Rufus"
431431
VALUE "LegalCopyright", "� 2011-2025 Pete Batard (GPL v3)"
432432
VALUE "LegalTrademarks", "https://www.gnu.org/licenses/gpl-3.0.html"
433433
VALUE "OriginalFilename", "rufus-4.7.exe"
434434
VALUE "ProductName", "Rufus"
435-
VALUE "ProductVersion", "4.7.2228"
435+
VALUE "ProductVersion", "4.7.2229"
436436
END
437437
END
438438
BLOCK "VarFileInfo"

0 commit comments

Comments
 (0)