kcoreaddons: fix KFileSystemType::Ext4 → Other (Ext4 not in enum)

This commit is contained in:
2026-07-10 03:43:41 +03:00
parent 2c581ed70b
commit 0cdc335e2c
@@ -260,10 +260,10 @@ KFileSystemType::Type determineFileSystemTypeImpl(const QByteArray &path)
switch (fs_magic) {
case 0x00534658: // 'XFS\0' little-endian — redoxfs
case 1: // redoxfs scheme id
return KFileSystemType::Ext4; // closest common type for user display
return KFileSystemType::Other; // RedoxFS — "normal" local filesystem
case 2: // ext4 scheme id
case 0xEF53: // EXT4_SUPER_MAGIC
return KFileSystemType::Ext4;
return KFileSystemType::Other;
case 3: // FAT scheme id
case 0x4d44: // MSDOS_SUPER_MAGIC
return KFileSystemType::Ntfs; // FAT has no KFileSystemType entry