heim
heim copied to clipboard
Added FAT file system so that FAT formatted disks are recognized
On MacOS, external disks that are formatted with FAT16/FAT32 (yes, I still have some!) are filtered (is_physical) from the list of file systems because the file system name is 'msdos', which isn't in the FileSystem enum.
Before the change:
Partition { device: Some("/dev/disk1s1"), mount_point: "/", file_system: Apfs }
Partition { device: Some("/dev/disk1s4"), mount_point: "/private/var/vm", file_system: Apfs }
After the change:
Partition { device: Some("/dev/disk1s1"), mount_point: "/", file_system: Apfs }
Partition { device: Some("/dev/disk1s4"), mount_point: "/private/var/vm", file_system: Apfs }
Partition { device: Some("/dev/disk2s1"), mount_point: "/Volumes/NO NAME", file_system: Fat }
Though the result from statfs is msdos I made the enum value Fat. Let me know if you'd like something different or to use the existing VFat