| 471 | } |
| 472 | |
| 473 | static int fs_link(FSDevice *fs, FSFile *df, FSFile *f, const char *name) |
| 474 | { |
| 475 | char *path; |
| 476 | |
| 477 | path = compose_path(df->path, name); |
| 478 | if (link(f->path, path) < 0) { |
| 479 | free(path); |
| 480 | return -errno_to_p9(errno); |
| 481 | } |
| 482 | free(path); |
| 483 | return 0; |
| 484 | } |
| 485 | |
| 486 | static int fs_symlink(FSDevice *fs, FSQID *qid, |
| 487 | FSFile *f, const char *name, const char *symgt, uint32_t gid) |
nothing calls this directly
no test coverage detected