Changeset 8c95dff in mainline for uspace/lib/mbr/libmbr.c


Ignore:
Timestamp:
2013-11-30T17:49:09Z (12 years ago)
Author:
Dominik Taborsky (AT DOT) <brembyseznamcz>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
f4a47e52
Parents:
802898f
Message:

various bugfixes

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/mbr/libmbr.c

    r802898f r8c95dff  
    7070}
    7171
     72void mbr_set_device(mbr_label_t *label, service_id_t dev_handle)
     73{
     74        label->device = dev_handle;
     75}
     76
    7277/** Free mbr_label_t structure */
    7378void mbr_free_label(mbr_label_t *label)
     
    253258        }
    254259       
     260        label->mbr->raw_data.signature = host2uint16_t_le(BR_SIGNATURE);
     261       
    255262        /* Writing MBR */
    256263        rc = block_write_direct(dev_handle, 0, 1, &(label->mbr->raw_data));
     
    271278         * and implementation. If you don't have to change it, don't. Other
    272279         * designs have been tried, this came out as the least horror with
    273          * as much power over it as you can get. Thanks. */
     280         * as much power over it as you can get. */
    274281       
    275282        /* Encoding and writing first logical partition */
Note: See TracChangeset for help on using the changeset viewer.