Changeset 27678a0 in mainline for uspace/srv/fs/exfat/exfat_directory.c
- Timestamp:
- 2011-07-14T12:16:14Z (14 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 73b1218
- Parents:
- 944aa24
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/fs/exfat/exfat_directory.c
r944aa24 r27678a0 157 157 } 158 158 159 int exfat_directory_find(exfat_directory_t *di, exfat_dentry_clsf_t type, exfat_dentry_t **d) 160 { 161 do { 162 if (exfat_directory_get(di, d) == EOK) { 163 if (exfat_classify_dentry(*d) == type) 164 return EOK; 165 } else 166 return ENOENT; 167 } while (exfat_directory_next(di) == EOK); 168 169 return ENOENT; 170 } 171 172 int exfat_directory_find_continue(exfat_directory_t *di, exfat_dentry_clsf_t type, exfat_dentry_t **d) 173 { 174 int rc; 175 rc = exfat_directory_next(di); 176 if (rc != EOK) 177 return rc; 178 return exfat_directory_find(di, type, d); 179 } 159 180 160 181 /**
Note:
See TracChangeset
for help on using the changeset viewer.