LinuxQuestions.org
Help answer threads with 0 replies.
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 06-09-2003, 06:49 AM   #1
P_Shep
LQ Newbie
 
Registered: Jun 2003
Location: Reading, UK
Distribution: RH 7.2
Posts: 26

Rep: Reputation: 15
NFS soft mounting


Hi all,

I read that many people don't like the idea if Soft mounting due it's unreliability. However I'm writing sofware which uses NFS storage as back-up to a locally stored copy of a message file.
The software i'm writing is the only application that reads or writes to this partion. The partion will use the sync option when mounting.
If the write result has failed (i used fbopen(), then sendfile() to send the files) i know the file is in someway courrupted, however if function returns OK, can i guarentee that the file has been written OK?

Many thanks,

Paul.
 
Old 06-18-2003, 05:21 AM   #2
P_Shep
LQ Newbie
 
Registered: Jun 2003
Location: Reading, UK
Distribution: RH 7.2
Posts: 26

Original Poster
Rep: Reputation: 15
Nobody know anything about this then?
 
Old 06-18-2003, 05:50 AM   #3
MasterC
LQ Guru
 
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu ; CentOS ; Raspbian
Posts: 12,613

Rep: Reputation: 69
I sure don't. Nah, just that I don't know much about programming, so I don't know what "If function returns OK" means. However, if once you write to the file, something tells you it's done and it does some sort of MD5 kind of check, and it turns out OK, then yeah, I'd say it's OK

I don't know about you though, but I've not had a lot of Linux servers crash on me for me to be too concerned with corruption from NFS transfers...

Cool
 
Old 06-18-2003, 06:04 AM   #4
P_Shep
LQ Newbie
 
Registered: Jun 2003
Location: Reading, UK
Distribution: RH 7.2
Posts: 26

Original Poster
Rep: Reputation: 15
yeah, my assumption would be, since the write is synchronus, that if if returns OK (returns 0 rather then -1 ) then i could be fairly certertain that the file was written correctly.

Thanks for your input
 
  


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
NFS Mounting Riddick Linux - Networking 2 10-21-2005 01:19 AM
nfs client on knoppix 3.9 - problem mounting nfs drive Rod Butcher Linux - Networking 1 09-21-2005 04:18 AM
nfs mounting vic Linux - Networking 4 11-19-2004 01:27 PM
NFS mounting RH 7.3 suchi Linux - Networking 0 11-18-2003 04:41 AM
nfs mounting chrismiceli Linux - Networking 1 06-07-2003 06:48 PM

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

All times are GMT -5. The time now is 06:31 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