Changeset fc840d9 in mainline for uspace/srv/fs/tmpfs/tmpfs_dump.c
- Timestamp:
- 2008-10-27T16:53:38Z (17 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 7a5cdded
- Parents:
- 04619ba
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/fs/tmpfs/tmpfs_dump.c
r04619ba rfc840d9 46 46 #include <sys/types.h> 47 47 #include <as.h> 48 #include <lib fs.h>48 #include <libblock.h> 49 49 #include <ipc/services.h> 50 50 #include <ipc/devmap.h> … … 71 71 uint32_t size; 72 72 73 if (! libfs_blockread(phone, block, bufpos, buflen, pos, &entry,73 if (!blockread(phone, block, bufpos, buflen, pos, &entry, 74 74 sizeof(entry), TMPFS_BLOCK_SIZE)) 75 75 return false; … … 91 91 } 92 92 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)) { 95 95 ops->destroy((void *) node); 96 96 free(fname); … … 106 106 free(fname); 107 107 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)) 110 110 return false; 111 111 … … 117 117 118 118 node->size = size; 119 if (! libfs_blockread(phone, block, bufpos, buflen, pos,119 if (!blockread(phone, block, bufpos, buflen, pos, 120 120 node->data, size, TMPFS_BLOCK_SIZE)) 121 121 return false; … … 133 133 } 134 134 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)) { 137 137 ops->destroy((void *) node); 138 138 free(fname); … … 188 188 189 189 char tag[6]; 190 if (! libfs_blockread(phone, block, &bufpos, &buflen, &pos, tag, 5,190 if (!blockread(phone, block, &bufpos, &buflen, &pos, tag, 5, 191 191 TMPFS_BLOCK_SIZE)) 192 192 goto error;
Note:
See TracChangeset
for help on using the changeset viewer.