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
christos
56604dcf08
remove more duplicated code.
2015-12-06 04:27:05 +00:00
christos
4eb04fb6c1
Add debugging and more to migration
2015-12-05 18:46:08 +00:00
christos
5c1ccc6e9b
WARNS=6
2015-12-03 02:02:43 +00:00
christos
da0a3b4c0b
eliminate static globals so that commands can be re-used.
2015-12-03 01:07:28 +00:00
christos
bbb4a8ab26
refactor more duplicated code.
2015-12-01 19:25:24 +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
194a5fe433
provide a copy of the kernel uuid generator (with portable API calls) for
...
tools.
2014-10-03 20:30:06 +00:00
jnemeth
00433a3409
"0" is not guaranteed to be unique
2014-10-03 00:51:31 +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
4da1cfa89d
more toolification changes
2014-09-29 22:22:03 +00:00
christos
866082940a
more toolification
2014-09-29 21:04:34 +00:00
christos
a50708a134
minor toolification: need libprop...
2014-09-29 20:28:57 +00:00
jakllsch
16550bc8bd
Use MBR_PTYPE_ defines from <sys/bootblock.h>.
2013-12-04 20:15:51 +00:00
jakllsch
e22b4ebb4a
Mirror my changes of src/sbin/gpt/create.c 1.4 in migrate.c;
...
Use less bogus CHS addresses in PMBR.
With the ending head set at 0xff one machine I have will never leave
the initial startup screen if such a disk is present. Additionally,
Wikipedia suggests without citiation that 254 is the maximium allowable
value for the head, and this seems to be the case.
2013-12-04 19:59:47 +00:00
christos
611f94995e
CID 1125874: Fix memory leak
2013-11-13 21:25:40 +00:00
jnemeth
389cfa7c1b
In a NetBSD disklabel, p_offset is from the beginning of the disk,
...
not the beginning of the NetBSD partition.
2013-10-22 07:30:20 +00:00
jnemeth
63dfdcda5b
Convert FreeBSD numeric FS_<type>s to labels by request.
2013-10-19 09:31:24 +00:00
jnemeth
000bb24ef9
- convert FreeBSD FS_<type> to numbers where they don't match NetBSD
...
- add support for migrating NetBSD disklabel'ed disks (only 7 years late)
- use labels for partition types
2013-10-19 08:13:21 +00:00
jnemeth
e3d872f434
Add code for detecting FreeBSD ZFS partitions.
...
XXX Need to add code for migrating NetBSD disklabel'ed disks.
2013-10-19 01:58:33 +00:00
jakllsch
0c2fc5cb54
Make pre-initialized partition type uuid_t symbols 'static const'.
...
This conserves a few hundred bytes of total program size by
allowing the linker to merge duplicates.
2013-04-13 18:32:01 +00:00
jakllsch
287267eb57
Clean up gpt(8) a bit more
...
uuid_create_nil(3) and uuid_is_nil(3) take a uuid_t*, not a pointer to
an array of bytes merely casted to compatible type.
Additonally, there no need for extra casts and address-of operations when
using le_uuid_*() functions.
Furthermore, le_uuid_*() are identical to uuid_*_le functions in
libc/libuuid, so use those instead on NetBSD.
2013-04-13 18:04:33 +00:00
joerg
a4b65553ae
Use __dead
2011-08-27 17:38:16 +00:00
riz
0fac2edb7f
Fix the usage strings for each command, and print them all for the
...
"global" usage. It's still a little ugly, but hopefully not as
fantastically confusing as before...
2007-12-18 21:46:45 +00:00
he
a738248ed5
Some of our ports want <sys/param.h> in order to have DEV_BSIZE defined,
...
needed for LABELSECTOR expansion.
2006-10-17 09:20:09 +00:00
christos
9b52236568
Make this work under NetBSD.
2006-10-15 22:36:29 +00:00
christos
5819a8c09d
Import the gpt tool from FreeBSD
2006-10-15 22:34:15 +00:00