[Ilugc] Simple Block Driver (RAM DISK) - Console Crash (specific case)

  • From: cyborg4k@xxxxxxxxx (Shakthi Kannan)
  • Date: Mon Apr 17 21:52:46 2006

Hi Srinivas,

--- "Srinivas G." <srinivasg@xxxxxxxxxxxxxxxxxxxxx>
wrote:

But I am facing a new problem (console crash) when I
try to run the "ls"
command on a mount point after removing the disk
with out unmounting

You should never do this. Always unmount the disk
before removing it:

1. If there is caching of disk write data, then
removing the disk without unmounting it will not cause
the data to be flushed. So, data integrity is not
assured.

2. Driver data will be in an unknown state if not
cleaned up properly.

Please find the attached source. 

Argh! Don't send attachments to e-mails sent to
mailing list. Bad etiquette. Please post it in
pastebin.com and send a link.

SK

--
Shakthi Kannan
http://www.shakthimaan.com

__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com ;

Other related posts: