| Commit message (Collapse) | Author | Age | Files | Lines |
... | |
|
|
|
| |
Notes:
svn path=/head/; revision=111286
|
|
|
|
|
|
|
|
|
| |
to fiddle the disk we can get away with it.
Try to use DIOCBSDBB to write boot code.
Notes:
svn path=/head/; revision=109901
|
|
|
|
|
|
|
|
|
| |
back.
Pointed out by: peter
Notes:
svn path=/head/; revision=109891
|
|
|
|
|
|
|
|
|
|
|
| |
creates a single file named just "boot".
Apart from the fact that the option "-s" is now gone and that "-b" should
be pointed at /boot/boot instead of /boot/boot1, this patch should be
a no-op.
Notes:
svn path=/head/; revision=109889
|
|
|
|
|
|
|
|
| |
and if we get such an architecture, we can just avoid using the relevant
options.
Notes:
svn path=/head/; revision=109887
|
|
|
|
|
|
|
| |
Remove yet a usage message about -N/-W
Notes:
svn path=/head/; revision=109884
|
|
|
|
| |
Notes:
svn path=/head/; revision=109882
|
|
|
|
|
|
|
| |
so no hacks are needed.
Notes:
svn path=/head/; revision=109879
|
|
|
|
|
|
|
| |
Rearrange bits in writelabel() a bit for improved readability.
Notes:
svn path=/head/; revision=109878
|
|
|
|
| |
Notes:
svn path=/head/; revision=109875
|
|
|
|
| |
Notes:
svn path=/head/; revision=109874
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
for the disklabel: This facility is OBE.
First of all, we cannot sensibly implement this in a properly stacked
environment.
Second, if we did, it would confuse the heck out of users who
wouldn't be able to "start from scratch" by dd(8)'ing /dev/zero
onto /dev/da0.
Third, the offered protection is not comprehensive: no other software
would respect it.
Fourth and finally, the disklabel is already protected against
tampering if it controls open partitions.
Uselessness of these options discussed with: peter
Notes:
svn path=/head/; revision=109872
|
|
|
|
|
|
|
|
|
|
|
| |
ascii label; otherwise checklabel() might report spurious errors because
of leftovers from a previous pass.
Reviewed by: bde
MFC after: 1 week
Notes:
svn path=/head/; revision=109378
|
|
|
|
| |
Notes:
svn path=/head/; revision=108650
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
other partitiosns. This is necessary when migrating conventional
partitions to Vinum and was broken by recent more stringent overlap
checks. This is arguably the wrong way to do it. A better method
would be to have the loader understand a subset of Vinum partitioning
and allow an install directly to Vinum, but until then, this is the
best we have.
Reviewed by: jhb
Approved by: re (rwatson)
Notes:
svn path=/head/; revision=107534
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
take unsigned values.
his allows one to label disk with the number of blocks > 31 bits
(though less then 32 bits)
e.g.
# size offset fstype [fsize bsize bps/cpg]
c: 3125755904 0 unused 0 0 # (Cyl. 0 - 194569*)
d: 3125755840 64 unused 0 0 # (Cyl. 0*- 194569*)
which is needd to test UFS2
Notes:
svn path=/head/; revision=107041
|
|
|
|
| |
Notes:
svn path=/head/; revision=104674
|
|
|
|
|
|
|
|
|
| |
the first label to the raw disk.
Sponsored by: DARPA & NAI Labs.
Notes:
svn path=/head/; revision=104543
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Peter had repocopied sys/disklabel.h to sys/diskpc98.h and sys/diskmbr.h.
These two new copies are still intact copies of disklabel.h and
therefore protected by #ifndef _SYS_DISKLABEL_H_ so #including them
in programs which already include <sys.disklabel.h> is currently a
no-op.
This commit adds a number of such #includes.
Once I have verified that I have fixed all the places which need fixing,
I will commit the updated versions of the three #include files.
Sponsored by: DARPA & NAI Labs.
Notes:
svn path=/head/; revision=104272
|
|
|
|
|
|
|
|
|
|
| |
userland, rather than expect all possible GEOMetries to know about
BSD disklabels.
Sponsored by: DARPA & NAI Labs
Notes:
svn path=/head/; revision=103669
|
|
|
|
| |
Notes:
svn path=/head/; revision=102231
|
|
|
|
|
|
|
| |
Also submitted by: David Wolfskill <david@catwhisker.org>
Notes:
svn path=/head/; revision=101994
|
|
|
|
|
|
|
| |
definitions; fix some const strings; fix some signedness issues.
Notes:
svn path=/head/; revision=99365
|
|
|
|
|
|
|
|
|
|
| |
changed a `goto' to a `continue' in revision 1.52, but it continued
the wrong loop.
Noticed by: bde
Notes:
svn path=/head/; revision=97855
|
|
|
|
| |
Notes:
svn path=/head/; revision=97553
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
that are used if none at all are specified for a partition. Don't
keep replaying the last field if we run out of fields when processing
a line. Use a 8:1 frag:block ratio for both defaults.
More work here is required. I think disklabel should not attempt
to choose default filesystem parameters, and instead let newfs pick
any defaults if required.
PR: i386/38703
Reported by: Martin Kraemer <Martin.Kraemer@Fujitsu-Siemens.com>
Notes:
svn path=/head/; revision=97535
|
|
|
|
|
|
|
| |
into a separate function to avoid some over-long lines.
Notes:
svn path=/head/; revision=97534
|
|
|
|
| |
Notes:
svn path=/head/; revision=97047
|
|
|
|
|
|
|
|
|
|
| |
initialize it to zero so we don't have to have everbody and their
aunt including FFS specific header files.
Sponsored by: DARPA & NAI Labs.
Notes:
svn path=/head/; revision=96475
|
|
|
|
|
|
|
|
|
|
| |
Pick up the c-partitions magicness from sys/disklabel.h instead
of defining our own magicness for it, remove trivial comment.
Sponsored by: DARPA and NAI Labs.
Notes:
svn path=/head/; revision=94065
|
|
|
|
|
|
|
| |
Sponsored by: DARPA and NAI Labs.
Notes:
svn path=/head/; revision=94061
|
|
|
|
| |
Notes:
svn path=/head/; revision=93809
|
|
|
|
|
|
|
|
|
| |
struct disklabel.
Sponsored by: DARPA & NAI Labs.
Notes:
svn path=/head/; revision=93724
|
|
|
|
| |
Notes:
svn path=/head/; revision=92715
|
|
|
|
|
|
|
|
|
| |
o Use ANSI function definitions
o const poison
o remove register
Notes:
svn path=/head/; revision=92541
|
|
|
|
|
|
|
|
|
| |
Submitted by: tmm
Dike out vax support.
Notes:
svn path=/head/; revision=92058
|
|
|
|
|
|
|
|
| |
* Do not default to any particular platform. Require that we explicitly
support a particular platform.
Notes:
svn path=/head/; revision=92057
|
|
|
|
|
|
|
| |
from /dev/food0, then try from /dev/f00d0c, in strange cases this work.
Notes:
svn path=/head/; revision=91603
|
|
|
|
|
|
|
|
|
|
| |
as __printflike()/__printf0like(), adding const, or adding missing "%s"
format strings, as appropriate.
MFC after: 2 weeks
Notes:
svn path=/head/; revision=81911
|
|
|
|
|
|
|
| |
Idea from: Theo de Raadt <deraadt@openbsd.org>
Notes:
svn path=/head/; revision=79452
|
|
|
|
| |
Notes:
svn path=/head/; revision=78735
|
|
|
|
|
|
|
|
| |
The latter implies to many people that they use only -r, which is
incorrect.
Notes:
svn path=/head/; revision=75915
|
|
|
|
|
|
|
|
| |
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.
Notes:
svn path=/head/; revision=73573
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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>
Notes:
svn path=/head/; revision=73034
|
|
|
|
|
|
|
| |
Submitted by: dillon
Notes:
svn path=/head/; revision=68044
|
|
|
|
|
|
|
| |
Change its type to u_int_16_t.
Notes:
svn path=/head/; revision=65921
|
|
|
|
|
|
|
| |
Noticed by: bde
Notes:
svn path=/head/; revision=59457
|
|
|
|
| |
Notes:
svn path=/head/; revision=59429
|
|
|
|
|
|
|
| |
These commits were inspired by a similar commit to netbsd.
Notes:
svn path=/head/; revision=59216
|
|
|
|
| |
Notes:
svn path=/head/; revision=59114
|