{
static fsstat3res result;
- result.status = NFS3ERR_NOTSUPP;
+ BlueSkyInode *inode = lookup_fh(argp);
+ if (inode == NULL) {
+ result.status = NFS3ERR_STALE;
+ result.fsstat3res_u.resfail.present = FALSE;
+ return &result;
+ }
+
+ result.status = NFS3_OK;
+ result.fsstat3res_u.resok.obj_attributes.present = TRUE;
+ encode_fattr3(&result.fsstat3res_u.resok.obj_attributes.post_op_attr_u.attributes, inode);
+
+ result.fsstat3res_u.resok.tbytes = (1 << 30);
+ result.fsstat3res_u.resok.fbytes = (1 << 30);
+ result.fsstat3res_u.resok.abytes = (1 << 30);
+ result.fsstat3res_u.resok.tfiles = 0;
+ result.fsstat3res_u.resok.ffiles = 0;
+ result.fsstat3res_u.resok.afiles = 0;
+ result.fsstat3res_u.resok.invarsec = 0;
return &result;
}