Hi,

     Here is my problem.
I wrote a small program in which I have used certain ioctls, which are used
by the fdisk command, to get the partition details for an external disk. so
far so good! it returns the table successfully. But when I remove the cable
connecting the disk, i am still able to get the partition details, through
the buffers(this is the Linux's implementation to make life easier!!)
What i need to do is read from the disk directly! So, is there any way I
can invalidate the buffer or bypass it and read from the disk directly. Or
is there any other ioctl that will flush the buffer for me so that the next
read will be done directly from the disk !!
As far as possible I want to Avoid making changes at the Kernel level !!

TAI,

Regards,
Sandeep Sundaram

_____________________________________________
Free email with personality! Over 200 domains!
http://www.MyOwnEmail.com


-----------------------------------------------------------------------
For more information on the LIH mailing list see:
http://lists.linux-india.org/lists/LIH

Reply via email to