Changes in uspace/srv/fs/tmpfs/tmpfs_dump.c [f73b291:9d58539] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/fs/tmpfs/tmpfs_dump.c
rf73b291 r9d58539 44 44 #include <sys/types.h> 45 45 #include <as.h> 46 #include < block.h>46 #include <libblock.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];52 50 53 51 struct rdentry { … … 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.