Changeset 46c20c8 in mainline for uspace/srv/bd/file_bd/file_bd.c


Ignore:
Timestamp:
2010-11-26T20:08:10Z (15 years ago)
Author:
Jiri Svoboda <jiri@…>
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.
Message:

Merge mainline changes.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/srv/bd/file_bd/file_bd.c

    rfb150d78 r46c20c8  
    5757
    5858static const size_t block_size = 512;
    59 static bn_t num_blocks;
     59static aoff64_t num_blocks;
    6060static FILE *img;
    6161
    62 static dev_handle_t dev_handle;
     62static devmap_handle_t devmap_handle;
    6363static fibril_mutex_t dev_lock;
    6464
     
    8282                return -1;
    8383
    84         rc = devmap_device_register(argv[2], &dev_handle);
     84        rc = devmap_device_register(argv[2], &devmap_handle);
    8585        if (rc != EOK) {
    8686                devmap_hangup_phone(DEVMAP_DRIVER);
     
    210210        /* Check whether access is within device address bounds. */
    211211        if (ba + cnt > num_blocks) {
    212                 printf(NAME ": Accessed blocks %" PRIuBN "-%" PRIuBN ", while "
    213                     "max block number is %" PRIuBN ".\n", ba, ba + cnt - 1,
     212                printf(NAME ": Accessed blocks %" PRIuOFF64 "-%" PRIuOFF64 ", while "
     213                    "max block number is %" PRIuOFF64 ".\n", ba, ba + cnt - 1,
    214214                    num_blocks - 1);
    215215                return ELIMIT;
     
    248248        /* Check whether access is within device address bounds. */
    249249        if (ba + cnt > num_blocks) {
    250                 printf(NAME ": Accessed blocks %" PRIuBN "-%" PRIuBN ", while "
    251                     "max block numeber is %" PRIuBN ".\n", ba, ba + cnt - 1,
     250                printf(NAME ": Accessed blocks %" PRIuOFF64 "-%" PRIuOFF64 ", while "
     251                    "max block number is %" PRIuOFF64 ".\n", ba, ba + cnt - 1,
    252252                    num_blocks - 1);
    253253                return ELIMIT;
Note: See TracChangeset for help on using the changeset viewer.