encode_fattr3(&wcc.after.post_op_attr_u.attributes, inode);
result.write3res_u.resok.file_wcc = wcc;
result.write3res_u.resok.count = argp->count;
- result.write3res_u.resok.committed = FILE_SYNC;
+ result.write3res_u.resok.committed = UNSTABLE;
+ memcpy(result.write3res_u.resok.verf,
+ nfsd_instance_verf_cookie, NFS3_WRITEVERFSIZE);
+
+ if (argp->stable != UNSTABLE) {
+ bluesky_inode_do_sync(inode);
+ result.write3res_u.resok.committed = FILE_SYNC;
+ }
- bluesky_inode_do_sync(inode);
g_mutex_unlock(inode->lock);
async_rpc_send_reply(req, &result);
result.commit3res_u.resok.file_wcc.after.present = TRUE;
encode_fattr3(&result.commit3res_u.resok.file_wcc.after.post_op_attr_u.attributes, inode);
+ memcpy(result.commit3res_u.resok.verf,
+ nfsd_instance_verf_cookie, NFS3_WRITEVERFSIZE);
g_mutex_unlock(inode->lock);