phk
3210deb041
Bring us one step closer to sysinstall'ing on a DOC2k device.
1999-01-14 21:48:13 +00:00
jkh
ce49697787
Changes for alpha support.
...
Submitted by: dfr
1999-01-08 00:32:19 +00:00
jkh
4fc63e8029
Eliminate all dependence on boot1 and boot2. This is passed in by
...
Set_Boot_Blocks() anyway and should thus have never been a part of
libdisk, it should have been provided by the client of libdisk since
passing the information in is already part of the API.
1998-12-31 02:35:43 +00:00
jkh
174157b2de
Transition libdisk to use /boot since what it's looking for (boot1 and boot2)
...
are now there.
1998-12-30 13:29:11 +00:00
bde
c7d4679276
Backed out previous commit. It depends on a.out utilities and libraries
...
somehow being available even on pure elf systems.
1998-12-30 12:06:08 +00:00
bde
64edc80b7a
Fixed bootstrapping of /usr/mdec/boot[12].
1998-12-30 11:26:24 +00:00
phk
8d37d7da90
Add "fla" to Disk_Names()
1998-12-19 18:48:33 +00:00
msmith
877e8e9a78
Fixes for handling 'wfd' (and any other disk with a non-2-character name)
...
Submitted by: Some from Satoh Junichi (junichi@astec.co.jp )
1998-10-27 21:14:03 +00:00
dfr
b0393b65d5
Teach libdisk about alpha boot blocks.
1998-10-06 11:57:08 +00:00
jkh
e2bde560d5
Eliminate unaligned access on Alpha and also neaten up this code a little.
...
Submitted by: dfr
1998-09-30 21:40:51 +00:00
gibbs
12e1349910
Remove references to the "od" device.
1998-09-15 10:23:17 +00:00
jdp
4c0dd08a5a
Extend the existing hackery to set the disk type to SCSI for the
...
"da" and "od" devices. Formerly ESDI was used for them, causing
problems for fresh installations of CAM systems.
1998-06-27 02:01:25 +00:00
jkoshy
0d7d76d982
Spelling corrections.
...
PR: 6868
Submitted by: Josh Gilliam <josh@quick.net>
1998-06-06 05:50:53 +00:00
obrien
8bc69f7d31
Add new NetBSD FFS with FDISK partition ID 0xa9
...
Obtained from: Frank van der Linden <frank@wins.uva.nl>
1998-05-19 11:15:44 +00:00
obrien
746b4b1f11
Change an arbitarly hardcoded `10' to MAX_NO_DISKS, which is currently "20".
...
Otherwise can't see sd10 (obtained using wired down sd unit numbers),
reguardless of the number of actual disks you have.
1998-05-15 21:17:01 +00:00
jkh
f572092cb8
Add Compaq & SCO partition types.
...
PR: 6092
Submitted by: Drew Derbyshire <ahd@kew.com>
1998-03-22 07:41:23 +00:00
jkh
7561a96183
MF22: teach about LS-120 devices.
1998-03-20 23:43:04 +00:00
charnier
79fc0e5555
.Sh AUTHOR -> .Sh AUTHORS. Use .An/.Aq
1998-03-19 07:34:22 +00:00
ache
e8c2fe252f
Add more AIX/DOS/Win95 partition types
1998-03-14 21:14:31 +00:00
ache
1bc27d9539
Add primary fat-32
1998-03-07 08:45:46 +00:00
obrien
f3f529e90a
Reconized OpenBSD partitions.
1998-03-05 03:08:16 +00:00
jkh
ea609c7dcd
Be more verbose if we can't determine device major/minor.
1998-02-10 17:19:12 +00:00
bde
69cc484699
Fixed #includes in the synopsis and in an example. <sys/socket.h>
...
isn't a prerequisite, since it isn't required for the prototypes
and isn't always needed to call the functions (the address family
might be a variable).
1998-01-20 11:03:15 +00:00
jkh
629cdf3415
Non-intrusive changes to support Justin's CAM stuff.
1998-01-16 12:50:36 +00:00
jdp
a3a1ff9596
Fix erroneous format string.
1997-11-18 05:34:45 +00:00
bde
09f52e0fae
Fixed this header to compile with gcc -pedantic -Werror (removed comma
...
at end of enum).
1997-03-19 01:54:04 +00:00
peter
6b08958c64
Revert $FreeBSD$ to $Id$
1997-02-22 15:12:41 +00:00
obrien
4a62d28c39
Adds slice_type_name() which extends chunk_n[] for subtype's too.
...
Curorary review by: phk
1997-01-23 06:29:01 +00:00
jkh
808a36ef65
Make the long-awaited change from $Id$ to $FreeBSD$
...
This will make a number of things easier in the future, as well as (finally!)
avoiding the Id-smashing problem which has plagued developers for so long.
Boy, I'm glad we're not using sup anymore. This update would have been
insane otherwise.
1997-01-14 07:20:47 +00:00
jkh
0e16e2c15f
Close PR#2198:
...
I've added an installation from optical disk drive facility.
This enables FreeBSD to be installed from an optical disk, which
may be formatted in "super floppy" style or sliced into MSDOS-FS
and UFS partitions.
Note: ncr.c should be reviewed by Stefan Esser <se@freebsd.org>
and cd.c by Joerg Wunsch <joerg@freebsd.org> before bringing this
into 2.2.
Submitted-By: Shunsuke Akiyama <akiyama@kme.mei.co.jp>
1996-12-13 07:55:14 +00:00
phk
ed9e01dfb5
Improve the Dangerously Dedidcated mode a bit. Not much, but a bit better.
1996-11-27 22:44:43 +00:00
peter
feb74039a2
cmp -s || install -c ==> install -C
1996-08-30 01:51:09 +00:00
jkh
a97e1fa1c1
Cast lseek arguments appropriately.
...
Submitted-By: "Frank ten Wolde" <franky@pinewood.nl>
1996-07-09 12:17:46 +00:00
bde
34b72c7bcc
Removed -g from CFLAGS.
1996-06-23 13:11:59 +00:00
wosch
9f795376b3
`mv'' ->
`mv -f''
...
``rm'' -> ``rm -f''
so mv/rm may not ask for confirmation if you are not root
1996-05-07 23:19:49 +00:00
jkh
ac4be47489
Fix mis-declared static arrays that made sysinstall SEGV in
...
Set_Boot_Blocks(). Boy, this one had me tearing my hair out!
I hate how the loader distinguishes between `extern char *foo' and
`extern char foo[]' sometimes! :-)
1996-04-29 06:45:33 +00:00
jkh
b431239bb3
Move some warn()'s into DEBUG space since I don't need them coming
...
out in my curses interfaces and spamming my screen.
1996-04-29 05:03:02 +00:00
joerg
18d2a8c9e5
Make libdisk C++ aware:
...
- add __BEGIN_DECLS and __END_DECLS,
- add a bunch of ``const'' qualifiers all over the place,
- rename the `private' struct member into `private_data' to avoid the
clash with the C++ keyword.
1996-03-24 18:55:39 +00:00
jkh
e938ba728f
Fix bogus MLINKS line. When is the old libdisk going to go away, BTW?
1996-03-18 15:15:42 +00:00
joerg
126dc2f282
libdisk is now `adult':
...
. install libdisk.h into /usr/include
. add a (preliminary) manpage, mostly featured after phk's comments
in libdisk.h
1996-03-17 23:20:09 +00:00
peter
f319c01b19
Repository copy src/release/libdisk to src/lib/libdisk as per recent
...
discussion on -core about disk partitioning tools etc.
Add NOPIC=yes to Makefile to prevent any possibility of version mismatch
because of the potential grave consequences. (as suggested by phk)
Note that this is also on RELENG_2_1_0, since the sysinstall stuff is
hopefully going to remain in sync.
1996-03-17 19:02:07 +00:00
peter
03382d7ccd
Update the -current sources from the 2.1 branch.
...
Approved (in spirit) by: jkh
1995-12-07 10:34:59 +00:00
dg
b87f24347c
Brought in changes from rev 1.14.2.1 into main branch.
1995-08-26 04:57:03 +00:00
rgrimes
1b1ee55538
Merge RELENG_2_0_5 into HEAD
1995-06-11 19:33:05 +00:00
rgrimes
bb2ad2880b
Remove trailing whitespace.
1995-05-30 08:29:07 +00:00
phk
20051e5d38
Remove Ontrack special from All_FreeBSD().
...
Add chunk->disk pointer.
1995-05-25 06:14:49 +00:00
jkh
33ee1a22ed
Align slices to cylinder boundries.
...
Submitted By: phk
1995-05-24 08:59:40 +00:00
phk
048a5f2fc5
Fix a typo, now there should always be an active slice.
1995-05-21 07:47:24 +00:00
phk
7ee584e87b
Do not allocate the first track.
1995-05-20 19:11:44 +00:00
phk
663c5c1f9d
Remove two printfs before Jordan has a fit over them.
1995-05-18 22:25:37 +00:00
phk
ff15745bd7
Fixed the calculation of the reserved space for bad144. Thanks Rod!
1995-05-15 19:03:08 +00:00
phk
ad0a2407f5
Create_Chunk_DWIM will not allocate anything in the last cylinder of a
...
CHUNK_BAD144 slice.
Also mknod the 'c' partition for freebsd slices, so bad144(8) will have
something to work on.
1995-05-15 00:58:25 +00:00
phk
c9a80054da
Added MakeDevDisk(struct disk*, char *path);
...
fixed bug in extended slice naming.
1995-05-12 18:50:00 +00:00
phk
2e780cd86f
Get the CHUNK_COMPAT_BSD flag right.
1995-05-11 05:22:54 +00:00
phk
b06a2da118
Create_Chunk_DWIM() is here, though it doesn't quite do what the name implies.
1995-05-10 05:57:04 +00:00
phk
021b1e61da
Recognize slice type #6 as dos
...
handle OnTrack Disk manager correctly.
1995-05-08 02:08:33 +00:00
phk
6228dff953
Add check for rootfs > cyl 1024.
1995-05-08 01:34:31 +00:00
phk
dd5b13ab4b
I bet Jordan is tearing his hair out, trying to figure the previous patch
...
out... here is the real thing.
1995-05-08 01:26:47 +00:00
phk
7633746449
Fix bug.
1995-05-08 00:44:46 +00:00
jkh
044b192e69
Whoops! An extra paren somehow got in there. Fixed.
1995-05-07 01:28:16 +00:00
jkh
97b64700b1
Always zero new chunks - keeps things like the private structures from having
...
bogus data in them.
1995-05-07 01:25:22 +00:00
phk
3f92c42b37
General sanitation and cleanup. Killed the "reserved" type, it wasn't.
1995-05-06 03:28:32 +00:00
phk
2ef08387ec
If in Create_Chunk we (type==freebsd && (flags&CHUNK_ALIGN)), then we will
...
align this chunk properly. Have at it Jordan...
1995-05-05 07:07:45 +00:00
phk
a0086bd087
Make the partitions names even more sensible
...
CheckRules sets the CHUNK_ALIGN & CHUNK_PAST_1024 flags.
1995-05-04 07:00:57 +00:00
phk
3a333cad85
Add the private void *pointer to the chunks, and the functions to manage it.
...
Make the reassignment of partition names less bogus.
1995-05-03 22:36:52 +00:00
jkh
3864ecd382
Export the chunk names properly.
1995-05-03 17:38:00 +00:00
phk
af83fa703c
Make the target for tst01 more sensible.
...
Remove bogus targets.
Allocate partition letters as follows:
lowest offset "flags & CHUNK_IS_ROOT" gets 'a',
lowest offset "subtype==FS_SWAP" gets 'b'
the rest is allocated in offset order from this sequence "defghab".
This will generally make sense.
Added rules to complain if more than one CHUNK_IS_ROOT or more than one
FS_SWAP per FreeBSD chunk.
Set CHUNK_IS_ROOT on the 'a' partition in Open_Disk.
Run Fixup_Names in Open_Disk.
1995-05-03 06:30:59 +00:00
jkh
1c18a4d506
foo -> unknown
1995-05-02 20:16:16 +00:00
jkh
41c930394a
I need Open_Disk() to not spew on my screen. #ifdef out some diagnostic
...
printfs.
1995-05-02 19:52:27 +00:00
jkh
d0d51976ab
foo -> unknown.
...
I have to be able to show this stuff to the user. :-)
1995-05-01 21:30:24 +00:00
jkh
d369a779fb
Stick a more BSD-like Makefile here so that I can link to the library.
1995-05-01 08:08:02 +00:00
phk
632f39cd53
start CHS is 0xff,0xff,0xff if past 1024.
...
end CHS is 1023,bios_hd,bios_sect if past 1024. This way we can find
bios the geometry again.
Added a primitive "scan" to tst01.
1995-05-01 04:05:27 +00:00
phk
0ffc27529d
Use the DIOCSYNCSLICE ioctl now. (use only with kernel from this morning).
...
Get the CHS's right.
Get the disklabels (more) right.
1995-04-30 22:51:05 +00:00
phk
207cc9aa1b
get bootblocks right.
...
Add mbr and bteasy17 to tst01
read partitions from kernel instead of disk.
Still problems with writing labels, discussing with Bruce.
Extended slices doesn't get written yet.
1995-04-30 11:04:16 +00:00
phk
e3530256c9
Use 0xff for CHS when past 1024 cyls.
...
Fix (hopefully) a bug Gary found.
1995-04-30 07:30:45 +00:00
phk
5b57901e70
Make the default case less scary :-)
1995-04-30 06:19:32 +00:00
phk
b86a741dd0
Now we do writes too.
1995-04-30 06:09:29 +00:00
phk
9684e60aa3
Names are assigned when chunks are created.
...
Rules for only one fat & one extended in MBR.
1995-04-29 07:21:14 +00:00
phk
2d7a4f8776
Even More stuff. Disk_Names() is here amongst other things.
1995-04-29 04:50:39 +00:00
phk
093fd20263
Next Iteration, getting better.
...
Made an All_FreeBSD() function.
Added a cmd-line interface (lowest rank) to the tst01 program.
The tst01 program is harmless (worst it can do is coredump), but it
is instructive to run, you can see what the slice-code things of your
disk...
1995-04-29 04:00:57 +00:00
phk
f7bf327ed4
Sanitize and explain a little bit... Implement the first rules...
1995-04-29 01:55:25 +00:00
phk
773ad9f330
This is a revision 0.00 of the backend stuff for the fdisk/disklabel stuff
...
in the new sysinstall. If you want to give a helping hand, then send email
to phk@FreeBSD.ORG . DO NOT COMMIT TO THIS DIRECTORY!
1995-04-28 23:57:04 +00:00