sahlberg / libnfs

NFS client library
Other
524 stars 201 forks source link

NFS v3 CREATE issues unnessesary LOOKUP request #420

Closed kofemann closed 7 months ago

kofemann commented 1 year ago

The logic in nfs3_create_1_cb issues an extra lookup request to get the newly created file's file handle. However, the response to CREATE operation optionally contains the handle in post_op_fh3 field of CREATE3resok structure. Thus the extra lookup should be issued only if post_op_fh3 is not provided.