Changeset 6284978 in mainline for uspace/srv/fs/fat/fat_ops.c


Ignore:
Timestamp:
2008-11-02T10:21:31Z (16 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
0c243b4
Parents:
2953f9a
Message:

Separate the block_init() phase from reading of the boot block.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/srv/fs/fat/fat_ops.c

    r2953f9a r6284978  
    435435
    436436        /* initialize libblock */
    437         rc = block_init(dev_handle, BS_SIZE, BS_BLOCK * BS_SIZE, BS_SIZE);
     437        rc = block_init(dev_handle, BS_SIZE);
    438438        if (rc != EOK) {
    439                 ipc_answer_0(rid, 0);
     439                ipc_answer_0(rid, rc);
     440                return;
     441        }
     442
     443        /* prepare the boot block */
     444        rc = block_bb_read(dev_handle, BS_BLOCK * BS_SIZE, BS_SIZE);
     445        if (rc != EOK) {
     446                block_fini(dev_handle);
     447                ipc_answer_0(rid, rc);
    440448                return;
    441449        }
Note: See TracChangeset for help on using the changeset viewer.