Changes in uspace/srv/fs/fat/fat_dentry.c [b2906c0:0e7c3d9] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/fs/fat/fat_dentry.c
rb2906c0 r0e7c3d9 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 else193 *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 else205 *buf++ = d->ext[i];206 }207 208 *buf = '\0';209 }210 211 182 fat_dentry_clsf_t fat_classify_dentry(const fat_dentry_t *d) 212 183 { … … 220 191 if (d->attr & FAT_ATTR_VOLLABEL) { 221 192 /* volume label entry */ 222 return FAT_DENTRY_ VOLLABEL;193 return FAT_DENTRY_SKIP; 223 194 } 224 195 if (d->name[0] == FAT_DENTRY_ERASED) { … … 427 398 } 428 399 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 429 410 /** 430 411 * @}
Note:
See TracChangeset
for help on using the changeset viewer.