I was mounted the device after making a FS on it using the command
mke2fs.
I could not understand your statement "first time device opens and
second time onward it fails to open". Could you please explain the steps
that are you doing?
#./a.out
#./a.out
Open failed
#./a.out
Open failed
As I said, I didn't mount the device. Could you tell me exact steps you
followed to make fs and mount?
Regards,
Mohanlal
--
Kernelnewbies: Help each other learn about the Linux kernel.
Archive: http://mail.nl.linux.org/kernelnewbies/
FAQ: http://kernelnewbies.org/faq/