Commit Graph

146 Commits

Author SHA1 Message Date
dd
a5c0f5b963 wd0 -> ad0
PR:		26343
Submitted by:	Sergey A. Osokin <osa@FreeBSD.org.ru>
2001-04-08 18:41:22 +00:00
ru
86642a4ab4 - Backout botched attempt to introduce MANSECT feature.
- MAN[1-9] -> MAN.
2001-03-26 14:33:27 +00:00
ru
56b5d7535b Set the default manual section for sbin/ to 8. 2001-03-20 18:13:31 +00:00
ru
f4325cbb8b Eliminate mdocNG warnings caused by misplaced or extraneous macro calls. 2001-02-28 17:38:53 +00:00
ru
8a6f8b5fe4 mdoc(7) police: split punctuation characters + misc fixes. 2001-02-01 16:38:02 +00:00
ru
7fe8bd2b88 Prepare for mdoc(7)NG. 2000-12-18 15:16:24 +00:00
ru
e5a37f2e6f mdoc(7) police: added missing .Os call. 2000-12-14 13:58:15 +00:00
obrien
b5bd88f4f5 I didn't maintain the "chs" ordering. Rather the bug was in print_part().
Requested by:	bde.
2000-11-29 20:22:47 +00:00
ru
ea31070695 mdoc(7) police: use the new features of the Nm macro. 2000-11-20 16:52:27 +00:00
obrien
463fa1112a Make the order of values prompted for with the "-i" option match print_part() 2000-11-18 02:55:43 +00:00
ru
7d99729431 Use Fx macro wherever possible. 2000-11-14 11:20:58 +00:00
ru
a6f5d950d8 Avoid use of direct troff requests in mdoc(7) manual pages. 2000-11-10 17:46:15 +00:00
jhb
ef802e57c7 - When adjusting the end of a partition to lie on a cylinder boundary, don't
adjust the size, but the actual end.
- Break out some of the sanity checks on partitions into a sanitize_partition
  function.
- When adjusting partitions, always adjust the start "up", and the end "down"
  so that we stay within the boundaries of the original request.
- Various small nits found by bde.

Reported by:	bde, imp, rgrimes
2000-08-24 17:54:45 +00:00
joe
947183f6d9 0xA0 = Suspend to disk. 2000-08-07 00:26:09 +00:00
jhb
02577b6635 Fix a really stupid bug where I assumed sizeof(int) == 2. This resulted in
MBR's with a 4th slice failing the signature check and fdisk saying that
they are invalid.

Submitted by:	bde
2000-07-21 18:26:20 +00:00
jhb
2f0eda9a3b - Don't try to free mboot.bootinst before it has been allocated. If, for
some reason, mboot.bootinst is not initialized to NULL at the beginning
  of the program, then the last commit to this would try to free whatever
  bogus address is in it.
- Restore the behavior of free()'ing the mboot.bootinst buffer after we
  abuse it to determine the sector size of the disk (as clearly noted in
  the comments).  Properly fix the double free() bug by setting the pointer
  to NULL after we free it.
2000-07-17 19:51:42 +00:00
ache
fce096f2b7 Fix memory leak/double free found by phkmalloc
Uniform mboot.bootinst allocation code to be independent of functions order
2000-07-15 13:37:47 +00:00
jhb
bfeca60861 - Always respect cylinder boundaries when creating slices unless the user
explicitly sets the geometry.
- Allow for MBR boot loaders that are longer than one sector.  Only accept
  boot loaders if their size is a multiple of the sector size, however.
2000-07-12 16:45:11 +00:00
jhb
1a17cb6a0c Catch the usage() function up to the command line changes. Add -I and
remove -e.
2000-06-27 20:36:44 +00:00
brian
93da552950 0x39 == plan9
Obtained from: OpenBSD
2000-06-12 09:08:40 +00:00
ghelmer
35515887ce Add QNX 4 partitions to fdisk's list.
PR:		bin/8809
Submitted by:	"John C. Place" <jcplace@ibm.net>
Prompted by:	<nrahlstr@winternet.com>
2000-06-09 19:10:09 +00:00
msmith
2d0d9c4581 Don't try to open the /dev/rXXX device. 2000-05-31 00:58:55 +00:00
sheldonh
3ccebcbf69 Fix nits in previous commit: restore option ordering of the option
description list; break an overly long line; use the Fx macro instead
of "FreeBSD".
2000-03-13 10:55:21 +00:00
imp
35eef19e27 -e -> -I change.
-s for sumary

Approved by:	jkh
2000-03-10 22:03:00 +00:00
obrien
dcbc63c349 Don't use the old raw name for disk devices. 2000-03-09 19:35:32 +00:00
sheldonh
ff1f324516 Remove single-space hard sentence breaks. These degrade the quality
of the typeset output, tend to make diffs harder to read and provide
bad examples for new-comers to mdoc.
2000-03-01 11:27:47 +00:00
ru
fe933b4c21 Add ata(4) support.
Approved by:	jkh
2000-02-11 11:25:23 +00:00
peter
a01339bf77 Move sbin/i386/{mount_msdos,comcontrol} back to sbin, they are not
i386 specific.

