Re: Differentiate FAT16 and FAT32

2010-01-11 Thread Matthias Arndt
Am 11.01.2010 um 18:36 schrieb Alastair Houghton: > [path cStringUsingEncoding:NSASCIIStringEncoding] is wrong. You want [path > filesystemRepresentation], otherwise you will have problems if there are any > non-ASCII characters in the provided path. "fileSystemRepresentation", but I stand cor

Re: Differentiate FAT16 and FAT32

2010-01-11 Thread Alastair Houghton
On 11 Jan 2010, at 17:22, Matthias Arndt wrote: > if (statfs([path cStringUsingEncoding:NSASCIIStringEncoding], &fsInfo) == 0) [path cStringUsingEncoding:NSASCIIStringEncoding] is wrong. You want [path filesystemRepresentation], otherwise you will have problems if there are any non-ASCII chara

Re: Differentiate FAT16 and FAT32

2010-01-11 Thread Matthias Arndt
Am 11.01.2010 um 17:17 schrieb James Bucanek: > Another suggestion: ask filesystem questions on the filesystem-dev list > (). The people on > this list are filesystem geniuses, but some have publicly admitted that they > can't keep up with

Re: Differentiate FAT16 and FAT32

2010-01-11 Thread James Bucanek
Alastair Houghton wrote (Monday, January 11, 2010 2:49 AM -): On 10 Jan 2010, at 21:05, Matthias Arndt wrote: According to the sources for the FAT filesystem driver (which you can get from ), you can look at f_fssubtype i

Re: Differentiate FAT16 and FAT32

2010-01-11 Thread Alastair Houghton
On 10 Jan 2010, at 21:05, Matthias Arndt wrote: >> According to the sources for the FAT filesystem driver (which you can get >> from ), you can look at f_fssubtype in the >> statfs structure, which you can retrieve using statfs() or similar. See man >> 2 statfs. >>

Re: Differentiate FAT16 and FAT32

2010-01-10 Thread Matthias Arndt
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

Re: Differentiate FAT16 and FAT32

2010-01-10 Thread Alastair Houghton
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

Differentiate FAT16 and FAT32

2010-01-10 Thread Matthias Arndt
Hi! I currently stuck, maybe someone can point my into the right direction! In my app I have to differentiate between USB storage devices formatted with a MSDOS-FAT16 or with MSDOS-FAT32 file system. At the moment I use [NSWorkspace getFileSystemInfoForPath] to get some information: BOOL isRem