Commit Graph

6085 Commits

Author SHA1 Message Date
jnemeth
925666ef9b Add two new options:
-g which shows the GUID for a partition
-i which shows all the gory details for a particular option

XXX the output format of -i is subject to change
2013-11-30 19:43:53 +00:00
jnemeth
2b199b9458 when calling dehumanize_number() make sure the resulting number is >= 1 2013-11-28 01:37:14 +00:00
christos
d873a92b9b CID 1132762: Add error check for negative, to make zero-divide in module
impossible.
2013-11-27 20:40:48 +00:00
christos
bb7996ed1a CID 1132764: Bogus test 2013-11-27 20:34:34 +00:00
jnemeth
9299334f79 Remove FreeBSD specific code as per message to tech-userlevel. 2013-11-27 01:47:53 +00:00
jnemeth
e066617c02 Only skip past _PATH_DEV if it is actually present. 2013-11-23 08:59:04 +00:00
jnemeth
9ceccfb63b change the "-b blocknr" parameter to accept a "human number" 2013-11-22 04:21:02 +00:00
jnemeth
d883a91427 bump date 2013-11-22 03:51:06 +00:00
jnemeth
4f22d16faa In the manpage:
- s/-b number/-b blocknr/
- s/-s count/-s sectors/
- s/-p count/-p partitions/

In the program:
- s/-b lba/-b blocknr/
- s/-s lba/-s sectors/

This makes the documentation in the manpage and the program consistent
and makes it more clear what the parameters are.  Also, "-s lba" was
just plain wrong since LBA stands for Logical Block Address[ing], and
the -s option didn't represent any kind of address, but rather a size.
2013-11-22 03:50:05 +00:00
wiz
00996309f7 shrunk. 2013-11-20 08:11:36 +00:00
jnemeth
0a08058311 Add a resize command. This command was inspired by FreeBSD's gpart(8),
but the code was written by myself.
2013-11-20 08:08:47 +00:00
jnemeth
49ca570b23 delete an errant where it is obvious what the code is doing 2013-11-19 22:41:43 +00:00
jnemeth
477692ee49 When setting a label on the new partition, be sure to set the label
in the secondary partition table as well.
2013-11-19 19:10:29 +00:00
jnemeth
a3d649686c update synopsis for add subcommand 2013-11-19 05:07:40 +00:00
jnemeth
650728b4e3 Add two new options to the "add" subcommand:
-a alignment -- attempt to align the start and size of the partition
-l label -- supply a label for the partition

These options were inspired by FreeBSD's gpart(8) command, but the
code was written by me.
2013-11-19 05:03:41 +00:00
christos
611f94995e CID 1125874: Fix memory leak 2013-11-13 21:25:40 +00:00
christos
f55ff5e8dd vax specific gcc 4.8.1 hacks 2013-11-09 21:39:27 +00:00
christos
997b1a5c45 put instruction generation bug for the vax for 4.8 too 2013-11-09 16:01:58 +00:00
kefren
88644df51c Bring tunnel src_addr and dst_addr on the same line 2013-11-09 13:10:35 +00:00
kefren
beafc35b81 Remove esis reference 2013-11-05 07:42:48 +00:00
apb
c2ebc84464 Add a reference to secmodel_extensions(9), to make it a little easier to
figure out how to enable mounts for unprivileged users.  (Why don't we
just explain vfs.generic.usermount in the mount(8) man page?)

Also add another example of different ways in which the "special"
argument is interpreted by different file systems: mount_tmpfs(8)
ignores it.
2013-10-31 07:37:06 +00:00
drochner
958a129dbd -recognize CF cards by the magic value in inquiry data
-kill CFG_ATAPI_MASK, didn't see anything in the specs supporting
 that it exists
2013-10-30 15:37:49 +00:00
joerg
6cfd1a95ed Mark usage as dead. 2013-10-29 16:11:15 +00:00
mbalmer
99ed7cd168 link luactl(8) to the build 2013-10-28 19:05:21 +00:00
jnemeth
f60aa973c9 cosmetic fix from drochner@ 2013-10-26 20:31:23 +00:00
mbalmer
6737b686a3 bump date for previous 2013-10-24 13:00:21 +00:00
mbalmer
0fa457fe55 remove lua class 2013-10-24 10:36:25 +00:00
jnemeth
34523e4b09 - markup
- typo; the label command labels partitions, not remove them
- migrate -s isn't applicable to NetBSD
- add information about the space required for migration
- add a "gpt show -l" example
2013-10-24 06:59:03 +00:00
mbalmer
c1f5fe0a62 use MODULE_CLASS_MISC for Lua modules 2013-10-23 18:57: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
mbalmer
5cfde5e1f7 properly display Lua modules 2013-10-21 17:14:06 +00:00
jnemeth
8ba45a6a68 revert typo fix; teach me to blindly take changes from upstream 2013-10-20 21:13:23 +00:00
mbalmer
45802ab30c attach tty line discipline by name, not by number. remove unused case value. lgtm christos 2013-10-20 20:17:52 +00:00
christos
344e379dcb put back oldflags and __USE it. 2013-10-19 23:14:27 +00:00
christos
f2bb6cd861 remove unused 2013-10-19 17:04:41 +00:00
christos
740c6aa538 use correct function 2013-10-19 15:59:15 +00:00
christos
730b60ec52 use symbolic flags 2013-10-19 15:50:26 +00:00
tsutsui
0148f33f56 Wrap long lines overflowed after EXT2_ prefix addtion to fs macro. 2013-10-19 13:42:10 +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
f2e89ca7fd recognize FreeBSD ZFS partition 2013-10-19 02:07:08 +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
jnemeth
a79ba98d4b type fix: accommodate. -> accomodate. 2013-10-19 01:19:03 +00:00
christos
3e4993b396 fix unused variable warnings. 2013-10-19 01:09:58 +00:00
christos
dc30329cc3 avoit type punning 2013-10-19 01:09:16 +00:00
christos
86785464fe avoid bogus uninitialized gcc warning 2013-10-19 01:08:25 +00:00
christos
52ebde656f gcc warns about array bounds limits, but unfortunately the API here requires
flex arrays in a union which is not allowed. So do a trivial pointer assignment
to baffle gcc again.
2013-10-19 00:57:41 +00:00
christos
f304780793 use scopeid functions 2013-10-19 00:39:39 +00:00
christos
0dd81edd01 use the new scopeid functions 2013-10-19 00:35:30 +00:00
christos
77f96119f9 avoid pointer gymnastics 2013-10-18 21:01:00 +00:00