Skip to Main Content

DevOps, CI/CD and Automation

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Multi-access to file on NFS mount

807578Apr 4 2000
NFS multi-access to file
04-apr-00 : 8:03 :ranadive
Hi,

I am currently working on a realtime system. The environment have two Solaris server both connected to NFS mount. There is a Process 1 (code is written is C) on Server 1 which Creates and writes to a data file on NFS mount. Data file created is a simple ASCII file with \n at the end. Process 2 (code is written is C) runs on Server 2 reads this file.

I observed that Process 2 sometimes read partial record (it uses fgets function to read from file) i.e. record does not contain the tail end and \n etc.

Now if I run the same Process 2 on Server 1 instead of Server 2 then everything works fine.

Can any one help me why i see such a behaviour and how to fix it.

Thanks in advance.
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on May 2 2000
Added on Apr 4 2000
0 comments
112 views