From owner-cvs-all Wed May 13 12:01:19 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id MAA22338 for cvs-all-outgoing; Wed, 13 May 1998 12:01:19 -0700 (PDT) (envelope-from owner-cvs-all@FreeBSD.ORG) Received: from godzilla.zeta.org.au (mothra.kralizec.net.au [203.15.68.22] (may be forged)) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id MAA22293; Wed, 13 May 1998 12:01:01 -0700 (PDT) (envelope-from bde@godzilla.zeta.org.au) Received: (from bde@localhost) by godzilla.zeta.org.au (8.8.7/8.8.7) id EAA24203; Thu, 14 May 1998 04:55:04 +1000 Date: Thu, 14 May 1998 04:55:04 +1000 From: Bruce Evans Message-Id: <199805131855.EAA24203@godzilla.zeta.org.au> To: bde@zeta.org.au, julian@whistle.com Subject: Re: cvs commit: src/sys/i386/i386 autoconf.c src/sys/kern kern_shutdown.c Cc: bde@FreeBSD.ORG, cvs-all@FreeBSD.ORG, cvs-committers@FreeBSD.ORG, cvs-sys@FreeBSD.ORG, luoqi@watermarkgroup.com Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk >> I don't want to use a disk label. I use a DOS partition (shared with >> Linux) for swap and dumps. I had to label it to get it to work under >> FreeBSD (except under SLICEd kernel which don't recognise labels on Linux >> swap partitions). > >That's not really an acceptable kludge for production.. It's standard BSD. To use a disk, you have to label it. It's Linux's problem if the label breaks operation under Linux :-). >the disklabel doesn't make sense in the contect of a linux partition. Labels make sense on all disks. >that's why it doesn't get looked for with SLICE. >(It could be changed (one line change), but that would be rather unclean). This is required for backwards compatibility. >Whether a disk subsection is swappable or dumpable needs to be >independent of whether it is labled or not or whether it ends in the last >letter 'b'. Yes, it should be decided by the user asking for it. >> The label sector is essentially read-only in Linux - >> the zero bits in it are interpeted as bad sectors, so I lose a little >> swap space under Linux :-). > >that is a kludge I wouldn't have admitted to :-) Knowing exactly what it doess just makes it safe for me to skip running mkswap and disklabel to reinitialize. >> No, raw disks don't have labels, and labels are too large. DIOCGPART >> and d_maxio should be replaced by additional interfaces like d_psize() >> instead. Eventually the interfaces should be something like: >> >> #define d_psize(diskdevp) ((diskdevp)->d_psize) > > what's a diskdevp? What do you want it to be? :-) Just a pointer to device info (per-device, not per-major). Bruce To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message