diff --git a/include/Utils.h b/include/Utils.h index 0e0e6865..9eed1e52 100644 --- a/include/Utils.h +++ b/include/Utils.h @@ -96,18 +96,19 @@ enum FSType // Other recognised file system types FS_APFS = 28, FS_ATARAID = 29, - FS_BITLOCKER = 30, - FS_GRUB2_CORE_IMG = 31, - FS_ISO9660 = 32, - FS_LINUX_SWRAID = 33, - FS_LINUX_SWSUSPEND = 34, - FS_REFS = 35, - FS_UFS = 36, - FS_ZFS = 37, + FS_BCACHE = 30, + FS_BITLOCKER = 31, + FS_GRUB2_CORE_IMG = 32, + FS_ISO9660 = 33, + FS_LINUX_SWRAID = 34, + FS_LINUX_SWSUSPEND = 35, + FS_REFS = 36, + FS_UFS = 37, + FS_ZFS = 38, // Partition space usage colours - FS_USED = 38, - FS_UNUSED = 39 + FS_USED = 39, + FS_UNUSED = 40 } ; enum SIZE_UNIT diff --git a/src/GParted_Core.cc b/src/GParted_Core.cc index 4ad347de..343e7709 100644 --- a/src/GParted_Core.cc +++ b/src/GParted_Core.cc @@ -1323,6 +1323,8 @@ FSType GParted_Core::detect_filesystem(const PedDevice *lp_device, const PedPart return FS_UFS; else if ( fsname == "apfs" ) return FS_APFS; + else if (fsname == "bcache") + return FS_BCACHE; else if ( fsname == "BitLocker" ) return FS_BITLOCKER; else if ( fsname == "iso9660" ) diff --git a/src/Utils.cc b/src/Utils.cc index b59c22a0..6a1c181b 100644 --- a/src/Utils.cc +++ b/src/Utils.cc @@ -179,6 +179,7 @@ Glib::ustring Utils::get_color(FSType fstype) case FS_XFS: return "#EED680"; // Accent Yellow case FS_APFS: return "#874986"; // Magenta Dark [*] case FS_ATARAID: return "#5A4733"; // Brown Dark [+] + case FS_BCACHE: return "#E0C39E"; // Face Skin Medium case FS_BITLOCKER: return "#494066"; // Purple Shadow case FS_GRUB2_CORE_IMG: return "#666666"; // Dark Gray [*] case FS_ISO9660: return "#D3D3D3"; // Light Gray [*] @@ -371,6 +372,7 @@ const Glib::ustring Utils::get_filesystem_string(FSType fstype) case FS_XFS: return "xfs"; case FS_APFS: return "apfs"; case FS_ATARAID: return "ataraid"; + case FS_BCACHE: return "bcache"; case FS_BITLOCKER: return "bitlocker"; case FS_GRUB2_CORE_IMG: return "grub2 core.img"; case FS_ISO9660: return "iso9660";