Submitted by:	bde
2000-01-14 16:37:03 +00:00
bde
ac7bbd636a Removed yet another vestige of the ft driver. 2000-01-14 16:01:28 +00:00
ache
97a00785cd Add Latin2 conversion table
Submitted by:	Cejka Rudolf <cejkar@dcse.fee.vutbr.cz>
2000-01-08 17:17:32 +00:00
ache
27629843b5 Allow #-comments in conversion table file 2000-01-08 16:47:55 +00:00
phk
3678b6ddb1 Remove the ft program, the driver is long gone. 1999-10-09 23:11:53 +00:00
phk
41c4f3920e mount* fixes from Martin Blapp <mb@imp.ch>:
Made mount more userfriendly (bad slashes are now filtered out)
        and we remove in mount_nfs trailing slashes if there are any.

        Fixed mount_xxx binarys to resolve with realpath(3)
        the mountpoint.

        Translate the deprecated nfs-syntax with '@' to ':' .
        The ':' syntax has now precedence, but '@' still works.
        Notify the user that the '@' syntax should not be used.

PR: 7846
PR: 13692
Submitted by:   Martin Blapp <mb@imp.ch>
Reviewed by:    phk
1999-10-09 11:54:14 +00:00
billf
5f4efefebc Stuff a variable declaration inside a #if block that is only used for that
#if.
1999-09-25 02:11:30 +00:00
billf
04286a15ad Remove declaration of getenv(), we get that from stdlib.h already. 1999-09-25 02:10:38 +00:00
peter
76f0c923fe $Id$ -> $FreeBSD$ 1999-08-28 00:22:10 +00:00
dwhite
eb58c0d8ed Add -e option to usage(). 1999-08-25 21:31:08 +00:00
phk
78878d252b Add new option to fdisk: -e
This wipes the MBR and creates slice 1 as a FreeBSD slice covering the
disk starting from the second track to the cylinder aligned end of the disk.

This is the most compatibly layout we have as far as I know.
1999-08-23 11:06:19 +00:00
rnordier
db2d7d3fb6 Drop the embedded boot code in favour of a -B option which reads
the boot code from /boot/mbr, or elsewhere as defined by the revised
"-b bootcode" option; use getopt(3); clarify usage(); partially
revise man page; etc.
1999-06-27 19:29:15 +00:00
jkh
395a4557a1 This lets you specify "gemdosfs", "shortnames", "longnames", and
"nowin95" as arguments to the "-o" flag, as alternatives to "-G", "-s",
"-l", and "-9"; when running "mount_msdos" by hand, that doesn't let you
do anything you couldn't already do, but if you're letting "mount" run
it, it lets you specify those options, which is especially useful if,
for example, you have an entry in "/etc/fstab" for some file system,
with "noauto" set, so you can conveniently mount a DOS partition from a
removable drive and force it to treat the file system as VFAT rather
than boring old FAT.

Submitted by:	Guy Harris <guy@netapp.com>
1999-06-18 12:05:02 +00:00
rnordier
67676551e8 Note that a standard MBR supports booting only from hard drive 0 1999-03-13 01:40:57 +00:00
rnordier
d9ddeeb1b6 Note that nextboot requires the legacy boot code. 1999-02-05 09:58:39 +00:00
rnordier
6f61fb4448 Add a -b option as a simple way to rewrite the mbr code
(eg. replacing a boot manager with a standard mbr)
1999-01-22 11:54:17 +00:00
dt
88c4835f18 Update to match rev. 1.28 of msdosfs_lookup.c. 1999-01-11 18:35:14 +00:00
joerg
d77f34aad8 sd0 -> da0 1998-11-26 12:24:35 +00:00
alex
fe3661b3bc Add an entry for the new NetBSD partition id. 1998-11-06 03:43:21 +00:00
jkoshy
f3b4d13e58 Add an entry for BSD/OS [23].x partition types.
I don't have access to a BSD/OS machine to check the veracity of the
magic number.  However, no harm will be done by the commit and since
someone was motivated enough to file a PR, I'm committing the change.

PR:		7629
Submitted by:	Jos Backus <jbackus@plex.nl>
1998-11-06 03:25:56 +00:00
obrien
339a231363 Linux swap and Solaris x86 use the same BIOS partition id. 1998-09-16 19:25:47 +00:00
gpalmer
1f2b7138e5 Split lines into one subdir per line. 1998-08-30 20:28:50 +00:00
charnier
a6ba9a0903 Correct use of .Nm, use .Bx Free for FreeBSD. Add rcsid, remove unused
#includes. Spelling. Use err(3) and add usage().
1998-07-06 06:44:36 +00:00