diff --git a/src/apple/disk.rs b/src/apple/disk.rs index a1e91b7f0..b5595a1b1 100644 --- a/src/apple/disk.rs +++ b/src/apple/disk.rs @@ -126,6 +126,10 @@ pub(super) unsafe fn get_disks() -> Vec { None => continue, }; + // Future note: There is a difference between `kCFURLVolumeIsBrowsableKey` and the + // `kCFURLEnumeratorSkipInvisibles` option of `CFURLEnumeratorOptions`. Specifically, + // the first one considers the writable `Data`(`/System/Volumes/Data`) partition to be + // browsable, while it is classified as "invisible" by CoreFoundation's volume emumerator. let browsable = get_bool_value( prop_dict.inner(), DictKey::Extern(ffi::kCFURLVolumeIsBrowsableKey),