Write sys call failing
Hello,
My problem is :
In a C code i am writing to a empty binary file using write sys call. In a for loop i am writing from 1000 bytes to 1 byte and at the same time i am checking the return value of write sys call.Upto 286 bytes write returns correct written values but after that it returns -1. Why is this so ?
This consistenly happens.
I am testing on hard disk which has 6 gb free space.
Is there any corruption in file system.
Regards,
PPY
|