Skip to content

Commit f4f4eb1

Browse files
committed
Recognize 'Linux Filesystem' partition type as supported
1 parent 29d19f5 commit f4f4eb1

2 files changed

Lines changed: 9 additions & 2 deletions

File tree

CHANGELOG.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,10 @@ All notable changes to this project will be documented in this file.
55
## [0.1.7] - 2025-01-27
66

77
### Fixed
8-
- Disk detection now merges native and macOS fallback results
8+
- Disk detection now merges native and MS fallback results
99
- Linux-only cards now properly detected (not filtered by -m flag)
10-
- Cards with broken GUID tables still work via macOS fallback
10+
- Cards with broken GUID tables still work via MS fallback
11+
- "Linux Filesystem" partition type now recognized as supported
1112

1213
## [0.1.6] - 2025-01-27
1314

src-tauri/src/commands/disk.rs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -262,6 +262,7 @@ fn is_linux_native_fs(fs: &str) -> bool {
262262
|| fs_lower.contains("btrfs") || fs_lower.contains("xfs") || fs_lower.contains("f2fs")
263263
|| fs_lower.contains("reiserfs") || fs_lower.contains("zfs")
264264
|| fs_lower.contains("ntfs") || fs_lower.contains("exfat")
265+
|| fs_lower == "linux filesystem"
265266
}
266267

267268
fn get_diskutil_fs_info(device_id: &str) -> Option<(String, bool, Option<String>)> {
@@ -298,6 +299,11 @@ fn check_filesystem_support(fs: &str) -> (bool, Option<String>) {
298299
return (true, None);
299300
}
300301

302+
// Generic "Linux Filesystem" from GPT partition type (native anylinuxfs detection)
303+
if fs_lower == "linux filesystem" {
304+
return (true, Some("Linux partition (use admin mode for exact fs type)".to_string()));
305+
}
306+
301307
// FAT filesystems - well supported
302308
if fs_lower.contains("fat32") || fs_lower.contains("fat16") || fs_lower.contains("exfat") {
303309
return (true, None);

0 commit comments

Comments
 (0)