| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
| |
Differential Review: https://reviews.freebsd.org/D4407
|
|
|
|
|
|
| |
Reviewed by: marcel
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D3894
|
|
|
|
| |
as DOSPTYP_NTFS and GPT_ENT_TYPE_MS_BASIC_DATA (resp).
|
|
|
|
|
| |
to handle that case. Note that we still require partitions, so the
change is effectively a no-op.
|
|
|
|
|
| |
return value of image_get_size(). As it so happens, the only
caller of scheme_write() passes exactly that.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
-T (track size) or -H (number of heads) is given:
o scheme_metadata() always rounded to the block size. This is not
always valid (e.g. vtoc8 that must have partitions start at cylinder
boundaries).
o The bsd and vtoc8 schemes "resized" the image to make it match the
geometry, but since the geometry is an approximation and the size
of the image computed from cylinders * heads * sectors is always
smaller than the original image size, the partition information ran
out of bounds.
The fix is to have scheme_metadata() simply pass it's arguments to the
per-scheme metadata callback, so that schemes not only know where the
metadata is to go, but also what the current block address is. It's now
up to the per-scheme callback to reserve room for metadata and to make
sure alignment and rounding is applied.
The BSD scheme now has the most elaborate alignment and rounding. Just
to make the point: partitions are aligned on block boundaries, but the
image is rounded to the next cyclinder boundary.
vtoc8 now properly has all partitions aligned (and rounded) to the
cyclinder boundary.
Obtained from: Juniper Networks, Inc.
MFC after: 3 days
|
|
|
|
| |
not return the error (oops).
|
|
|
|
|
|
|
|
| |
Add support for different output formats:
1. The output file that was previously written is now called the raw format.
2. Add the vmdk output format to create VMDK images.
When the format is not given, the raw output format is assumed.
|
|
The partitioning scheme can be one of the schemes supported by gpart.
Reviewed by: sjg
Obtained from: Juniper Networks, Inc.
|