Hi Fnds,
Iam doing a copy operation from internal hard disk to external devices
like usb/sd card.
copy logic is
1) Open file in internal Hard disk in read mode
2) Open file in external devices in write mode with same file name.
3) Read the data from opened file in internal HDD and write to the file
opened in external device.
4) Repeat step 3 untill End of file reached or any error occured.
5) Close both files.
I kept 10 files to copy in a loop.
If the device is copying 4th file and device is crashed. i will get
write error and i will stop the current copy but i will
try to open next time and i will get open error and if i know the device
is crashed, i can stop trying to open the next files.
So, how can I detect the device is crashed
and because of that I am not able to open a file in that device.
Please let me know if anyone has solution for this or any suggessions.
Thanks,
Regards,
Dilip Kumar
_______________________________________________
Davinci-linux-open-source mailing list
[email protected]
http://linux.davincidsp.com/mailman/listinfo/davinci-linux-open-source