NFS Client - CREATE Command Error

A

Ankit Singh

Guest
Hello Developers,

AM writing a small NFS client application which can read and write files from NFS Server to NFS Client. NFS READ is working absolutely fine for me but am facing some problem while NFS WRITE.

As per my understanding to write a file we need to do LOOKUP and if file is missing we need to CREATE it before passing WRITE Command, but am facing problem while CREATE command as it is returning NFSERR_ACCES (13) error. Below are the values am passing to nfsproc_create_2()

dir.data --> mounted dir handle
where.name --> test.txt
attributes.mode --> 0666
attributes.uid --> 0
attributes.gid --> 0
attributes.size --> 0

Please let me know where i am wrong or is there any thing am missing.

Regards,
Ankit Singh
 

Members online


Latest posts

Top