Commit Graph

4964 Commits

Author SHA1 Message Date
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
matthias
f0f728186b Do not crash when boot->FSNext contains garbage (i.e. -1). 2008-07-24 14:23:16 +00:00
dholland
25360444b2 Adjust this to not need -Wno-pointer-sign. 2008-07-24 06:13:21 +00:00
dholland
e3b90707f6 bzero the passphrase before freeing it, to discourage chill attacks. 2008-07-24 05:35:59 +00:00
dholland
2c1061aba6 Adjust this to not need -Wno-pointer-sign. 2008-07-24 05:32:45 +00:00
dholland
8bc7b72389 Fix this to not need -Wno-pointer-sign. Make it pass -Wsign-compare too,
while I'm at it.
2008-07-24 05:21:12 +00:00
lukem
f0bccc0f62 Remove the \n and tabs from the __COPYRIGHT() strings. 2008-07-21 13:24:38 +00:00
gmcgarry
8d54263568 Add HAVE_PCC tests for -Wno-pointer-sign. 2008-07-21 11:38:44 +00:00
lukem
6543a91fea Remove the \n and tabs from the __COPYRIGHT() strings.
(Tweak some to use a consistent format.)
2008-07-20 01:20:21 +00:00
drochner
1914237fbe include <stdlib.h> explicitely, for exit(), getprogname() etc.
(it happens to be pulled in by the yacc skeleton, but we shouldn't
rely on this)
2008-07-17 16:24:55 +00:00
dyoung
723da104d6 Cosmetic: s/xenv/oenv/ 2008-07-15 21:27:58 +00:00
dyoung
95a02c3401 Make usage() static. 2008-07-15 21:19:24 +00:00
dyoung
3e89e7b09b Only describe flags -L and -m in the usage if they are available.
That helps me get rid of some conditional compilation (INET6) in
ifconfig.

Let each protocol/feature-module print its own usage, so that the
ifconfig usage reflects the modules that are actually compiled-in.

Write usage information for carp(4) options.
2008-07-15 20:56:13 +00:00
simonb
9e826282a4 Fix funny whitespace in a variable assignment. 2008-07-08 08:14:37 +00:00
simonb
12e5d916fb No need to print "0x0x" before a hex number, one "0x" should be enough. 2008-07-08 07:53:08 +00:00
dyoung
d75414adf5 Let us add/remove features from ifconfig, such as support for
various address families (inet, inet6, iso, atalk) and protocols
(802.11, 802.3ad, CARP), simply by trimming the list of sources in
the Makefile.  This helps one customize ifconfig for an embedded
device or for install media, and it eliminates a lot of grotty
#ifdef'age.  Now, the ifconfig syntax and semantics are finalized
at run-time using the constructor routines in each address-family/protocol
module.

(In principle, ifconfig could load virtually all of its syntax from
shared objects.)

Extract a lot of common code into subroutines, in order to shrink
the ifconfig binary a bit.  Make all of the address families share
code for address addition/replacement/removal, and delete "legacy"
code for manipulating addresses.  That may have broken atalk and
iso, despite my best efforts.

Extract an include file, Makefile.inc, containing the make-fu that
both ifconfig and x_ifconfig share.

Sprinkle static.  Change some int's to bool's.  Constify.

Add RCS Ids to carp.c and env.c.  Move media code to a new file,
media.c.  Delete several unneeded header files.

Set, reset, and display the IEEE 802.11 attribute, 'dot11RTSThreshold'.

Bug fix: do not require both a interface address and a destination
address for point-to-point interfaces, but accept a interface
address by itself.
2008-07-02 07:44:13 +00:00
reinoud
0cbd9f8bcc Use the new macros defined in ecma167-udf.h and also calculate the extended
attribute header crc check; not just the tag sum.
2008-06-24 15:37:42 +00:00
reinoud
77c6f83b52 Rename functionname to be more in sync with the kernel function naming. 2008-06-22 18:18:02 +00:00
reinoud
165572357f Initialise l_ea though technically not nessisary since its space is claimed
by a calloc() its more clear to explicitly initialise it to prevent
accidents might the routine be later changed.
2008-06-22 18:15:33 +00:00
wiz
d23e93082f Sort options.
New sentence, new line.
Use more markup.
Drop trailing whitespace.
Bump date for previous.
2008-06-21 17:11:03 +00:00
reinoud
9c4be68820 DO set the birthtime please.... 2008-06-21 13:12:33 +00:00
reinoud
e1f31734bf Factor out extended attribute header creation. The VAT and extended time
descriptors are now added by this function.

Extended attribute for birthtime added to (non-extended) file descriptors.
2008-06-20 22:41:42 +00:00
reinoud
45881dadc7 Remove superfluous crc and checksum calculations when we are already post
processing it later on writeout.
2008-06-19 13:35:26 +00:00
reinoud
bdd973a499 Allow UDF versions to be both specified as a hex value and as a float
value. Its now possible to specify version 2.50 as "2.50" or "0x250".
2008-06-19 13:20:09 +00:00
reinoud
ea583bb523 Don't keep a running pointer but calculate directly the data offset to
prepare for factoring out.
2008-06-19 12:33:54 +00:00
reinoud
f0ae557b3d Move extended attribute header creation from VAT to all (non-extended) file
descriptor creations.
2008-06-19 12:24:58 +00:00
reinoud
16c8051218 If the written out descriptor contains a file descriptor or an extended
file descriptor, update the location of the extended attribute space if
present.
2008-06-19 12:23:01 +00:00
reinoud
a0bade49b0 Clarify hack to move LVID sequence forward if there are bad blocks there
since the automatic bad block skipping is not yet done.
2008-06-19 10:25:51 +00:00