On 10 Jan 2010, at 20:04, Matthias Arndt wrote: > In my app I have to differentiate between USB storage devices formatted with > a MSDOS-FAT16 or with MSDOS-FAT32 file system.
Because? Remember that the flavour of FAT in use is defined *entirely* by the number of clusters on the volume... (i.e. it isn't something you can straightforwardly choose). > Unfortunately both types are reported as "msdos". Is there any way to get the > entry size of the used file allocation table? In the Finder every info dialog > of a volume contains this information, so I was really surprised finding the > mentioned method not differentiating both of them ... According to the sources for the FAT filesystem driver (which you can get from <http://opensource.apple.com>), you can look at f_fssubtype in the statfs structure, which you can retrieve using statfs() or similar. See man 2 statfs. This isn't exactly a Cocoa question, BTW... you should probably have asked on darwin-dev or one of the other lists. Kind regards, Alastair. -- http://alastairs-place.net _______________________________________________ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderators at cocoa-dev-admins(at)lists.apple.com Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com