Skip to content

Commit

Permalink
[ext2fs] re-enable the sparse_super feature
Browse files Browse the repository at this point in the history
* Closes #1516
* Also prevent protective message from being written in MBR mode
  • Loading branch information
pbatard committed Apr 21, 2020
1 parent 0e3658d commit cf52f61
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 9 deletions.
3 changes: 3 additions & 0 deletions src/format.c
Original file line number Diff line number Diff line change
Expand Up @@ -922,6 +922,9 @@ static BOOL WriteSBR(HANDLE hPhysicalDrive)
sub_type = BT_GRUB2;
} else if (partition_type == PARTITION_STYLE_GPT) {
sub_type = BT_NON_BOOTABLE;
} else {
// Needed to prevent protective message to be written for MBR mode
sub_type = BT_MAX;
}

switch (sub_type) {
Expand Down
6 changes: 2 additions & 4 deletions src/format_ext.c
Original file line number Diff line number Diff line change
Expand Up @@ -323,15 +323,13 @@ BOOL FormatExtFs(DWORD DriveIndex, uint64_t PartitionOffset, DWORD BlockSize, LP
uprintf("%lld blocks (%0.1f%%) reserved for the super user", ext2fs_r_blocks_count(&features), reserve_ratio * 100.0f);

// Set features
ext2fs_set_feature_xattr(&features);
// ext2fs_set_feature_resize_inode(&features);
ext2fs_set_feature_dir_index(&features);
ext2fs_set_feature_filetype(&features);
// ext2fs_set_feature_sparse_super(&features);
ext2fs_set_feature_large_file(&features);
ext2fs_set_feature_sparse_super(&features);
ext2fs_set_feature_xattr(&features);
if (FSName[3] != '2')
ext2fs_set_feature_journal(&features);
features.s_backup_bgs[0] = ~0;
features.s_default_mount_opts = EXT2_DEFM_XATTR_USER | EXT2_DEFM_ACL;

// Now that we have set our base features, initialize a virtual superblock
Expand Down
10 changes: 5 additions & 5 deletions src/rufus.rc
Original file line number Diff line number Diff line change
Expand Up @@ -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 3.10.1645"
CAPTION "Rufus 3.10.1646"
FONT 9, "Segoe UI Symbol", 400, 0, 0x0
BEGIN
LTEXT "Drive Properties",IDS_DRIVE_PROPERTIES_TXT,8,6,53,12,NOT WS_GROUP
Expand Down Expand Up @@ -395,8 +395,8 @@ END
//

VS_VERSION_INFO VERSIONINFO
FILEVERSION 3,10,1645,0
PRODUCTVERSION 3,10,1645,0
FILEVERSION 3,10,1646,0
PRODUCTVERSION 3,10,1646,0
FILEFLAGSMASK 0x3fL
#ifdef _DEBUG
FILEFLAGS 0x1L
Expand All @@ -414,13 +414,13 @@ BEGIN
VALUE "Comments", "https://rufus.ie"
VALUE "CompanyName", "Akeo Consulting"
VALUE "FileDescription", "Rufus"
VALUE "FileVersion", "3.10.1645"
VALUE "FileVersion", "3.10.1646"
VALUE "InternalName", "Rufus"
VALUE "LegalCopyright", "© 2011-2020 Pete Batard (GPL v3)"
VALUE "LegalTrademarks", "https://www.gnu.org/licenses/gpl-3.0.html"
VALUE "OriginalFilename", "rufus-3.10.exe"
VALUE "ProductName", "Rufus"
VALUE "ProductVersion", "3.10.1645"
VALUE "ProductVersion", "3.10.1646"
END
END
BLOCK "VarFileInfo"
Expand Down

0 comments on commit cf52f61

Please sign in to comment.