Changeset 95c675b in mainline for uspace/srv/fs/fat/fat_dentry.c
- Timestamp:
- 2017-10-17T13:11:35Z (8 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 60af4cdb
- Parents:
- dbf32b1 (diff), a416d070 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)links above to see all the changes relative to each parent. - File:
-
- 1 edited
-
uspace/srv/fs/fat/fat_dentry.c (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/fs/fat/fat_dentry.c
rdbf32b1 r95c675b 180 180 } 181 181 182 void fat_dentry_vollabel_get(const fat_dentry_t *d, char *buf) 183 { 184 unsigned int i; 185 186 for (i = 0; i < FAT_NAME_LEN; i++) { 187 if (d->name[i] == FAT_PAD) 188 break; 189 190 if (d->name[i] == FAT_DENTRY_E5_ESC) 191 *buf++ = 0xe5; 192 else 193 *buf++ = d->name[i]; 194 } 195 196 for (i = 0; i < FAT_EXT_LEN; i++) { 197 if (d->ext[i] == FAT_PAD) { 198 *buf = '\0'; 199 return; 200 } 201 202 if (d->ext[i] == FAT_DENTRY_E5_ESC) 203 *buf++ = 0xe5; 204 else 205 *buf++ = d->ext[i]; 206 } 207 208 *buf = '\0'; 209 } 210 182 211 fat_dentry_clsf_t fat_classify_dentry(const fat_dentry_t *d) 183 212 { … … 191 220 if (d->attr & FAT_ATTR_VOLLABEL) { 192 221 /* volume label entry */ 193 return FAT_DENTRY_ SKIP;222 return FAT_DENTRY_VOLLABEL; 194 223 } 195 224 if (d->name[0] == FAT_DENTRY_ERASED) { … … 398 427 } 399 428 400 size_t utf16_length(const uint16_t *wstr)401 {402 size_t len = 0;403 404 while (*wstr++ != 0)405 len++;406 407 return len;408 }409 410 429 /** 411 430 * @}
Note:
See TracChangeset
for help on using the changeset viewer.
