+ BlueSkyInode *inode = NULL;
+ if (fh->data.data_len == 8) {
+ uint64_t inum = GUINT64_FROM_BE(*(uint64_t *)(fh->data.data_val));
+ inode = bluesky_get_inode(fs, inum);
+ }
+ return inode;
+}
+
+/* Copy inode attributes into NFS response. The BlueSkyInode should be locked
+ * by the caller. */
+void encode_fattr3(struct fattr3 *result, BlueSkyInode *inode)
+{
+ result->type = inode->type;
+ result->mode = inode->mode;
+ result->nlink = inode->nlink;
+ result->uid = inode->uid;
+ result->gid = inode->gid;
+ result->size = inode->size;