marcel
2e2b2bbc61
Add a ful stop after FreeBSD's version in the history section.
...
Pointed out by: brueffer@ (thanks!)
2014-07-02 14:34:01 +00:00
marcel
29eef13a46
Prepare for merging to stable/10: update the history section.
2014-07-02 04:06:06 +00:00
joel
1f9618e6f7
Minor mdoc improvements.
2014-06-06 19:00:43 +00:00
marcel
4bb20f3e22
Create our temporary file in $TMPDIR, if the environment variable
...
is set. /tmp otherwise.
Submitted by: Dan McGregor <danismostlikely@gmail.com>
2014-05-22 20:24:30 +00:00
marcel
12d9d80011
Fix CID 1204379 (vtoc8.c) & CID 1204380 (bsd.c): Cast ncyls to lba_t
...
before multiplying the 32-bit integrals to avoid any possibility of
truncation before widening. Not a likely scenario to begin with...
2014-05-21 17:39:49 +00:00
marcel
92a68a8501
Fix CID 1204394: Use strncpy(3) instead of strcpy(3). Note that it's
...
ok to not have the name and type strings terminated.
2014-05-21 17:38:56 +00:00
marcel
b67182258c
Fix CID 1215124: Handle errors properly.
2014-05-21 17:38:14 +00:00
marcel
f845ed2375
Fix CID 1215125: fstat(2) returns -1 on error and sets errno. It does
...
not return the error (oops).
2014-05-21 17:37:22 +00:00
marcel
65627bf1cb
Fix CID 1215128: Free the allocated buf when image_set_size()
...
returns and error and we return from bsd_write().
2014-05-21 17:36:12 +00:00
marcel
b00f7d7c65
Fix CID 1215129: move the call to lseek(2) before the call to malloc(3)
...
so that the error path (taken due to lseek(2) failing) isn't leaking
memory.
2014-05-21 17:34:50 +00:00
marcel
1e7c9712cd
MFuser/marcel/mkimg:
...
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.
2014-05-15 19:19:57 +00:00
marcel
f10e28b41f
Add mkimg_write() which combines lseek(2) and write(2) and uses
...
sector granularity for both offset and length. Have all schemes
use mkimg_write() instead of mkimg_seek() followed by write(2).
Now that schemes don't use lseek(2) nor write(2) directly, it's
easier to support output formats other than raw disks.
2014-05-06 21:54:05 +00:00
marcel
715111e716
In apm_write(), both fd and imgsz are referenced, so don't mark the
...
arguments as unused.
2014-05-06 20:34:21 +00:00
nwhitehorn
9c49977d29
Add freebsd-boot to recognized partition types.
2014-05-01 03:24:20 +00:00
marcel
36cb92b9ae
Fix build on FreeBSD 7 where:
...
1. DOSPTYP_FAT32 is not defined in <sys/diskmbr.h>
2. uuid_enc_le() does not exist in libc.
2014-03-29 23:46:01 +00:00
marcel
c374630340
Fix build on FreeBSD 8 where partition types for nandfs do not exist.
2014-03-29 22:10:54 +00:00
marcel
f443f7d2a6
Fix build on FreeBSD 9 where <sys/pc98.h> has the same defines as
...
<sys/diskmbr.h> and not the unique defines introduced later.
2014-03-29 22:02:25 +00:00
marcel
b01bad4f56
Add mkimg, a utility for making disk images from raw partition contents.
...
The partitioning scheme can be one of the schemes supported by gpart.
Reviewed by: sjg
Obtained from: Juniper Networks, Inc.
2014-03-29 19:03:10 +00:00