Changeset a35b458 in mainline for uspace/srv/fs/exfat/exfat_directory.c
- Timestamp:
- 2018-03-02T20:10:49Z (7 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- f1380b7
- Parents:
- 3061bc1
- git-author:
- Jiří Zárevúcky <zarevucky.jiri@…> (2018-02-28 17:38:31)
- git-committer:
- Jiří Zárevúcky <zarevucky.jiri@…> (2018-03-02 20:10:49)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/fs/exfat/exfat_directory.c
r3061bc1 ra35b458 91 91 { 92 92 errno_t rc = EOK; 93 93 94 94 if (di->b) { 95 95 rc = block_put(di->b); 96 96 di->b = NULL; 97 97 } 98 98 99 99 return rc; 100 100 } … … 141 141 if (rc != EOK) 142 142 di->pos -= 1; 143 143 144 144 return rc; 145 145 } … … 148 148 { 149 149 errno_t rc = EOK; 150 150 151 151 if (di->pos > 0) { 152 152 di->pos -= 1; … … 154 154 } else 155 155 return ENOENT; 156 156 157 157 if (rc != EOK) 158 158 di->pos += 1; 159 159 160 160 return rc; 161 161 } … … 170 170 if (rc != EOK) 171 171 di->pos = _pos; 172 172 173 173 return rc; 174 174 } … … 177 177 { 178 178 errno_t rc; 179 179 180 180 rc = exfat_directory_block_load(di); 181 181 if (rc == EOK) { … … 183 183 *d = ((exfat_dentry_t *)di->b->data) + o; 184 184 } 185 185 186 186 return rc; 187 187 } … … 197 197 return ENOENT; 198 198 } while (exfat_directory_next(di) == EOK); 199 199 200 200 return ENOENT; 201 201 } … … 222 222 size_t offset = 0; 223 223 aoff64_t start_pos = 0; 224 224 225 225 rc = exfat_directory_find(di, EXFAT_DENTRY_FILE, &d); 226 226 if (rc != EOK) … … 238 238 return ENOENT; 239 239 *ds = d->stream; 240 240 241 241 if (ds->name_size > size) 242 242 return EOVERFLOW; … … 470 470 di->b->dirty = true; 471 471 } 472 472 473 473 return exfat_directory_seek(di, pos); 474 474 } … … 486 486 return rc; 487 487 count = de->file.count + 1; 488 488 489 489 while (count) { 490 490 rc = exfat_directory_get(di, &de); … … 517 517 di->nodep->dirty = true; /* need to sync node */ 518 518 di->blocks = di->nodep->size / BPS(di->bs); 519 519 520 520 return EOK; 521 521 }
Note:
See TracChangeset
for help on using the changeset viewer.