*BSD News Article 11364


Return to BSD News archive

Received: by minnie.vk1xwt.ampr.org with NNTP
	id AA1669 ; Tue, 23 Feb 93 14:52:43 EST
Path: sserve!manuel.anu.edu.au!munnari.oz.au!news.Hawaii.Edu!ames!agate!spool.mu.edu!uunet!pipex!bnr.co.uk!uknet!axion!lessen
From: lessen@axion.bt.co.uk (Lee Essen)
Newsgroups: comp.unix.bsd
Subject: Device Drivers and Partition Sizes
Message-ID: <1993Feb19.080713@axion.bt.co.uk>
Date: 19 Feb 93 08:07:13 GMT
Sender: news@axion.bt.co.uk
Reply-To: lessen@axion.bt.co.uk (Lee Essen)
Organization: British Telecom Research Labs
Lines: 11


>From within a device driver, what is the easiest way of finding the size
of a partition, given the device name   eg. /dev/wd0h

My thoughts are to do a get_disk_info IOCTL but this won't work with
the floppy drives, is there any standard way? (And can it be done from
within a device driver?)

Thanks,

Lee.