Re: /dev/winchester reporting their size

=?iso-8859-1?Q?Johnny_Teve=DFen?= (j.tevessen@gmx.net)
Mon, 30 Nov 1998 18:50:50 +0100


Quoting Matthew Kirkwood (weejock@ferret.lmh.ox.ac.uk):

> should my floppy module get loaded and the
> drive probed every time someone stats /dev/fd0? That makes ls -l /dev/ a
> particularly effective DoS.

IIRC correctly symlinks are dereferenced, too, on access, which can lead
to access on a different physical volume.

> All in all, it just doesn't really fit, I think.

So the best way to be able to handle both flat copies and the devices
themselves in mostly the same manner is to find out their sizes by
seek()ing twice?

ciao,
johnny

-- 
Trust no-one.

- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.rutgers.edu Please read the FAQ at http://www.tux.org/lkml/