Changeset b2906c0 in mainline for uspace/srv/fs/fat
- Timestamp:
- 2017-07-11T18:44:04Z (9 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- f3504c1
- Parents:
- 9bf4488
- Location:
- uspace/srv/fs/fat
- Files:
-
- 3 edited
-
fat_dentry.c (modified) (1 diff)
-
fat_dentry.h (modified) (1 diff)
-
fat_directory.c (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/fs/fat/fat_dentry.c
r9bf4488 rb2906c0 427 427 } 428 428 429 size_t utf16_length(const uint16_t *wstr)430 {431 size_t len = 0;432 433 while (*wstr++ != 0)434 len++;435 436 return len;437 }438 439 429 /** 440 430 * @} -
uspace/srv/fs/fat/fat_dentry.h
r9bf4488 rb2906c0 152 152 153 153 extern void str_to_ascii(char *, const char *, size_t, uint8_t); 154 extern size_t utf16_length(const uint16_t *);155 154 156 155 extern bool fat_valid_name(const char *); -
uspace/srv/fs/fat/fat_directory.c
r9bf4488 rb2906c0 301 301 return rc; 302 302 303 lfn_size = utf16_ length(wname);303 lfn_size = utf16_wsize(wname); 304 304 long_entry_count = lfn_size / FAT_LFN_ENTRY_SIZE; 305 305 if (lfn_size % FAT_LFN_ENTRY_SIZE)
Note:
See TracChangeset
for help on using the changeset viewer.
