Changeset fc22069 in mainline for uspace/lib/gpt/libgpt.c


Ignore:
Timestamp:
2015-08-22T05:12:30Z (10 years ago)
Author:
Martin Decky <martin@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
78bb04b
Parents:
d9e68d0
Message:

block devices use the same interface, therefore the API of libblock should not expose the implementation details

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/gpt/libgpt.c

    rd9e68d0 rfc22069  
    137137int gpt_read_header(gpt_label_t *label, service_id_t dev_handle)
    138138{
    139         int rc = block_init(EXCHANGE_ATOMIC, dev_handle, 512);
     139        int rc = block_init(dev_handle, 512);
    140140        if (rc != EOK)
    141141                return rc;
     
    191191{
    192192        /* The comm_size argument (the last one) is ignored */
    193         int rc = block_init(EXCHANGE_ATOMIC, dev_handle, 4096);
     193        int rc = block_init(dev_handle, 4096);
    194194        if ((rc != EOK) && (rc != EEXIST))
    195195                return rc;
     
    288288        }
    289289       
    290         int rc = block_init(EXCHANGE_SERIALIZE, label->device,
    291             sizeof(gpt_entry_t));
     290        int rc = block_init(label->device, sizeof(gpt_entry_t));
    292291        if (rc != EOK) {
    293292                gpt_free_partitions(label->parts);
     
    348347{
    349348        /* comm_size of 4096 is ignored */
    350         int rc = block_init(EXCHANGE_ATOMIC, dev_handle, 4096);
     349        int rc = block_init(dev_handle, 4096);
    351350        if ((rc != EOK) && (rc != EEXIST))
    352351                return rc;
Note: See TracChangeset for help on using the changeset viewer.