ceph_readlink() and ceph_ll_readlink() both return the number of bytes
copied on success, which the callers need to guarantee null-termination
Signed-off-by: Casey Bodley <casey@linuxbox.com>
* @param path the path to the symlink to read
* @param buf the buffer to hold the the path of the file that the symlink points to.
* @param size the length of the buffer
- * @returns 0 on success or negative error code on failure
+ * @returns number of bytes copied on success or negative error code on failure
*/
int ceph_readlink(struct ceph_mount_info *cmount, const char *path, char *buf, int64_t size);