Subversion Repositories freemyipod

Rev

Rev 58 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 58 Rev 111
Line 24... Line 24...
24
 
24
 
25
#include "global.h"
25
#include "global.h"
26
#include "util.h"
26
#include "util.h"
27
#include "mv.h" /* for volume definitions */
27
#include "mv.h" /* for volume definitions */
28
 
28
 
-
 
29
#ifndef SECTOR_SIZE
-
 
30
#define SECTOR_SIZE 512
-
 
31
#endif
-
 
32
 
29
/* Number of bytes reserved for a file name (including the trailing \0).
33
/* Number of bytes reserved for a file name (including the trailing \0).
30
   Since names are stored in the entry as UTF-8, we won't be able to
34
   Since names are stored in the entry as UTF-8, we won't be able to
31
   store all names allowed by FAT. In FAT, a name can have max 255
35
   store all names allowed by FAT. In FAT, a name can have max 255
32
   characters (not bytes!). Since the UTF-8 encoding of a char may take
36
   characters (not bytes!). Since the UTF-8 encoding of a char may take
33
   up to 4 bytes, there will be names that we won't be able to store
37
   up to 4 bytes, there will be names that we won't be able to store