From owner-freebsd-hackers Wed Jan 15 4:59:34 2003 Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 4E14F37B401 for ; Wed, 15 Jan 2003 04:59:33 -0800 (PST) Received: from pcwin002.win.tue.nl (pcwin002.win.tue.nl [131.155.71.72]) by mx1.FreeBSD.org (Postfix) with ESMTP id 737BA43ED8 for ; Wed, 15 Jan 2003 04:59:32 -0800 (PST) (envelope-from stijn@pcwin002.win.tue.nl) Received: from pcwin002.win.tue.nl (orb_rules@localhost [127.0.0.1]) by pcwin002.win.tue.nl (8.12.6/8.12.6) with ESMTP id h0FCxTJB035172 for ; Wed, 15 Jan 2003 13:59:29 +0100 (CET) (envelope-from stijn@pcwin002.win.tue.nl) Received: (from stijn@localhost) by pcwin002.win.tue.nl (8.12.6/8.12.6/Submit) id h0FCxT77035171 for freebsd-hackers@freebsd.org; Wed, 15 Jan 2003 13:59:29 +0100 (CET) Date: Wed, 15 Jan 2003 13:59:29 +0100 From: Stijn Hoop To: freebsd-hackers@freebsd.org Subject: determining inserted floppy size Message-ID: <20030115125929.GA33155@pcwin002.win.tue.nl> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="UugvWAfsgieZRqgk" Content-Disposition: inline User-Agent: Mutt/1.4i X-Bright-Idea: Let's abolish HTML mail! Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG --UugvWAfsgieZRqgk Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hi, I'm trying to write a kind of 'floppy dump' program, and therefore I would like to know if it is possible to determine the size of the floppy inserted into the drive. ioctl(fd, FD_GTYPE) gives me the type of the *drive* which is not what I wa= nt, ioctl(fd, DIOCGDINFO) doesn't work because there is no disklabel, and looki= ng through /sys/isa/fd.c doesn't give me a further clue either. Is this not possible? --Stijn --=20 ] Nothing safer than a 'cat /dev/wallet | grep $price > real-person; \ ] mv $thing-to-buy $my-case I'd prefer 'mv $thing-to-buy $my-case && cat /dev/wallet | \ grep $price > real-person -- Anonymous, freebsd-questions@freebsd.org, in message <200108020628.IAA11775@hugo10.ka.punkt.de> --UugvWAfsgieZRqgk Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.1 (FreeBSD) iD8DBQE+JVsxY3r/tLQmfWcRAnOQAJ959jTZWRmCWbpWGGwJAeaTRUQx+QCeM4lB IA91wAdlikZ6MOFelHHqJGE= =qb5S -----END PGP SIGNATURE----- --UugvWAfsgieZRqgk-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message