Changeset 9e7615d in mainline
- Timestamp:
- 2017-06-27T16:32:35Z (8 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- b76ce3f
- Parents:
- 80da8f70
- Location:
- uspace/lib/label
- Files:
-
- 1 added
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/label/src/mbr.c
r80da8f70 r9e7615d 39 39 #include <stdlib.h> 40 40 41 #include "std/fat.h" 41 42 #include "std/mbr.h" 42 43 #include "mbr.h" … … 89 90 label_t *label = NULL; 90 91 mbr_br_block_t *mbr = NULL; 92 fat_bs_t *bs; 91 93 mbr_pte_t *eptr; 92 94 uint16_t sgn; … … 124 126 } 125 127 128 bs = (fat_bs_t *)mbr; 129 126 130 rc = bd->ops->read(bd->arg, mbr_ba, 1, mbr); 127 131 if (rc != EOK) { … … 145 149 } 146 150 151 /* 152 * We can't really tell whether this is an MBR. Make sure 153 * this is not actually the BR of a FAT file system 154 */ 155 if (bs->type[0] == 'F' && bs->type[1] == 'A' && bs->type[2] == 'T') { 156 rc = EIO; 157 goto error; 158 } 147 159 148 160 label->ext_part = NULL;
Note:
See TracChangeset
for help on using the changeset viewer.