| 156 | } |
| 157 | |
| 158 | static char *compose_path(const char *path, const char *name) |
| 159 | { |
| 160 | int path_len, name_len; |
| 161 | char *d; |
| 162 | |
| 163 | path_len = strlen(path); |
| 164 | name_len = strlen(name); |
| 165 | d = malloc(path_len + 1 + name_len + 1); |
| 166 | memcpy(d, path, path_len); |
| 167 | d[path_len] = '/'; |
| 168 | memcpy(d + path_len + 1, name, name_len + 1); |
| 169 | return d; |
| 170 | } |
| 171 | |
| 172 | static int fs_attach(FSDevice *fs1, FSFile **pf, |
| 173 | FSQID *qid, uint32_t uid, |
no outgoing calls
no test coverage detected