Changeset affaf2e in mainline for uspace/srv/fs/tmpfs/tmpfs_dump.c
- Timestamp:
- 2012-08-15T15:13:20Z (13 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- b546231
- Parents:
- f66ca57f (diff), 135486d (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)
links above to see all the changes relative to each parent. - File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/fs/tmpfs/tmpfs_dump.c
rf66ca57f raffaf2e 49 49 #define TMPFS_COMM_SIZE 1024 50 50 51 static uint8_t tmpfs_buf[TMPFS_COMM_SIZE]; 52 51 53 struct rdentry { 52 54 uint8_t type; … … 68 70 uint32_t size; 69 71 70 if (block_seqread(dsid, bufpos, buflen, pos, &entry,72 if (block_seqread(dsid, tmpfs_buf, bufpos, buflen, pos, &entry, 71 73 sizeof(entry)) != EOK) 72 74 return false; … … 88 90 } 89 91 90 if (block_seqread(dsid, bufpos, buflen, pos, fname,92 if (block_seqread(dsid, tmpfs_buf, bufpos, buflen, pos, fname, 91 93 entry.len) != EOK) { 92 94 (void) ops->destroy(fn); … … 104 106 free(fname); 105 107 106 if (block_seqread(dsid, bufpos, buflen, pos, &size,108 if (block_seqread(dsid, tmpfs_buf, bufpos, buflen, pos, &size, 107 109 sizeof(size)) != EOK) 108 110 return false; … … 116 118 117 119 nodep->size = size; 118 if (block_seqread(dsid, bufpos, buflen, pos, nodep->data,120 if (block_seqread(dsid, tmpfs_buf, bufpos, buflen, pos, nodep->data, 119 121 size) != EOK) 120 122 return false; … … 132 134 } 133 135 134 if (block_seqread(dsid, bufpos, buflen, pos, fname,136 if (block_seqread(dsid, tmpfs_buf, bufpos, buflen, pos, fname, 135 137 entry.len) != EOK) { 136 138 (void) ops->destroy(fn); … … 176 178 177 179 char tag[6]; 178 if (block_seqread(dsid, &bufpos, &buflen, &pos, tag, 5) != EOK)180 if (block_seqread(dsid, tmpfs_buf, &bufpos, &buflen, &pos, tag, 5) != EOK) 179 181 goto error; 180 182
Note:
See TracChangeset
for help on using the changeset viewer.