Skip to content

Commit

Permalink
Merge branch 'tp/ibm_next_leo_morefixes' into ibm_next_tmp
Browse files Browse the repository at this point in the history
  • Loading branch information
Venkateswararao Jujjuri committed May 16, 2012
2 parents f2e347e + 3d9857a commit ec64a0c
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion src/Protocols/NFS/nfs4_op_open_downgrade.c
Original file line number Diff line number Diff line change
Expand Up @@ -94,10 +94,18 @@ int nfs4_op_open_downgrade(struct nfs_argop4 *op,
* Do basic checks on a filehandle
* Commit is done only on a file
*/
res_OPEN_DOWNGRADE4.status = nfs4_sanity_check_FH(data, REGULAR_FILE);
res_OPEN_DOWNGRADE4.status = nfs4_sanity_check_FH(data, 0LL);
if(res_OPEN_DOWNGRADE4.status != NFS4_OK)
return res_OPEN_DOWNGRADE4.status;

/* Commit is done only on a file */
if(data->current_filetype != REGULAR_FILE)
{
res_OPEN_DOWNGRADE4.status = NFS4ERR_INVAL;
return res_OPEN_DOWNGRADE4.status;
}


/* Check stateid correctness and get pointer to state */
if((rc = nfs4_Check_Stateid(&arg_OPEN_DOWNGRADE4.open_stateid,
data->current_entry,
Expand Down

0 comments on commit ec64a0c

Please sign in to comment.