title: error no set to EIO while using pwrite() API
body: <p>I have remote disks mounted on my system using NFS and I am trying to write to the files on the mounted remote disks using pwrite() API.</p>
  
  <p>It doesn't happen every time but in some cases while doing I/O pwrite() fails and set the error number to EIO(Input/Output error). </p>
  
  <p>Can some one please explain why this error occur on the first place and is there any way I can correct it?</p>
  
  <p>Thanks</p>