| Commit message (Collapse) | Author | Age | Files | Lines |
| ... | |
| |
|
|
|
|
|
|
|
|
|
| |
free room in struct partition by packing fragment size and
fragments/block more tighlty and use the resulting space to make
offset and size 48 bits. For the disk part we use spare fields in
struct disklabel. Kernel converts in-mem copy of the on-disk
label if needed, disklabel(8) writes new version.
We are careful to only change fields not used by bootloaders.
Conception of basic scheme by deraadt.
ok deraadt@ krw@
|
| | |
|
| | |
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
| |
geometry in the disklabel when there is a BIOS geometry to provide.
This removes the option to set a disklabel to 'BIOS' geometry via the
'g b' command in the editor.
Makes reported geometry more consistant and moves MD code to MD land
where it should be.
Doc help from jmc@, Feedback from millert@, marco@, weingart@,
kettenis@.
ok deraadt@
|
| |
|
|
|
| |
point arithmetic to round to a cylinder boundary when a simple
integer expression can do the job as well. ok millert@ miod@
|
| |
|
|
|
|
|
|
|
| |
code is almost readable. Keep in mind that the starting offset is
inclusive, but the ending offset is exclusive. I heard rumors that
disklabel was misbehaving in some cases before, but espie@ was the
only one to provide me with enough details to actually find the
problem.
ok millert@ tom@
|
| |
|
|
|
|
| |
the 'D' editor command and has not been written to disk when the user
issues the 'q' editor command, ask if the label should be written to
disk before exiting.
|
| |
|
|
|
|
|
| |
be unchanged. Fixes PR#5209. Proper behaviour of 'q'uit still under
discussion.
ok ray@ millert@ ckuethe@ nick@
|
| |
|
|
|
| |
partitions since the kernel doesn't put them or look for them there
anymore.
|
| |
|
|
|
|
|
| |
calls in alpha, hppa, hppa64 and mips63 when accessing the two DOS MBR
u_int32_t fields dp_size and dp_start.
No functional change.
|
| | |
|
| | |
|
| |
|
|
|
|
| |
name; spotted by Laurent Coustet (ed, debian-fr net)
ok deraadt@ otto@
|
| |
|
|
|
|
| |
Sony Hi-MD usb drive.
ok millert@
|
| |
|
|
| |
avoid code duplication as well. ok marco@ deraadt@
|
| |
|
|
|
|
| |
offsets, it does not work if the difference is large. Problem found
by Jean-Gerard Pailloncyi who had false warnings of overlapping
partitions. ok millert@ tedu@
|
| |
|
|
| |
ok deraadt@
|
| |
|
|
| |
spotted by and ok krw@
|
| |
|
|
| |
at obiit dot org in PR 3847. ok tedu@ deraadt@ millert@
|
| |
|
|
|
|
|
|
| |
negative number of sectors on large disks and other similar problems.
Also make reading of ASCII disk labels more robust by using strtonum(3)
instead of atoi(3).
ok millert@ deraadt@
|
| |
|
|
| |
percent of available space respectively. From Sebastian Horzela.
|
| |
|
|
|
|
|
| |
make internal editor help and usage() match the docs; make sure all the
forms described in SYNOPSIS are explained; various other tweaks.
input from millert@; ok deraadt;
|
| | |
|
| | |
|
| |
|
|
| |
partition block size back down.
|
| | |
|
| |
|
|
| |
reminded by millert@
|
| |
|
|
| |
where applicable.
|
| | |
|
| | |
|
| |
|
|
|
| |
o remove NUL termination of d_packname since it is not needed.
krw@ OK
|
| |
|
|
|
|
| |
the cmdline
based on a patch by mho at mho.nu
ok and input by millert@
|
| | |
|
| | |
|
| | |
|
| |
|
|
|
| |
Alas many of these were introduced by yours truly as necessary
just doesn't look right to me for some reason ;-)
|
| | |
|
| |
|
|
|
| |
the OpenBSD portion of the disk. This is conistent with the idea of
'c' throughout the program.
|
| | |
|
| |
|
|
|
| |
Fixes a bug exposed by the last revision (we got away with before it due
to the rewind(3) calls).
|
| |
|
|
|
| |
have to worry about stdout == stdin (and since this is done inconsistently
it is useless anyway). Pointed out by map@infinitum.ch.
|
| | |
|
| |
|
|
| |
to zero out the partition table respectively.
|
| |
|
|
|
|
| |
it the same as the space we reserver on i386 to avoid fdisk trouncing.
The user can change this via the 'b' command and a message is printed
at startup to this effect.
|
| |
|
|
|
|
|
|
|
|
|
| |
next_offset() now takes a pointer to the partition size as its second
argument instead of a pointer to the partition. This allows us to
get the offset earlier on and sort_partitions() will not try and
include the partition we are trying to create in its list.
In free_chunks() start looking for things at starting_sector, not 0,
to avoid getting starting offsets that precede the start of the OpenBSD
part of the disk.
|
| | |
|
| | |
|
| | |
|
| |
|
|
|
| |
that is, use PAGER rather than "more" if it is defined and non-null, not
just if it is defined.
|
| | |
|