christos
54261dc52d
- factor out into smaller separate functions
...
- fix signed/unsigned confusion
- do proper write checks
- fix some memory leaks
2015-12-02 22:32:04 +00:00
christos
2eda9128ae
Allow backup and restore to operate on files.
2015-12-02 12:36:53 +00:00
christos
cdf86847f5
refactor the utf code so that it does not leak memory.
2015-12-02 04:07:11 +00:00
christos
8ca93e4658
Refactor the command dispatching and help printing logic.
2015-12-01 16:32:19 +00:00
christos
0b43d398b9
Firs step of refactoring, remove all globals, factor out some common code,
...
handle alternate usage but not advertise it.
2015-12-01 09:05:33 +00:00
christos
ca4e0dcdd1
merge the create errors in one place and fix them.
2015-11-29 00:14:46 +00:00
christos
d3037dba83
fix error messages containing \n
2015-06-16 23:18:54 +00:00
jnemeth
c4b5bb5337
using random values for hdr->hdr_guid does not work very well
2014-10-01 01:08:25 +00:00
christos
21c34dbb1d
Add internal uuid support, since the linux+macos versions of the library
...
are different than than *bsd ones, and others might not have it at all.
2014-09-30 17:59:59 +00:00
christos
c917041fda
remove compat defines.
2014-09-30 02:12:55 +00:00
christos
a50708a134
minor toolification: need libprop...
2014-09-29 20:28:57 +00:00
jnemeth
e4be9d18c3
- handle a GPT that isn't an exact multiple of a sector
...
- adjust PMBR size, in case new disk is a different size
- don't leak as much memory
- clean up error handling somewhat
2014-09-26 08:56:34 +00:00
jnemeth
06190c9314
Initial cut of gpt restore. This functions correctly in testing,
...
but isn't all that pretty. It has minimal error testing and may
leak memory. It also only works with empty disks. If passed "-F"
flag, it will blank the disk for you.
2014-09-20 22:11:27 +00:00
jnemeth
3170c9b01c
Add restore subcommand.
...
XXX It does not actually work yet. It is being committed now to make
later pullups easier.
2014-08-10 18:27:15 +00:00