From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fee84,ddceafdecd063dcf X-Google-Attributes: gidfee84,public From: zbs@softec.sk (Zoltan Basti) Subject: Re: 2-4Gb hard drives under OSF 3.2 Date: 1995/12/21 Message-ID: #1/1 X-Deja-AN: 122486066 references: <4b4etu$gkk@freelunch.freenet.kiev.ua> <4b926h$251@news.belwue.de> <4b9e11$ja7@lll-winken.llnl.gov> organization: Softec s.r.o. newsgroups: comp.unix.osf.osf1 It was a dark and stormy night when oberman@icaen.llnl.gov had this to say: : In this case, it is OK. But take the case of a disk that has more sectors on : its outer tracks than on its inner ones (NT# is not constant). These are not : uncommon. I have a Fujitsu that does this. There is no way I could configure : the disk in a disktab entry which would not waste space. And, since a SCSI dosk : is addressed by block number and not absolute location, there is no reason for : the OS to care. : And don't forget the non-zero possibility of a typo slipping through. That : could prove awkward. The drive always knows its exact configuration. Why not : simply ask it? You are right, and this was indeed possible under Ultrix. There was in fact no need for a disktab file, because the appropriate disklabel-creating command (newfs) had the capability to query the SCSI disks. There was a documented system call, creatediskbyname, which you could use as well. I don't know why this functionality is missing in dUnix, but nevertheless I think disktab entries are not that important. Given the way SCSI disks are addressed, any geometry will do, provided it gives the real disk capacity. Whether you have different number of sectors in different tracks really doesn't matter in this case. I know UFS used to use the disk geometry to optimize the filesystem. I don't know if AdvFS does this too, but again, you can never know a SCSI disk's *real* geometry. SCSI disks generally lie about their geometry when they have to, and I've seen disks where you could even choose what they should lie. -- Zoltan Basti