From: Michael Vrable Date: Tue, 29 Dec 2009 04:56:17 +0000 (-0800) Subject: Calculate size of symlinks. X-Git-Url: https://git.vrable.net/?a=commitdiff_plain;h=6f5f0f5a8d42eee4270c93d89af61586128c2cfe;p=bluesky.git Calculate size of symlinks. --- diff --git a/nfs3/nfs3.c b/nfs3/nfs3.c index 2aa4299..2a25e0b 100644 --- a/nfs3/nfs3.c +++ b/nfs3/nfs3.c @@ -119,6 +119,14 @@ void encode_fattr3(struct fattr3 *result, BlueSkyInode *inode) result->mtime.nseconds = (inode->mtime % 1000000) * 1000; result->ctime.seconds = inode->ctime / 1000000; result->ctime.nseconds = (inode->ctime % 1000000) * 1000; + + switch (inode->type) { + case BLUESKY_SYMLINK: + result->size = strlen(inode->symlink_contents); + break; + default: + break; + } } void encode_pre_wcc(struct wcc_data *wcc, BlueSkyInode *inode)