External drives reported as "lifs"

We have noticed in macOS Ventura betas 2-5 (didnt test beta 1) that external drives seem to be reported as “lifs” through statfs which breaks important features in our app. Drives show correctly in disk utility, but not through statfs in our app or a sample app we created. Are you aware of this issue? If so is there a fix being scheduled, or a workaround?

Post not yet marked as solved Up vote post of Micah_G Down vote post of Micah_G
1k views

Replies

I have encountered the same problem on Ventura 13.0.1. As a workaround I've used DiskArbitration, which seems to report file system correctly:

#include <DiskArbitration/DiskArbitration.h>

DASessionRef session = DASessionCreate(kCFAllocatorDefault);
CFURLRef mpURL = CFURLCreateWithFileSystemPath(kCFAllocatorDefault, CFSTR("/Volumes/NO NAME/"), kCFURLPOSIXPathStyle, YES);
DADiskRef diskRef = DADiskCreateFromVolumePath(kCFAllocatorDefault, session, mpURL);
CFDictionaryRef description = DADiskCopyDescription(diskRef);
NSDictionary* diskInfo = (__bridge NSDictionary *)description;
NSLog(@"%@", [diskInfo valueForKey:@"DAVolumeKind"]);

Having the same problem on Ventura 13.0 (22A380). Is there any piece of info on whether this issue has been solved on later ventura versions?