Re: Differentiate FAT16 and FAT32
Re: Differentiate FAT16 and FAT32
- Subject: Re: Differentiate FAT16 and FAT32
- From: Matthias Arndt <email@hidden>
- Date: Sun, 10 Jan 2010 22:05:12 +0100
Alastair,
Am 10.01.2010 um 21:34 schrieb Alastair Houghton:
>> 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).
Right, but when saving an embroidery file from my NSDocument-based app to a FAT32-formatted volume I want to present a warning dialog to the user as the stick / card may not be recognized by the embroidery machine.
> 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.
Thanks for the hint, I will definitely look into statfs and its structure. When posting the question I wasn't aware that it's not related to Cocoa: I assumed that I may have missed the right framework / class / method ... Sorry!
Matthias _______________________________________________
Cocoa-dev mailing list (email@hidden)
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:
This email sent to email@hidden