Commit Graph

4991 Commits

Author SHA1 Message Date
dyoung
6a9236b124 Get the socket addresses for dst/gateway/netmask/interface/ifaddr
out of the global namespace.
2008-09-10 01:56:22 +00:00
dyoung
5e93382467 Don't cast a sockunion * to sockaddr *. Instead, reference the
sockaddr inside of the sockunion.
2008-09-10 01:14:59 +00:00
dyoung
0a77d3df40 Delete superfluous casts to void *. 2008-09-10 01:08:39 +00:00
dyoung
f791b67f11 Constify. 2008-09-10 01:06:58 +00:00
dyoung
cfe9ef5ba6 Constify. 2008-09-10 01:00:02 +00:00
dyoung
36aee9b2c9 Constify.
For clarity's sake, do not assign a new value to inet_makenetandmask()'s
argument, `inet'.
2008-09-10 00:57:57 +00:00
dyoung
f65fccd290 Extract subroutine extract_addrs() for reuse, later.
Replace the anonymous constant, 0, with AF_UNSPEC.
2008-09-09 19:58:46 +00:00
dyoung
081a2b518e Constify. 2008-09-09 16:55:28 +00:00
dyoung
51731102ff Shorten a staircase. Remove superfluous parentheses from return
statements.  Constify.
2008-09-09 16:50:52 +00:00
dyoung
acf567a730 Use EXIT_FAILURE instead of anonymous constant '1'. 2008-09-09 16:35:15 +00:00
dyoung
c08d63b5ad Use a union and sizeof() to avoid a cast and an anonymous constant
buffer length, respectively.
2008-09-09 16:23:33 +00:00
dyoung
a26d1ce8fc Use bool. 2008-09-09 16:18:17 +00:00
pooka
e9233abdae Convert to the new mount world order with parseargs. 2008-09-04 12:07:58 +00:00
dholland
a28347f962 Document -v. PR 39441 from Stathis Kamperis. Bump date. 2008-08-31 23:40:19 +00:00
dholland
3f944a915e Remove trailing whitespace. Noted in PR 39440 by Stathis Kamperis. 2008-08-31 23:37:45 +00:00
dholland
947d35bd35 Don't dump core if given no arguments. Fixes PR 39440 from Stathis Kamperis
(but with a different patch).
2008-08-31 23:35:04 +00:00
gdt
4a8ce74d3f Add an explanation of why one would want to use -x/-X, after
discussion with bouyer@.
2008-08-30 15:07:40 +00:00
dogcow
fefef6828c Make it compile. (HI BOUYER!) 2008-08-30 14:07:32 +00:00
bouyer
a8ac39af81 Add fss(4) snapshot support to fsck_ffs(8) (via -x or -X options, like
dump(8)). This allows fsck_ffs -n to work on a snapshot of a R/W mounted
filesystem, and avoid errors related to filesystem activity.
2008-08-30 10:46:16 +00:00
gmcgarry
3c9a95916d Wrap compiler-specific flags with HAVE_GCC and HAVE_PCC as necessary. Add a few flags for PCC. 2008-08-29 00:02:21 +00:00
wiz
133e2f4217 Drop trailing whitespace. 2008-08-28 21:24:30 +00:00
tsutsui
00c798e9e3 Fix some spelling. 2008-08-28 16:29:24 +00:00
oster
6fe654d47f Bump date (before wizd). 2008-08-26 21:08:08 +00:00
oster
a252344f99 Add description of some of the things 'raidctl -u' doesn't do. 2008-08-26 21:06:55 +00:00
dholland
992b45040f Add two missing SMART attributes; PR 37967 from Henry Bent. Also add a
third I found while digging around, and fix one whose name was typoed.
2008-08-25 00:45:56 +00:00
dholland
79cfdc5aec Clarify message that says the map isn't shown when -a is given.
Resolves PR 32436 from Igor Sobrado based on a suggestion by
Dieter Roelants, except I expanded the message further.
2008-08-25 00:14:46 +00:00
oster
7cb3f2efd3 We have the notion of an 'absent' disk, so use that in another example. 2008-08-19 17:38:46 +00:00
martti
8f3ae7f144 s/If/It/ 2008-08-13 10:00:10 +00:00
simonb
89943600ac We don't need to dump WAPBL log files - don't dump files with SF_LOG
flag set, and document this.
2008-08-12 13:28:35 +00:00
christos
b6f6f7a746 teach this about wedges. 2008-08-11 10:56:54 +00:00
simonb
cb6ddf15e6 Remove adding -g to CFLAGS and LDFLAGS. Ancient debug bogon? 2008-08-10 08:06:23 +00:00
wiz
36539584db Fix Dd argument and remove superfluous empty line. 2008-08-08 22:48:24 +00:00
reinoud
40cac362ad Update the mount_udf(8) manpage to include the write support. 2008-08-08 18:22:01 +00:00
pooka
99fed7264c Refactor mount utilities to provide a mount_fs_parseargs() routine.
Use this routine both in mount_fs and rump_fs to provide equivalent
command line parameters and therefore usage interchangeability.
While doing this, combine some common mountgoop to mountprog.h
2008-08-05 20:57:45 +00:00
wiz
b2ac773421 Add missing word and bump date for previous. 2008-08-04 07:53:07 +00:00
simonb
cf67ff2e05 Mention "-o log". 2008-08-04 07:49:57 +00:00
lukem
b4336abb57 Revert previous accidental commit of debug statements 2008-08-03 07:50:54 +00:00
lukem
f26df72744 Avoid freeing memory in do_file() since it's called recursively 2008-08-03 07:49:46 +00:00
dyoung
83dfe33e66 is@ pointed out that I set the phase and range of a sockaddr_at
without subsequently doing anything with it, so commit_address()
works with an address with phase == 0.  phase == 0 is not allowed,
hence

random84# ifconfig nfe0 atalk 3.14
ifconfig: SIOCAIFADDR: Invalid argument

Solution: copy the new sockaddr_at to a temporary input environment,
and pass that environment to commit_address().  I may as well copy
the new sockaddr_at to the output environment, while I am at it.
2008-08-01 22:44:17 +00:00
dyoung
10b425b514 Extract common code. Create subroutine paddr_prefix_size(). 2008-08-01 22:29:13 +00:00
dyoung
4668b21b50 Always initialize the union of sockaddrs. I used to initialize it
only in the AF_UNSPEC/AF_INET/AF_INET6 cases.  Maybe this will fix
the AF_APPLETALK problem that is@ reports:

random84# ifconfig nfe0 atalk 3.14
ifconfig: SIOCAIFADDR: Invalid argument
2008-08-01 18:05:56 +00:00
simonb
8e5470fdb2 Handle 't' suffix for terabytes for number arguments. 2008-08-01 15:32:29 +00:00
simonb
fbdf47e4b0 Just use printf(...) instead of fprintf(stdout, ...). 2008-07-31 15:55:41 +00:00
simonb
8afa0436e9 Pretty-print the journal log size with humanize_number(3). 2008-07-31 15:50:29 +00:00
simonb
36d65f1138 Merge the simonb-wapbl branch. From the original branch commit:
Add Wasabi System's WAPBL (Write Ahead Physical Block Logging)
   journaling code.  Originally written by Darrin B. Jewell while
   at Wasabi and updated to -current by Antti Kantee, Andy Doran,
   Greg Oster and Simon Burge.

OK'd by core@, releng@.
2008-07-31 05:38:04 +00:00
pooka
8188a28971 Split option parsing into its own routine so that it can be used
by other consumers as well.
2008-07-29 16:05:05 +00:00
pooka
97f4be43e9 Install mount argument structure header just like every other file system. 2008-07-28 12:42:12 +00:00
joerg
d249112fae Update build glue for dhcpcd 4.0.0rc3 and move it to
src/external/dhcpcd.

Make dhcpcd quiet by default when run from rc.
2008-07-27 19:31:02 +00:00
reinoud
6797eb00e2 Add UDF 2.50 metadata partition creation to newfs_udf(8). It allows a
percentage to the volume space to be pre-allocated for metadata on format.
Implementations that can't extent the metadata partitions can thus use the
discs too.

Note that the kernel UDF code can't write to UDF 2.50 metadata partitions
yet; this is a work-in-progress.

Also note that the default formatting version choice is still version 2.01
i.e. without the metadata partition.
2008-07-26 20:20:56 +00:00
christos
1a43d7316a PR/39525: Joachim Schueth, Frederik Sausmikat:
cgd inadvertently encrypts blkno eight times to generate IV

Add "encblkno1" IV type to encrypt only once, rename old "encblkno" to
"encblkno8" for clarity, and make "encblkno" an alias for "encblkno8"
for backward compatibility.
2008-07-24 19:07:36 +00:00