LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 10-11-2013, 04:35 AM   #1
ankit_singh
LQ Newbie
 
Registered: Mar 2013
Posts: 20

Rep: Reputation: Disabled
NFS Client - CREATE COMMAND Error


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
 
Old 10-14-2013, 07:04 AM   #2
vishesh
Member
 
Registered: Feb 2008
Distribution: Fedora,RHEL,Ubuntu
Posts: 661

Rep: Reputation: 66
Does you NFS exported in Read/Write mode.

Thanks
 
Old 10-15-2013, 01:54 AM   #3
ankit_singh
LQ Newbie
 
Registered: Mar 2013
Posts: 20

Original Poster
Rep: Reputation: Disabled
Yes its in Read/Write mode...
/etc/exports has the below entry
/nfs_share *(rw,insecure,sync,no_root_squash,no_subtree_check)

Moreover am able to read/write to NFS share if do its normally through ssh and use copy command to read/write files, but the problem is only when i use my application.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] NFS mount fails (times out): NFS server is in DMZ, NFS client is in intranet Hiroshi Linux - Networking 2 05-24-2010 10:22 AM
NFS error: sometimes unable to find the files at NFS-client machines samengr Linux - Server 0 09-01-2008 11:26 AM
How to create FTP server/client the easiest way using command-line? mus1402 Linux - Networking 1 02-08-2006 06:16 AM
NFS - write error from client to host echo_max Linux - Software 0 07-25-2005 03:17 AM
I need floppy mini linux with nfs client and dd command cccc Linux - Distributions 2 10-04-2003 05:11 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 12:50 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration