[lkml]   [1996]   [Jun]   [10]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectRe: Floppy driver concerns

>Actually the above is a bit too harsh, as FDFLUSH will call
>invalidate_drive() and the kernel will think that the media has actually
>changed (see below) when it hasn't.

ok, agreed.

Btw, I wonder why these common ioctl's aren't handled in a common
file, as is already done with BLKROSET and BLKROGET via the RO_IOCTLS
macro. For instance, code for BLKFLSBUF, BLKRAGET and BLKRASET is
similar for all block devices, except for taking advantage of local
macros where available.

>> + /* BLKRRPART is not defined as floppies don't have
>> + * partition tables */
>foobar# fdisk /dev/fd0
>Command (m for help): p
>Disk /dev/fd0: 2 heads, 18 sectors, 80 cylinders


What you're seeing here is the new HDIO_GETGEO ioctl in action :-)
(As floppy disks don't have partition tables, it's not really useful
for fdisk, but might be useful for Lilo in the future.)


 \ /
  Last update: 2005-03-22 13:37    [W:0.026 / U:1.412 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site