Changes in uspace/srv/fs/tmpfs/tmpfs_dump.c [15f3c3f:f73b291] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/fs/tmpfs/tmpfs_dump.c
r15f3c3f rf73b291 44 44 #include <sys/types.h> 45 45 #include <as.h> 46 #include < libblock.h>46 #include <block.h> 47 47 #include <byteorder.h> 48 48 49 49 #define TMPFS_COMM_SIZE 1024 50 51 static uint8_t tmpfs_buf[TMPFS_COMM_SIZE]; 50 52 51 53 struct rdentry { … … 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.