Changeset 46c20c8 in mainline for uspace/srv/bd/part/mbr_part/mbr_part.c
- Timestamp:
- 2010-11-26T20:08:10Z (14 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 45df59a
- Parents:
- fb150d78 (diff), ffdd2b9 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)
links above to see all the changes relative to each parent. - File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/bd/part/mbr_part/mbr_part.c
rfb150d78 r46c20c8 97 97 bool present; 98 98 /** Address of first block */ 99 bn_t start_addr;99 aoff64_t start_addr; 100 100 /** Number of blocks */ 101 bn_t length;101 aoff64_t length; 102 102 /** Device representing the partition (outbound device) */ 103 dev _handle_t dev;103 devmap_handle_t dev; 104 104 /** Points to next partition structure. */ 105 105 struct part *next; … … 142 142 143 143 /** Partitioned device (inbound device) */ 144 static dev _handle_t indev_handle;144 static devmap_handle_t indev_handle; 145 145 146 146 /** List of partitions. This structure is an empty head. */ … … 181 181 int i; 182 182 char *name; 183 dev _handle_t dev;183 devmap_handle_t dev; 184 184 uint64_t size_mb; 185 185 part_t *part; … … 206 206 207 207 if (block_size < 512 || (block_size % 512) != 0) { 208 printf(NAME ": invalid block size % d.\n");208 printf(NAME ": invalid block size %zu.\n", block_size); 209 209 return ENOTSUP; 210 210 } … … 249 249 size_mb = (part->length * block_size + 1024 * 1024 - 1) 250 250 / (1024 * 1024); 251 printf(NAME ": Registered device %s: %" PRIu BN" blocks "251 printf(NAME ": Registered device %s: %" PRIuOFF64 " blocks " 252 252 "%" PRIu64 " MB.\n", name, part->length, size_mb); 253 253 … … 394 394 ipc_call_t call; 395 395 ipcarg_t method; 396 dev _handle_t dh;396 devmap_handle_t dh; 397 397 int flags; 398 398 int retval;
Note:
See TracChangeset
for help on using the changeset viewer.