3 ssize_t
fs_rdlink(ino_t ino_nr
, struct fsdriver_data
*data
, size_t bytes
)
9 /* Try to get inode according to its index */
10 if ((i_node
= get_inode(ino_nr
)) == NULL
)
11 return EINVAL
; /* no inode found */
13 if (!S_ISLNK(i_node
->i_stat
.st_mode
))
16 len
= strlen(i_node
->s_name
);
20 if ((r
= fsdriver_copyout(data
, 0, i_node
->s_name
, len
)) != OK
)