Rev 3251 | Rev 3530 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 3251 | Rev 3252 | ||
---|---|---|---|
Line 57... | Line 57... | ||
57 | uint8_t type; |
57 | uint8_t type; |
58 | uint32_t len; |
58 | uint32_t len; |
59 | } __attribute__((packed)); |
59 | } __attribute__((packed)); |
60 | 60 | ||
61 | static bool |
61 | static bool |
62 | tmpfs_restore_recursion(int phone, void *block, size_t *bufpos, size_t *buflen, |
62 | tmpfs_restore_recursion(int phone, void *block, off_t *bufpos, size_t *buflen, |
63 | size_t *pos, tmpfs_dentry_t *parent) |
63 | off_t *pos, tmpfs_dentry_t *parent) |
64 | { |
64 | { |
65 | struct rdentry entry; |
65 | struct rdentry entry; |
66 | libfs_ops_t *ops = &tmpfs_libfs_ops; |
66 | libfs_ops_t *ops = &tmpfs_libfs_ops; |
67 | 67 | ||
68 | do { |
68 | do { |
Line 180... | Line 180... | ||
180 | 180 | ||
181 | if (ipc_share_out_start(phone, block, AS_AREA_READ | AS_AREA_WRITE) != |
181 | if (ipc_share_out_start(phone, block, AS_AREA_READ | AS_AREA_WRITE) != |
182 | EOK) |
182 | EOK) |
183 | goto error; |
183 | goto error; |
184 | 184 | ||
185 | size_t bufpos = 0; |
185 | off_t bufpos = 0; |
186 | size_t buflen = 0; |
186 | size_t buflen = 0; |
187 | size_t pos = 0; |
187 | off_t pos = 0; |
188 | 188 | ||
189 | char tag[6]; |
189 | char tag[6]; |
190 | if (!libfs_blockread(phone, block, &bufpos, &buflen, &pos, tag, 5, |
190 | if (!libfs_blockread(phone, block, &bufpos, &buflen, &pos, tag, 5, |
191 | TMPFS_BLOCK_SIZE)) |
191 | TMPFS_BLOCK_SIZE)) |
192 | goto error; |
192 | goto error; |