From owner-freebsd-hackers Sun Jan 7 01:41:00 1996 Return-Path: owner-hackers Received: (from root@localhost) by freefall.freebsd.org (8.7.3/8.7.3) id BAA00183 for hackers-outgoing; Sun, 7 Jan 1996 01:41:00 -0800 (PST) Received: from ra.dkuug.dk (ra.dkuug.dk [193.88.44.193]) by freefall.freebsd.org (8.7.3/8.7.3) with SMTP id BAA00167 for ; Sun, 7 Jan 1996 01:40:49 -0800 (PST) Received: from critter.tfs.com ([193.88.44.194]) by ra.dkuug.dk (8.6.12/8.6.12) with ESMTP id KAA06892; Sun, 7 Jan 1996 10:38:47 +0100 Received: from localhost.tfs.com (localhost.tfs.com [127.0.0.1]) by critter.tfs.com (8.6.12/8.6.12) with SMTP id KAA05569; Sun, 7 Jan 1996 10:15:30 +0100 X-Authentication-Warning: critter.tfs.com: Host localhost.tfs.com didn't use HELO protocol To: Michael Smith cc: hackers@FreeBSD.ORG Subject: Re: Add new slice to running system, comments? In-reply-to: Your message of "Sun, 07 Jan 1996 17:27:24 +1030." <199601070657.RAA19890@genesis.atrad.adelaide.edu.au> Date: Sun, 07 Jan 1996 10:15:30 +0100 Message-ID: <5567.821006130@critter.tfs.com> From: Poul-Henning Kamp Sender: owner-hackers@FreeBSD.ORG Precedence: bulk > It looks like I want to add another ioctl to dsioctl(), which takes a new > diskslice structure and adds it to the list for the given disk. Well, this is not that easy actually, because the current slice code really dislikes overlapping slices. Have you tried mounting the msdos fs, and using the vn driver for swapping on the windows file ? > I need some answers to the following, which I haven't been able to > resolve by ratting around in the kernel. > > - If I just add the slice, will I be able to swap on the block device for > it? eg. for /dev/wd0 with no extended gumpf, we'd come in as /dev/wd0s5 > (slice numbering in the structure itself is _weird). Will I be able > to swap on this, or will I have to knock up a label for it? No, that would work fine. You could even newfs it :-) Isn't there some static gunk in these files that we shouldn't write ? I belive that if you mess with the administrative structures windows will barf. > - What partition type should I allocate to the slice? I'd like to use > something unique, but I suspect that to swap on it I'll need to use > 165. Any comments? Anything should be ok. > - If I have to cons a label, which fields are necessary? There's a lot of > cruft in there that's not even vaguely relevant, but I can't be sure of > all of it. shouldn't be needed, though I may be wrong. > - Is the OS/2 SWAPER.DAT file allocated contiguously? (I believe not). > If it is, I may add support for hunting it down (currently only files > in the root directory are supported). No idea. -- Poul-Henning Kamp | phk@FreeBSD.ORG FreeBSD Core-team. http://www.freebsd.org/~phk | phk@login.dknet.dk Private mailbox. whois: [PHK] | phk@ref.tfs.com TRW Financial Systems, Inc. Future will arrive by its own means, progress not so.