[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [MiNT] How to unmount a partition?
On Sat, Feb 19, 2000 at 01:25:18AM +0100, Guido Flohr wrote:
> Before you can unmount you would have to mount and that has several
> disadvantages, ask Frank about it. Besides, there are few machines (no
The mounting can be done automatically just like the kernel does now.
Think of unmounting as flushing all dirty buffers and setting a read-only
flag on the device.
> Ataris) where you can prevent the user from simply pressing the eject
> button of the floppy. If the floppy disk isn't synched you are likely to
> lose data. That is no MiNT problem but a general one.
Right. However, most (all?) SCSI removable drives *can* lock the eject
button, so it would be wise to use that feature - and AFAIK, the harddisk
driver will actually do that if you lock the device.
So the only thing needed would be a method to call a unmount/eject action in
the filesystem, instead of the harddisk driver (which will not flush buffers
and set the clean flag).
cu
Michael
--
Michael Schwingen, Ahornstrasse 36, 52074 Aachen