• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Differentiate FAT16 and FAT32
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Differentiate FAT16 and FAT32


  • Subject: Re: Differentiate FAT16 and FAT32
  • From: Alastair Houghton <email@hidden>
  • Date: Sun, 10 Jan 2010 20:34:28 +0000

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 (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

  • Follow-Ups:
    • Re: Differentiate FAT16 and FAT32
      • From: Matthias Arndt <email@hidden>
References: 
 >Differentiate FAT16 and FAT32 (From: Matthias Arndt <email@hidden>)

  • Prev by Date: Re: if statement causing 32 Byte leak?
  • Next by Date: Re: Differentiate FAT16 and FAT32
  • Previous by thread: Differentiate FAT16 and FAT32
  • Next by thread: Re: Differentiate FAT16 and FAT32
  • Index(es):
    • Date
    • Thread