Age | Commit message (Collapse) | Author |
|
did not successfully read. Tweak some casts.
Fixes infinite loop problem noted by jeremy@ while installing on
boxen with 'random' garbage in MBR. General loop detection may
follow post-4.9.
Tested by jeremy@ and ok miod@
|
|
|
|
by and diff from Roberth via tech@.
ok jmc@
|
|
OpenBSD MBR partition does not span from sector 1 after MBR partition
data is re-initialized.
written with lot of good advice from deraadt@ and jmc@
ok deraadt@
|
|
returning a magic value that is not even handled as such by the caller
ok krw@
|
|
that value, print an error message and repost the question
ok krw@ deraadt@
|
|
block boundary. In most modern (i.e. 'faked' geometry) situations
this will start it at (0-based) block[64] rather than block[63] as
now. This should help performance on disks which really have 4K
sectors but report 512-byte sectors.
Power of 2 idea from deraadt@.
ok toby@ deraadt@
|
|
from disklabel(8), since it describes the effect of using opendev()
|
|
this version after some feedback from krw and otto;
ok otto krw
|
|
gets rid of #include <sys/dkio.h> in sys/ioctl.h and adds #include
<sys/dkio.h> to the places that actually want and use the disk
ioctls.
this became an issue when krw@'s X build failed when he was testing
a change to dkio.h.
tested by krw@
help from and ok miod@
|
|
|
|
from krw and myself;
ok deraadt krw
|
|
requested by miod@; ok miod@ krw@
|
|
a -DHAVE_MBR diff after release)
|
|
as neither arrayified not arrayfied exist -- sanctioned dictionaries
like Merriam-Webster ones suggest a few alternatives (e.g., arrayed),
however these made up words are easy to understand and we are not
certain that current ones are not ok.
ok jmc@
|
|
|
|
|
|
frantisek holop pointing out the issue. ok deraadt@
|
|
will show as NTFS in fdisk output.
ok todd@ otto@ deraadt@
|
|
- clarify the terms geometry sectors field and start field
- change the fdisk prompt from 0 to 1, and explain its meaning
- temper CAVEATS: the note is "common practice", not mandatory
from nick and myself
|
|
ok otto@ beck@
|
|
the multi-line banner announcing that the MBR is being changed.
Also the listing of the partition table in 'fdisk -u'. Display a
consistant message when the MBR is written.
While here cleanup and shrink code without changing any semantics.
Started with a diff posted on tech@ by Tobias Ulmer.
"I like it" marco@ ok jsing@
|
|
e.g. "0.5g".
|
|
returning an error, just reprompt. If there is an error reading
from stdin, use the old (default) value.
Shrinks fdisk a few bytes!
OK deraadt.
|
|
|
|
ok nick
|
|
on modern disk geometries; while here, better alignment of column labels
ok jmc@, jsing@, krw@, and otto@
|
|
ok jmc@
|
|
ok jmc@
|
|
|
|
|
|
the MBR... and install the man page in the MI location.
|
|
|
|
|
|
|
|
ok deraadt@
|
|
|
|
fallout.
|
|
yet gcc happily ate it... see, lint is useful
|
|
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@
|
|
ok millert jasper mbalmer
|
|
discussed with nick
|
|
|
|
|
|
other man pages, where the options are near the top of the page for
easy access.
OK jmc@.
|
|
DEV_BSIZE. Simply extract/insert the desired MBR from/into the first
DEV_BSIZE bytes of the sector. Makes fdisk work with devices having a
sector size different from DEV_BSIZE (512 bytes). e.g. 2048 byte
sector MP3 devices. Original diff from weingart@.
ok pedro@ deraadt@ weingart@
|
|
geometry for a unit. DIOCGPDINFO avoids using the on-disk label or the
cached copy of it and returns a 'spoofed' label that retains the
geometry info placed in the label by the driver. Unfortunately
DIOCGPDINFO is not universally implemented, though sd and wd do.
This is what disklabel(8) does when it wants geometry so this makes
fdisk a bit more consistant with disklabel.
This fixes 'fdisk -i' and 'reinit' when trying to install from a
miniroot on, e.g., landisk. i.e. no need to zero out the disklabel
before doing 'fdisk -i'.
'get it in snaps' deraadt@
|
|
|
|
|
|
|