Changeset fc840d9 in mainline for uspace/srv/fs/tmpfs/tmpfs_dump.c


Ignore:
Timestamp:
2008-10-27T16:53:38Z (17 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
7a5cdded
Parents:
04619ba
Message:

Move libfs_blockread(), block_get() and block_put() to libblock.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/srv/fs/tmpfs/tmpfs_dump.c

    r04619ba rfc840d9  
    4646#include <sys/types.h>
    4747#include <as.h>
    48 #include <libfs.h>
     48#include <libblock.h>
    4949#include <ipc/services.h>
    5050#include <ipc/devmap.h>
     
    7171                uint32_t size;
    7272               
    73                 if (!libfs_blockread(phone, block, bufpos, buflen, pos, &entry,
     73                if (!blockread(phone, block, bufpos, buflen, pos, &entry,
    7474                    sizeof(entry), TMPFS_BLOCK_SIZE))
    7575                        return false;
     
    9191                        }
    9292                       
    93                         if (!libfs_blockread(phone, block, bufpos, buflen, pos,
    94                             fname, entry.len, TMPFS_BLOCK_SIZE)) {
     93                        if (!blockread(phone, block, bufpos, buflen, pos, fname,
     94                            entry.len, TMPFS_BLOCK_SIZE)) {
    9595                                ops->destroy((void *) node);
    9696                                free(fname);
     
    106106                        free(fname);
    107107                       
    108                         if (!libfs_blockread(phone, block, bufpos, buflen, pos,
    109                             &size, sizeof(size), TMPFS_BLOCK_SIZE))
     108                        if (!blockread(phone, block, bufpos, buflen, pos, &size,
     109                            sizeof(size), TMPFS_BLOCK_SIZE))
    110110                                return false;
    111111                       
     
    117117                       
    118118                        node->size = size;
    119                         if (!libfs_blockread(phone, block, bufpos, buflen, pos,
     119                        if (!blockread(phone, block, bufpos, buflen, pos,
    120120                            node->data, size, TMPFS_BLOCK_SIZE))
    121121                                return false;
     
    133133                        }
    134134                       
    135                         if (!libfs_blockread(phone, block, bufpos, buflen, pos,
    136                             fname, entry.len, TMPFS_BLOCK_SIZE)) {
     135                        if (!blockread(phone, block, bufpos, buflen, pos, fname,
     136                            entry.len, TMPFS_BLOCK_SIZE)) {
    137137                                ops->destroy((void *) node);
    138138                                free(fname);
     
    188188       
    189189        char tag[6];
    190         if (!libfs_blockread(phone, block, &bufpos, &buflen, &pos, tag, 5,
     190        if (!blockread(phone, block, &bufpos, &buflen, &pos, tag, 5,
    191191            TMPFS_BLOCK_SIZE))
    192192                goto error;
Note: See TracChangeset for help on using the changeset viewer.