| Commit message (Collapse) | Author | Age | Files | Lines |
... | |
|
|
|
|
| |
for the size variable used to calculate the size of the partition.
Also use ULL suffix for constants to ensure that we use 64 bit math.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
being:
# size offset fstype [fsize bsize bps/cpg]
a: 400M 0 4.2BSD 4096 16384 75 # (Cyl. 0 - 812*)
b: 1G * swap
c: * * unused
e: 204800 * 4.2BSD
f: 5g * 4.2BSD
g: * * 4.2BSD
These patches are the original work of Randell Jesup, and
I believe Matt Dillon, with additional work by Warner Losh.
Please let me know if I've left someone out.
Incorporated into this is the fix for PR bin/22727.
This patchset still has style issues and a possible problem on
large disks. However, it was a agreed to get these committed before
performing major surgery on them.
PR: bin/22727
Submitted by: Randell Jesup <rjesup@wgate.com>
|
|
|
|
| |
Submitted by: dillon
|
|
|
|
| |
Change its type to u_int_16_t.
|
|
|
|
| |
Noticed by: bde
|
| |
|
|
|
|
| |
These commits were inspired by a similar commit to netbsd.
|
| |
|
| |
|
|
|
|
| |
Remove delcaration for getenv(), we already get it from stdlib.h
|
| |
|
|
|
|
|
| |
Add a case for UNSPEC which is in order by the enum definition, but out of
order alphabetically.
|
| |
|
|
|
|
| |
in both places.
|
|
|
|
|
|
| |
Fixed nearby indentation.
Use RAW_PART instead of RAWPARTITION.
|
|
|
|
|
| |
The previous attempt just converted compile time breakage to runtime
breakage.
|
| |
|
|
|
|
| |
Added some comments on #endifs.
|
| |
|
|
|
|
|
|
|
|
| |
- nonstandard sector sizes didn't work because the sector size in the
ASCII label was not read before a (default, wrong) sector size was used.
- the exit status was 0 after exiting early due to an invalid ASCII label.
Abort `disklabel -B...' if the secondary bootstrap doesn't fit.
|
|
|
|
|
|
|
|
|
| |
d_packname in in-core labels, so they are garbage if d_packname is
initialized in the dummy label for the whole disk. dsopen() will soon
initialize d_packname to "fictitious" if it is not already initialized.
Fixed nearby error handling. Rev.1.7 apparently confused Perror()
with perror().
|
| |
|
|
|
|
|
| |
KNF continuation indent rule.
Requested by: Bruce.
|
|
|
|
| |
#includes. Use err(3).
|
| |
|
|
|
|
| |
posix standard on the topic.
|
|
|
|
| |
Obtained from: OpenBSD
|
|
|
|
|
|
|
| |
disklabel(8) to the kernel (dsopen()). Drivers should initialize the
hardware values (rpm, interleave, skews). Drivers currently don't do
this, but it usually doesn't matter since rotational position stuff is
normally disabled.
|
|
|
|
|
|
|
| |
already exist.
Mention the cases where this doesn't work in the BUGS section of the
man page.
|
|
|
|
|
|
|
|
|
|
|
| |
required information from the driver, and produce a virgin disklabel
for it. The latter might be further edited with `disklabel -e' to
satisfy the user's need.
The magic sequence is:
disklabel -r -w sdX auto
disklabel -e sdX
|
| |
|
| |
|
|
|
|
|
|
|
|
|
| |
the values that it doesn't print by defaults. This seems wrong. I want
to be able to see the total number of sectors more than edit it. The
default d_secperunit of (sectors/track * tracks/cylinder * cylinders) is
bogus if sectors/track is only an approximation and more bogus if
sectors/track and tracks/cylinder are dummy values such as 4096 and 1
to defeat ufs's pessimizations.
|
|
|
|
| |
for LFS filesystems.
|
|
|
|
| |
Obtained from: NetBSD misc/490 - John Kohl
|
|
Note: XNSrouted and routed NOT imported here, they shall be imported with
usr.sbin.
|