NFS Client - CREATE Command Error

Discussion in 'Linux Networking' started by Ankit Singh, Oct 11, 2013.

  1. Ankit Singh

    Ankit Singh New Member

    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    1
    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

Share This Page