Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 14 May 1998 04:55:04 +1000
From:      Bruce Evans <bde@zeta.org.au>
To:        bde@zeta.org.au, julian@whistle.com
Cc:        bde@FreeBSD.ORG, cvs-all@FreeBSD.ORG, cvs-committers@FreeBSD.ORG, cvs-sys@FreeBSD.ORG, luoqi@watermarkgroup.com
Subject:   Re:  cvs commit: src/sys/i386/i386 autoconf.c src/sys/kern kern_shutdown.c
Message-ID:  <199805131855.EAA24203@godzilla.zeta.org.au>

next in thread | raw e-mail | index | archive | help
>> 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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199805131855.EAA24203>