Commit Graph

195 Commits

Author SHA1 Message Date
jnemeth 93fd3c01ef - fix setting of hdr_lba_alt which was broken in revision 1.10 on 2015/12/2
- switch to using gpt_last
- PR/51230 -- recreate the PMBR if it was lost
2016-06-12 12:48:32 +00:00
christos b7b34325a9 Rename 'a' to set the active PMBR flag to 'A' 2016-06-09 19:04:43 +00:00
kre c2246a3f2c Make "gpt show" add an "(active)" annotation to the PMBR output line
when it has been marked active for legacy (non UEFI) booting.
This was (kind of obviously) intended by the previous commit, but...
2016-06-09 17:43:36 +00:00
kre 89194609b9 Fix rendering of biosboot command synopsis. 2016-06-09 16:48:14 +00:00
christos 3017a7a39f PR/51230: Add the ability to set the active flag in the PMBR. 2016-06-09 15:12:54 +00:00
dholland dea44b9dd8 PR 50756 David Binderman: avoid running off the end of an array in case
thing we're looking for isn't there. Which is probably impossible, but
that's not obvious.
2016-05-31 02:29:54 +00:00
joerg 459b255b5e gpt_vwarnx is printf-like. 2016-01-08 18:59:01 +00:00
christos f9db75489b - add more informational messages
- handle case where last argument is an option not a device (set -l)
2015-12-29 16:45:04 +00:00
jnemeth 775c41e25a pretty up attribute display a bit 2015-12-26 13:12:16 +00:00
martin 1c2d0f1f02 Improve "show -a" display: split human readable Type: field from the Type-GUID
to avoid wrapping in the common case; add a human readable Size: display.
2015-12-26 13:08:45 +00:00
wiz 6471a2935e Simplify usage for gpt show. 2015-12-25 12:16:03 +00:00
martin 53078a2022 Add a -a flag to the show command, so we can display the full GPT with
all information in one go.
2015-12-25 10:59:56 +00:00
martin ac62bbaf8f Fix output in an error case 2015-12-24 17:35:57 +00:00
wiz 34c418c523 Bump date for previous.
Remove trailing whitespace.
2015-12-06 09:36:57 +00:00
christos 56604dcf08 remove more duplicated code. 2015-12-06 04:27:05 +00:00
christos 4d523900d0 Add listing commands for type, set and unset.
Add help and formatting for set and unset.
Change show to print all the attribute info in one line.
2015-12-06 00:39:26 +00:00
christos 4eb04fb6c1 Add debugging and more to migration 2015-12-05 18:46:08 +00:00
christos af38b629ef type confusion 2015-12-04 21:39:18 +00:00
christos ffec5f5c18 Kill newline 2015-12-04 16:54:28 +00:00
christos 5b47b594ae Fix resizedisk. 2015-12-04 16:46:24 +00:00
christos a69d504e75 put back usage from kre 2015-12-04 01:47:48 +00:00
christos 667106442f don't print dkctl message for files
fix typo
2015-12-04 01:46:32 +00:00
christos c8b27b5883 fix label printing. 2015-12-04 01:46:12 +00:00
christos e3058c5edd CID 1341564: Arg memory leak 2015-12-03 21:51:02 +00:00
christos 8bffbb3c7c more leak 2015-12-03 21:49:51 +00:00
christos b58e9ed6af CID 1341563: fix leak 2015-12-03 21:48:12 +00:00
christos e37a2a9523 CID 1341561: Argument memory leak 2015-12-03 21:46:22 +00:00
christos 560e3b65f3 CID 1341560: Free arg. 2015-12-03 21:43:25 +00:00
christos 849ad1de81 CID 1341558: Fix proplib memory leaks 2015-12-03 21:40:32 +00:00
christos 0f11011500 CID 1341556: Don't leak map info 2015-12-03 21:30:54 +00:00
christos d293a8ecdb CID 1341548: Check error returns 2015-12-03 20:58:08 +00:00
christos 7c444fb990 compare to stdout, thanks kre 2015-12-03 04:39:41 +00:00
christos c7ec83db51 Add a space. 2015-12-03 02:16:00 +00:00
christos ba571ee20f Fix stray paste, noted by kre. 2015-12-03 02:09:20 +00:00
christos 5c1ccc6e9b WARNS=6 2015-12-03 02:02:43 +00:00
christos 621ecf3c5e remove extra assignment 2015-12-03 01:16:21 +00:00
christos da0a3b4c0b eliminate static globals so that commands can be re-used. 2015-12-03 01:07:28 +00:00
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 73ff464c21 don't hard-code the program name 2015-12-02 20:42:07 +00:00
christos b62e64290c merge duplicated code and check allocations. 2015-12-02 20:41:10 +00:00
christos 2e738cf025 check allocations 2015-12-02 20:09:54 +00:00
christos 53de6040eb annotate map additions with non-allocated memory. 2015-12-02 20:09:33 +00:00
christos c458b37c6c - check errors from map allocation
- make map_resize return -1 instead of 0, and handle errors locally
  explaining what's going wrong
2015-12-02 20:01:44 +00:00
christos 2eda9128ae Allow backup and restore to operate on files. 2015-12-02 12:36:53 +00:00
christos 466f99a5ab don't advertise stuff we don't support. 2015-12-02 12:24:02 +00:00
christos ce4e8c4470 Always set NOSYNC if regular file, even if we got the size from the command
line.
2015-12-02 12:20:52 +00:00
jnemeth de2c104cf3 hrmm...
i386devel: {245} ./gpt add -b 1000 -s 1000 disk
Segmentation fault (core dumped)

Where's my flyswatter?   .......zzzzzzzap
2015-12-02 11:20:34 +00:00
jnemeth 777094fd12 - dereferencing NULL is generally bad, found by visual inspection
- automatically set nosync when opening a file to avoid spurious errors
2015-12-02 10:19:58 +00:00
christos 272fa82935 print the old and the new style usage. 2015-12-02 04:17:25 +00:00
christos cdf86847f5 refactor the utf code so that it does not leak memory. 2015-12-02 04:07:11 +00:00