Changeset 2ffaab5 in mainline
- Timestamp:
- 2010-01-13T21:41:18Z (15 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- aa53ee69
- Parents:
- 711e1f32
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/fs/fat/fat_ops.c
r711e1f32 r2ffaab5 305 305 int rc; 306 306 307 printf("fatcnt\n");308 307 /* Check number of FATs. */ 309 308 if (bs->fatcnt == 0) … … 312 311 /* Check total number of sectors. */ 313 312 314 printf("totsec\n");315 313 if (bs->totsec16 == 0 && bs->totsec32 == 0) 316 314 return ENOTSUP; … … 320 318 return ENOTSUP; 321 319 322 printf("mdesc\n");323 320 /* Check media descriptor. Must be between 0xf0 and 0xff. */ 324 321 if ((bs->mdesc & 0xf0) != 0xf0) 325 322 return ENOTSUP; 326 323 327 printf("sec_per_fat\n");328 324 /* Check number of sectors per FAT. */ 329 325 if (bs->sec_per_fat == 0) … … 333 329 334 330 for (fat_no = 0; fat_no < bs->fatcnt; fat_no++) { 335 printf("clst-read\n");336 331 rc = fat_get_cluster(bs, dev_handle, fat_no, 0, &e0); 337 332 if (rc != EOK) … … 342 337 return EIO; 343 338 344 printf("mdesc-fat\n");345 339 /* Check that first byte of FAT contains the media descriptor. */ 346 340 if ((e0 & 0xff) != bs->mdesc) 347 341 return ENOTSUP; 348 342 349 printf("fat-signat\n");350 343 /* 351 344 * Check that remaining bits of the first two entries are … … 1047 1040 } 1048 1041 1049 /* Do some simple sanity checks on the boot blocks. */1042 /* Do some simple sanity checks on the file system. */ 1050 1043 rc = fat_sanity_check(bs, dev_handle); 1051 1044 if (rc != EOK) {
Note:
See TracChangeset
for help on using the changeset viewer.