Changes in uspace/srv/fs/tmpfs/tmpfs_dump.c [54e4479:1ee00b7] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/fs/tmpfs/tmpfs_dump.c
r54e4479 r1ee00b7 82 82 return false; 83 83 84 rc = ops->create(&fn,dev, L_FILE);85 if ( rc != EOK ||fn == NULL) {84 fn = ops->create(dev, L_FILE); 85 if (fn == NULL) { 86 86 free(fname); 87 87 return false; … … 90 90 if (block_seqread(dev, bufpos, buflen, pos, fname, 91 91 entry.len) != EOK) { 92 (void)ops->destroy(fn);92 ops->destroy(fn); 93 93 free(fname); 94 94 return false; … … 98 98 rc = ops->link(pfn, fn, fname); 99 99 if (rc != EOK) { 100 (void)ops->destroy(fn);100 ops->destroy(fn); 101 101 free(fname); 102 102 return false; … … 126 126 return false; 127 127 128 rc = ops->create(&fn,dev, L_DIRECTORY);129 if ( rc != EOK ||fn == NULL) {128 fn = ops->create(dev, L_DIRECTORY); 129 if (fn == NULL) { 130 130 free(fname); 131 131 return false; … … 134 134 if (block_seqread(dev, bufpos, buflen, pos, fname, 135 135 entry.len) != EOK) { 136 (void)ops->destroy(fn);136 ops->destroy(fn); 137 137 free(fname); 138 138 return false; … … 142 142 rc = ops->link(pfn, fn, fname); 143 143 if (rc != EOK) { 144 (void)ops->destroy(fn);144 ops->destroy(fn); 145 145 free(fname); 146 146 return false; … … 164 164 { 165 165 libfs_ops_t *ops = &tmpfs_libfs_ops; 166 fs_node_t *fn;167 166 int rc; 168 167 … … 183 182 goto error; 184 183 185 rc = ops->root_get(&fn, dev); 186 if (rc != EOK) 187 goto error; 188 189 if (!tmpfs_restore_recursion(dev, &bufpos, &buflen, &pos, fn)) 184 if (!tmpfs_restore_recursion(dev, &bufpos, &buflen, &pos, 185 ops->root_get(dev))) 190 186 goto error; 191 187
Note:
See TracChangeset
for help on using the changeset viewer.