Commit Graph

6142 Commits

Author SHA1 Message Date
mrg
424f4c982d open the tty with O_RDWR|O_NONBLOCK. it seems valid to ask for
write permission when we're setting flags, and ucom(4) has an
existing workaround for a bug when O_RDWR is not used, and thus
ttyflags would not work for ucom devices.
2014-05-04 20:43:30 +00:00
christos
bf3bbb4c0d allow update 2014-04-30 01:33:11 +00:00
martin
724e066fba Increase alignement of the global "buf" variable to cover all pointers it
is casted too. Fixes a crash on arm v5.
2014-04-26 14:15:08 +00:00
martin
ba42c3117b Provide proper alignement for "buf" - it is casted to a struct fs pointer,
so it requires the same alignement.
Fixes crashes on armv5.
2014-04-26 13:23:49 +00:00
christos
e6c9ef61dd Fix volume name (Ed Maste) 2014-04-24 23:49:40 +00:00
justin
802f624689 Iterate over fields of struct seperately to avoid warnings from pedantic compilers 2014-04-05 12:32:27 +00:00
christos
12c14aedcc the bug has been fixed. 2014-04-04 21:19:35 +00:00
christos
b2fb66aceb remove debugging. 2014-04-04 16:15:30 +00:00
wiz
57965cb9dc -s:
If the optional arguments are not provided, they stay as before or
use the same defaults as the interactive mode, if new.

(feel free to improve)
2014-04-04 13:07:30 +00:00
wiz
ec456f9653 Fix a bug in previous and update detailed -s description. 2014-04-04 09:32:56 +00:00
wiz
dd17dc5d6c Update SYNOPSIS.
Christos, please check.
2014-04-03 21:56:19 +00:00
christos
52334fd887 Add the ability to "softroot" mount (i.e. mount root only when the raid
set contains the boot device), as opposed to "hardroot" (the previous
default which forces the raid to be root no matter what).
2014-04-03 18:54:10 +00:00
christos
1e0f8240e6 instead of using ugly -1's make args optional 2014-04-03 17:07:11 +00:00
christos
6449a2097b default to something reasonable (like the interactive mode does) instead
of 0 when -1 is specified for the start or size.
2014-04-01 19:08:48 +00:00
martin
aad6ef8bb5 Bring back the playstation2 port - now that a toolchain for it is
available again.
2014-03-31 11:25:47 +00:00
christos
58dbdf3810 Allow -1 values in the -s <sysid>/<start>/<size> indicate use the previous
values. For example:
fdisk -f -i /dev/rsd0d # initialize mbr and create an msdos partition.
fdisk -f -u -0 -a -s 169/-1/-1 /dev/rsd0d # converts the msdos partition
to a netbsd one, and makes it active.
2014-03-30 22:18:13 +00:00
apb
292aec205d When the third arg to fwrite() is a size in bytes, then the second arg
should be 1.  sizeof(*mbuf) happens to equal 1, but it's better not
to rely on that.
2014-03-28 18:27:14 +00:00
dholland
9761f1c2dc don't use sprintf 2014-03-23 05:39:32 +00:00
dholland
deef948629 missed one 2014-03-23 05:38:14 +00:00
dholland
4db4c6282f don't use sprintf 2014-03-23 05:36:58 +00:00
dholland
ccc32d7898 don't use sprintf 2014-03-23 05:26:23 +00:00
dholland
c4044741ea don't use sprintf 2014-03-23 05:07:59 +00:00
riastradh
6cb10275d0 Merge riastradh-drm2 to HEAD. 2014-03-18 18:20:35 +00:00
jakllsch
6b4d75e30b Always print the MBR drive serial number, even if it's 0. 2014-03-10 15:42:51 +00:00
joerg
f6d86cb881 Make pointer NULL check non-fatal for a bogus condition. 2014-03-04 21:07:22 +00:00
blymn
473e93d0fc Correct usage of clri. 2014-03-03 12:12:18 +00:00
skrll
6d3ceb1d61 Rename NetBSD/hp700 to NetBSD/hppa.
Unfortunately our VCS isn't very helpful here.
2014-02-24 07:23:38 +00:00
maxv
897b0b47db Fix error message; argv[1] could be NULL 2014-02-09 13:40:59 +00:00
matt
5a355fa389 Rename link to link_pkw to avoid shadowing the link syscall. 2014-01-19 22:31:13 +00:00
apb
81c929ad04 Overwrite the seed file from the beginning, using pwrite(2). 2014-01-15 15:05:27 +00:00
joerg
8e1ba910ea Fix arguments for write. 2014-01-15 10:13:25 +00:00
christos
81c8b4d072 use __func__, EXIT_{SUCCESS,FAILURE} 2014-01-10 18:37:18 +00:00
pooka
bbfd34f128 give err() some reason to avoid:
sysctl.c:2713:5: error: zero-length gnu_printf format string [-Werror=format-zero-length]
2014-01-10 09:38:56 +00:00
christos
6a0886ad81 perror is obsolete, use warn and add missing paren. 2014-01-08 01:56:20 +00:00
degroote
f2475e079d Before scanning, check if the card is up. If it is not the case, exit
with some useful error message. Add some note about this fact in the man
page too.
2014-01-07 20:25:24 +00:00
martin
88bc910896 PR bin/46743: mark the "next free cluster" value in the file system
info block as unitialized.
2014-01-05 12:52:39 +00:00
wiz
2873a037aa New sentence, new line. Remove trailing whitespace. 2014-01-04 15:35:10 +00:00
dholland
ed70881960 Add crossreference to fd(4) as noted a while back in PR 45694. Bump date. 2013-12-30 08:43:22 +00:00
christos
f28e660726 moved to external 2013-12-25 22:04:52 +00:00
wiz
b07680d7fe Bump date for previous. 2013-12-19 07:49:50 +00:00
jnemeth
4fb24d0cac Add the backup subcommand. It dumps the contents of the partition
tables as a plist, which is readable by the restore subcommand.

XXX restore subcommand forthcoming
2013-12-19 06:46:51 +00:00
jnemeth
6f2d9e3758 If we want to GUIDs to display with correct endian, it helps to decode it first. 2013-12-18 03:20:09 +00:00
apb
81b1fb1df7 In all man pages that say:
The -H, -L and -P options are ignored unless the -R option is
    specified.  In addition, these options override each other and the
    command's actions are determined by the last one specified.

Add:

    The default is as if the -P option had been specified.
2013-12-17 09:54:08 +00:00
jnemeth
53733ab887 Explicitly state which partition was added/modified. 2013-12-10 01:05:00 +00:00
wiz
d860f590d4 Fix typo ("then" instead of "than") 2013-12-09 09:35:16 +00:00
wiz
918b300e20 Fix typo. 2013-12-09 09:22:44 +00:00
jnemeth
1cb2b94165 Add two new subcommands, "set" and "unset". These were inspired by
FreeBSD's gpart(8), but the code is all mine.  The purpose of these
is to set and unset partition attributes.
2013-12-09 08:03:17 +00:00
jnemeth
66ad0e75ae For the "show -i <entry>" subcommand, print Start and Size both in
terms of number of sectors and bytes.
2013-12-09 01:35:02 +00:00
jnemeth
2098c8504e For the add and resize subcommands, change the -s option. If there is
no suffix, or the suffix is 's' or 'S', size is in sectors (as before)
otherwise size is in bytes.
2013-12-08 09:32:51 +00:00
jnemeth
e3e68bccc8 fix off-by-one error 2013-12-08 08:30:01 +00:00