Changes in uspace/srv/fs/tmpfs/tmpfs_dump.c [4802dd7:9d58539] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/fs/tmpfs/tmpfs_dump.c
r4802dd7 r9d58539 49 49 #define TMPFS_COMM_SIZE 1024 50 50 51 static uint8_t tmpfs_buf[TMPFS_COMM_SIZE];52 53 51 struct rdentry { 54 52 uint8_t type; … … 70 68 uint32_t size; 71 69 72 if (block_seqread(dsid, tmpfs_buf,bufpos, buflen, pos, &entry,70 if (block_seqread(dsid, bufpos, buflen, pos, &entry, 73 71 sizeof(entry)) != EOK) 74 72 return false; … … 90 88 } 91 89 92 if (block_seqread(dsid, tmpfs_buf,bufpos, buflen, pos, fname,90 if (block_seqread(dsid, bufpos, buflen, pos, fname, 93 91 entry.len) != EOK) { 94 92 (void) ops->destroy(fn); … … 106 104 free(fname); 107 105 108 if (block_seqread(dsid, tmpfs_buf,bufpos, buflen, pos, &size,106 if (block_seqread(dsid, bufpos, buflen, pos, &size, 109 107 sizeof(size)) != EOK) 110 108 return false; … … 118 116 119 117 nodep->size = size; 120 if (block_seqread(dsid, tmpfs_buf,bufpos, buflen, pos, nodep->data,118 if (block_seqread(dsid, bufpos, buflen, pos, nodep->data, 121 119 size) != EOK) 122 120 return false; … … 134 132 } 135 133 136 if (block_seqread(dsid, tmpfs_buf,bufpos, buflen, pos, fname,134 if (block_seqread(dsid, bufpos, buflen, pos, fname, 137 135 entry.len) != EOK) { 138 136 (void) ops->destroy(fn); … … 178 176 179 177 char tag[6]; 180 if (block_seqread(dsid, tmpfs_buf,&bufpos, &buflen, &pos, tag, 5) != EOK)178 if (block_seqread(dsid, &bufpos, &buflen, &pos, tag, 5) != EOK) 181 179 goto error; 182 180
Note:
See TracChangeset
for help on using the changeset viewer.