Date: Tue, 05 Feb 2002 09:30:06 -0700 (MST) From: "M. Warner Losh" <imp@village.org> To: yar@FreeBSD.ORG Cc: hackers@FreeBSD.ORG Subject: Re: Get disk device size? Message-ID: <20020205.093006.104650505.imp@village.org> In-Reply-To: <20020205125557.A10266@comp.chem.msu.su> References: <20020205125557.A10266@comp.chem.msu.su>
next in thread | previous in thread | raw e-mail | index | archive | help
In message: <20020205125557.A10266@comp.chem.msu.su> Yar Tikhiy <yar@FreeBSD.ORG> writes: : Could anyone point out at an ioctl or any other way to get a disk : device size granted the device has no BSD label or PC slice table : on it? Ways for both the userland and kernel are welcome. For userland, look at how fdisk and/or disklabel get it. For kernel, look at kern/subr_disk*.c Warner To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20020205.093006.104650505.imp>