| Commit message (Collapse) | Author | Age | Files | Lines |
... | |
|
|
|
|
|
|
| |
512 for sectorsize.
63 for sectors.
255 for heads.
This will mostly show up on MD(4) devices.
|
|
|
|
| |
Add FreeBSD Id tag where missing.
|
| |
|
|
|
|
|
|
| |
root is on from the root mount path.
Spotted by: imp
|
|
|
|
| |
issues a useless warning now.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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.
|
|
|
|
| |
Sponsored by: DARPA & NAI Labs.
|
|
|
|
|
|
| |
expecting a bogo-disklabel to contain them, if possible.
This makes fdisk work with GEOM.
|
| |
|
|
|
|
|
|
| |
(but not actual) alignment problems. Both of these bugs were detected
on ia64's and were fatal on ia64's due to premature setting of WARNS
to 4.
|
| |
|
|
|
|
|
| |
no /boot/mbr to read the boot code from (ia64 does not *have* bootblocks!).
fdisk depended on magic in the /boot/mbr file to initialize some fields.
|
|
|
|
| |
Submitted by: Hiten Pandya <hiten@uk.FreeBSD.org>
|
|
|
|
|
|
|
|
|
| |
s/partition/slice/ in fdisk.8
fix a bug in fdisk(8) where it did not honer -t when using -I
PR: 36563 and 35688
Submitted by: bde
Reviewed by: bde
|
|
|
|
| |
linelength.
|
|
|
|
|
| |
PR: i386/14793
MFC after: 3 days
|
|
|
|
|
|
|
|
|
| |
of unused partition entries and later detection of unused entries.
Use memcpy to be consistent with the rest of the code, and fix a
minor style nit.
Submitted by: bde
|
|
|
|
|
|
| |
Binary builds that cannot handle this must explicitly set WARNS=0.
Reviewed by: mike
|
| |
|
| |
|
|
|
|
| |
with a trailing zero-width space: `e.g.\&'.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
pointed out by bde:
- Ask for user confirmation before adjusting to a head/cylinder
boundary (only when running interactively), and separate this
adjustment from the automatic calculation of c/h/s parameters.
- In sanitize_partition, don't change any values in the slice until
we know that the automatic adjustment will succeed.
- When auto-adjusting, ignore unused slices and give an appropriate
error for other zero-size slices depending on the cause.
- Change dos() to do all of the c/h/s calculations for a whole slice;
this fixes a bug where the ending c/h/s of an unused slice was set
incorrectly.
- When changing the active slice, detect the currently active slice
number instead of always defaulting to slice 4.
- Call fflush(stdout) before calling fgets().
- Test for fgets() returning NULL so we don't loop on EOF.
Reviewed by: bde
|
|
|
|
|
|
| |
boot0cfg(8): add FILES section.
Reviewed by: rnordier
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
device search code i introduce nearly six years ago in rev 1.8. Bruce
suggested to rather use the device name of the root filesystem instead
which is certainly the most sensible default. Since there are many
possible cases for a root filesystem name (device with and without
slices, consider /dev/vinum/root even though it currently could not
work as such), there's some heuristic using a RE in order to find out
the canonical device name from the mounted name. This probably won't
quite fit for a NFS root (can't test that right now), but then,
there's hard to find a good default for those machines anyway. ;-)
This unbreaks the functionality of rev 1.2 i once broke in 1.8. :)
|
| |
|
|
|
|
|
|
|
|
|
|
| |
prematurely terminate the search for a usable disk. ENOENT is quite
normal in particulare now with the advent of devfs.
While being here, also remove /dev/wd0 and /dev/od0 from the list of
disks to search since we don't have them anymore.
MFC after: 1 week
|
|
|
|
|
| |
PR: 26343
Submitted by: Sergey A. Osokin <osa@FreeBSD.org.ru>
|
|
|
|
| |
- MAN[1-9] -> MAN.
|
| |
|
| |
|
| |
|
| |
|
| |
|
|
|
|
| |
Requested by: bde.
|
| |
|
| |
|
| |
|
| |
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
| |
|
|
|
|
|
|
|
| |
MBR's with a 4th slice failing the signature check and fdisk saying that
they are invalid.
Submitted by: bde
|
|
|
|
|
|
|
|
|
|
| |
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.
|
|
|
|
| |
Uniform mboot.bootinst allocation code to be independent of functions order
|
|
|
|
|
|
| |
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.
|
|
|
|
| |
remove -e.
|
|
|
|
| |
Obtained from: OpenBSD
|
|
|
|
|
|
| |
PR: bin/8809
Submitted by: "John C. Place" <jcplace@ibm.net>
Prompted by: <nrahlstr@winternet.com>
|
| |
|
|
|
|
|
| |
description list; break an overly long line; use the Fx macro instead
of "FreeBSD".
|