Re: floppy disk

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 




Erik, osync doesn't seem to "synchronously" read the disk.  It writes the
data immediately, but then if I eject the disk and put it back in with
new data, it reads the old data from the cache.

David


----
David Yang
UIUC Electrical Engineering 2004
http://www.ews.uiuc.edu/~dgyang
dgyang@uiuc.edu


On Fri, 29 Mar 2002, Erik Mouw wrote:

> On Thu, Mar 28, 2002 at 04:51:17PM -0600, David Yang wrote:
> > Erik, I've taken a look at the mtools and it doesn't quite work for what I
> > need.  I need a full featured version of DOS running atop Linux and mtools
> > still has UNIX style options, filenames etc (which is probably better, but
> > doesn't make it DOS).
>
> You know where you can find the source, go fix it.
>
> > Is there a way to rpevent the kernel from caching stuff from fd0?
> > David
>
> Yes, mount with -osync.
>
>
> Erik
>
> > On Thu, 28 Mar 2002, Erik Mouw wrote:
> >
> > > On Thu, Mar 28, 2002 at 11:48:39AM -0600, David Yang wrote:
> > > > Erik, thanks for the info.  I took a look at the mtools and while it's
> > > > cool, I was looking for a lower-level solution.  The problem is when the
> > > > disk is read in linux, it uses it's cached version rather than the updated
> > > > new version.  Is there a way in the kernel to clear out this cache?  (some
> > > > dentry or inode code?)
> > >
> > > Mount with -osync.
> > >
> > > Note: unless you're using a Mac or a Sun, you *really* want to use
> > > mtools. The kernel doesn't like a floppy disk that's removed while
> > > still being mounted (yes, users do such nasty things, even when they're
> > > told not to do so). Mtools has no problems with that, and it solves
> > > your cache problems at the same time.
>
> --
> J.A.K. (Erik) Mouw, Information and Communication Theory Group, Faculty
> of Information Technology and Systems, Delft University of Technology,
> PO BOX 5031, 2600 GA Delft, The Netherlands  Phone: +31-15-2783635
> Fax: +31-15-2781843  Email: J.A.K.Mouw@its.tudelft.nl
> WWW: http://www-ict.its.tudelft.nl/~erik/
> --
> Kernelnewbies: Help each other learn about the Linux kernel.
> Archive:       http://mail.nl.linux.org/kernelnewbies/
> FAQ:           http://kernelnewbies.org/faq/
>

--
Kernelnewbies: Help each other learn about the Linux kernel.
Archive:       http://mail.nl.linux.org/kernelnewbies/
FAQ:           http://kernelnewbies.org/faq/


[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux