On Mon, Jun 17, 2002 at 02:34:12PM +0200, Marek Michalkiewicz wrote:
> And, that would be a global sync() not per-device - looks like a hack
> to me.
You can also fsync() block devices to write out the buffers attached to
it. Slightly less of a hack that way.
> The floppy driver itself controls the motor, so could also somehow
> tell the kernel to write back all dirty data just before spinning down.
> IDE disks can spin down automatically after some idle time, but perhaps
> it would be more efficient if Linux could do that in software instead -
> tell the disk to go to sleep ("hdparm -y") if it has not been accessed
> for too long, but write all dirty data first (without resetting the idle
> timer - possible now that the timer is ours and not in the disk).
Have a look at noflushd (available via sourceforge). Never used it with
floppy disks, I admit, but the changes should be straightforward.
Regards,
Daniel.
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
This archive was generated by hypermail 2b29 : Sun Jun 23 2002 - 22:00:23 EST