Changeset b06414f in mainline for uspace/srv/fs/fat/fat_dentry.h


Ignore:
Timestamp:
2017-05-19T14:04:36Z (7 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
e540bc87
Parents:
2628642
Message:

Use proper sizes for buffers holding conversions from/to UTF-16 LFN's

FAT uses UTF-16 for encoding long file names. HelenOS needs to convert
these strings into and from its native UTF-8 encoding. The size of the
UTF-8 buffer in bytes needs to be at least 4 times the number of
characters in a LFN.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/srv/fs/fat/fat_dentry.h

    r2628642 rb06414f  
    8383#define FAT_LFN_CHKSUM(d) ((d)->lfn.check_sum)
    8484
    85 #define FAT_LFN_NAME_SIZE   260
     85#define FAT_LFN_NAME_LEN    260                           /* characters */
     86#define FAT_LFN_NAME_SIZE   STR_BOUNDS(FAT_LFN_NAME_LEN)  /* bytes */
    8687#define FAT_LFN_MAX_COUNT   20
    8788#define FAT_LFN_PART1_SIZE  5
Note: See TracChangeset for help on using the changeset viewer.