he
cfbede5668
Add a cast to intmax_t and use %jd to print an off_t.
...
Fixes at least the alpha and amd64 builds.
2009-03-28 21:34:33 +00:00
pooka
4ff44dd1fe
remove troublesome printf specifier
2009-03-28 15:17:16 +00:00
reed
b7b9ab25b1
Point to ifmedia(4) more. And refer to -m flag to (for media).
2009-03-27 19:33:22 +00:00
wiz
61ae4edccb
New sentence, new line.
2009-03-26 09:56:17 +00:00
pooka
32852ecef0
Apply revisions 1.23 and 1.24 from FreeBSD to autocalculate the
...
necessary geometry when creating a file system directly to a file.
In addition, when creating, do not complain about the file not
being char special and do not try to execute device ioctl's on it.
2009-03-26 08:39:24 +00:00
mrg
1c6ecba9bc
don't ignore "fsck -f" when given with "-p" on a wapbl filesystem.
...
ie, "fsck -fp" actually forces the check in preen mode now.
2009-03-25 03:42:41 +00:00
tls
ede5dc65a8
Fix savecore so it uses /dev/ksyms when it can (doesn't override libkvm
...
default). Fixes misc/38425.
2009-03-21 19:32:44 +00:00
lukem
deb4c0bbb3
fix sign-compare issues
2009-03-20 13:18:50 +00:00
wiz
479c390e0e
Drop trailing whitespace.
2009-03-18 10:46:58 +00:00
pgoyette
dab2b670bf
Format the address/offset of hexdump in hex, not decimal.
...
Addresses my PR bin/41035
2009-03-18 01:28:25 +00:00
lukem
be0c43535f
fix sign-compare issues
2009-03-17 00:52:47 +00:00
lukem
07f7688506
fix sign-compare issues
2009-03-16 12:56:19 +00:00
lukem
c1237301b3
fix sign-compare issues
2009-03-16 12:52:07 +00:00
lukem
240bf6cd28
fix sign-compare issues
2009-03-16 11:18:10 +00:00
christos
9f97ab946c
Allow ptyfs to be mounted inside a chrooted environment.
2009-03-15 16:47:45 +00:00
joerg
d7eb1430e2
Fix markup.
2009-03-15 10:01:47 +00:00
dyoung
5786b3376f
Fix spelling: s/parition/partition/.
2009-03-12 22:59:03 +00:00
joerg
e4e7c43459
Don't workaround ancient macro argument limit with .Xo/.Xc.
2009-03-11 18:02:00 +00:00
joerg
0e5f0af7e9
Fix preamble
2009-03-11 13:35:21 +00:00
joerg
997634fe14
Fix preamble to match order set out by mdoc(7). Discussed with wiz.
2009-03-09 19:24:26 +00:00
ad
101a9782a2
Add crash(8), a utility to diagnose kernel crashes. This is basically
...
ddb running on crash dumps, but with two notable changes:
- Breakpoints, watches, etc are obviously never going to work so they
are not handled.
- You can pipe output to the shell, e.g. ps | grep foo
Items remaining to be done:
- Port it to architectures other than i386. This isn't difficult, just
a case of making db_disasm.c/db_trace.c or their equivalent compile
and work.
- Make more of the "show" commands work, e.g "show uvmexp".
2009-03-07 22:08:07 +00:00
njoly
e4bf6d925f
Add missing free() in machdep_diskinfo().
2009-03-05 15:35:59 +00:00
tsutsui
f592533590
- add a sanity check for e2fs_inode_size in readsb()
...
- use EXT2_DINODE_SIZE() rather than sizeof(struct ext2fs_dinode) or
struct ext2fs_dinode array/pointer to see e2fs_ipb and inode offsets
2009-03-02 11:31:59 +00:00
tsutsui
14c85750c6
Use inodesize to get offset of inode in one more place.
2009-03-02 10:57:03 +00:00
tsutsui
48c2d0ee71
Fix botched logic in inodesize check.
2009-03-02 10:38:13 +00:00
tsutsui
1b5cd43c66
Replace a magic number with a new EXT2_REV0_DINODE_SIZE macro.
2009-03-02 10:16:49 +00:00
tsutsui
8676336f2d
- accept only EXT2_REV0_DINODE_SIZE inodesize on -O 0
...
- use inodesize to get offset of inode, not struct ext2fs_dinode array
2009-03-02 10:15:59 +00:00
wiz
dcc33b5c39
Sort options in usage.
2009-03-01 21:54:31 +00:00
wiz
9ea4262fa9
New sentence, new line.
2009-03-01 21:52:59 +00:00
wiz
5d45b7ee8a
Sort options.
2009-03-01 21:52:37 +00:00
christos
29055c6385
Support variable inode sizes.
2009-03-01 19:21:09 +00:00
joerg
e443a4cf79
Make function bodies static, the prototype already is.
2009-02-25 23:59:30 +00:00
christos
7b2f022cd6
don't copy the address of a pointer. Noticed by Anon Ymous
2009-02-25 13:52:18 +00:00
pooka
54db37b1cf
Note change with linux compat.
2009-02-24 12:45:37 +00:00
pooka
3f2d5fc9ad
Default to -o linux. This prevents programs from not working just
...
because the -o linux flag was not supplied, i.e. it is the sensible
default. People who absolutely do not want the extra files in
their /proc for whatever aesthetic reason (it's not like they
consume any resources) can do -o nolinux.
2009-02-23 19:47:58 +00:00
wiz
5eb2ad1b22
Fix typo, and restore line that was lost in previous.
2009-02-23 08:14:53 +00:00
dholland
481da53c30
Restore newfs_lfs after softdep removal (hi ad)
2009-02-22 23:06:23 +00:00
ad
59fcf21389
PR kern/26878 FFSv2 + softdep = livelock (no free ram)
...
PR kern/16942 panic with softdep and quotas
PR kern/19565 panic: softdep_write_inodeblock: indirect pointer #1 mismatch
PR kern/26274 softdep panic: allocdirect_merge: ...
PR kern/26374 Long delay before non-root users can write to softdep partitions
PR kern/28621 1.6.x "vp != NULL" panic in ffs_softdep.c:4653 while unmounting a softdep (+quota) filesystem
PR kern/29513 FFS+Softdep panic with unfsck-able file-corruption
PR kern/31544 The ffs softdep code appears to fail to write dirty bits to disk
PR kern/31981 stopping scsi disk can cause panic (softdep)
PR kern/32116 kernel panic in softdep (assertion failure)
PR kern/32532 softdep_trackbufs deadlock
PR kern/37191 softdep: locking against myself
PR kern/40474 Kernel panic after remounting raid root with softdep
Retire softdep, pass 2. As discussed and later formally announced on the
mailing lists.
2009-02-22 20:28:05 +00:00
yamt
dacc2a910d
remove a useless cast.
2009-02-22 15:28:43 +00:00
yamt
a85598544d
nfsdefargs: use designated initializers
2009-02-20 15:37:22 +00:00
yamt
bbac3fbde4
remove a useless cast.
2009-02-18 13:13:27 +00:00
christos
5dae591c0c
Use the wedge size, not the disk size, from Yorick Hardy
2009-02-17 00:16:35 +00:00
is
272429c084
This ain't whitespace98.
2009-02-16 13:38:21 +00:00
abs
740916b73c
put back edlabel on sun2 (m68000)
2009-02-16 12:30:58 +00:00
dholland
cfacc31dc0
fix typo: "aprox." -> "approx." (approximate).
2009-02-15 08:23:31 +00:00
abs
515e52158b
Convert more MACHINE tests to MACHINE_ARCH
2009-02-14 13:50:50 +00:00
abs
2cb54095fc
Build and install edlabel based on MACHINE_ARCH not MACHINE
2009-02-14 11:33:56 +00:00
uebayasi
a6533b8fed
Comment out CFLAGS+=-g.
2009-02-13 16:02:05 +00:00
lukem
bd0ca7dff7
WARNS=4
2009-02-13 01:37:35 +00:00
lukem
9abbf3c336
fix -Wsign-compare issues
2009-02-13 01:37:23 +00:00
wiz
5452aa5f5c
Bump date for previous. New sentence, new line.
2009-02-08 21:56:57 +00:00
reinoud
9a5eca17f4
Add mount_udf(8) option '-c' requesting session closure on unmount and
...
document it in the manpage.
2009-02-08 19:28:49 +00:00
uebayasi
cede8f9855
Let 'gpt add' suggest a collect device name so that opendisk(3) called by
...
dkctl(8) succeeds.
2009-02-07 18:12:22 +00:00
uebayasi
0edd7181ba
Make manual and usage consistent. No functional changes.
2009-02-07 17:21:44 +00:00
uebayasi
b9691b268f
- Display cache, strategy, and list of wedges if no command is specified in
...
the command line.
- Sort list of wedges.
Posted on tech-userlevel a while ago, no objections then.
2009-02-07 17:13:32 +00:00
enami
ca82f7eac5
Use indent-synopsis instead of iS register. The latter is a register
...
used in BSD derived .Nm implementation.
2009-01-30 11:55:04 +00:00
tron
0c5d87d569
Use correct format to print the "numBlocks" element in a RAIDframe
...
component label. raidctl(8) should now print the correct number of
blocks for RAID sets larger than 1TB.
Patch supplied by Bernhard Moellemann in PR bin/40479.
2009-01-26 11:34:12 +00:00
wiz
f8ab4d2651
New sentence, new line.
2009-01-24 10:45:44 +00:00
jmcneill
537c688f5b
Note that empty filesystems are now treated as if they support long
...
filenames by default.
2009-01-23 12:48:49 +00:00
apb
756ffbbce0
* Say that type "nfs" is inferred if the path contains a
...
":" or "@". (Amazingly, this was not documented before).
* Say that the "nfs" inference is deprecated. (It was deprecated in
revision 1.87 of mount.c, dated 2009-01-11.)
* Add "-t nfs" in an example, so as not to rely on the automatic
inference of nfs when the path contains a colon.
* Try to improve the description of how the arguments are interpreted.
2009-01-20 09:07:04 +00:00
apb
44f43cf298
Remove local definitions of PRIxxxx macros in favour of the
...
centralised definitions from tools/compat/compat_defs.h, which
are included via nbtool_config.h.
2009-01-18 21:15:14 +00:00
mrg
5be383f77e
Do not erroneously leave a truncated 16-bit sector
...
count on "large" (>=32MB) file systems when fetching the geometry from
the medium. This confuses some software (which is to say Windows)
when a device newfs(8)ed under NetBSD is transported to another
system. (Note: The rest of the code uses 'bsec', and DTRT for smaller
file systems.)
contributed anonymously.
2009-01-18 10:50:56 +00:00
lukem
c6144e484f
fix -Wsign-compare issues
2009-01-18 00:24:29 +00:00
lukem
0fdc53711f
Use KiB MiB GiB instead of Kb Mb Gb
2009-01-18 00:21:09 +00:00
lukem
1881cc846a
* Fix -Wsign-compare issues.
...
* Add some XXXs noting where we might want to check for 16bit overflow.
* Use uintNN_t instead of int if the values is read from or written to
using udf_rwNN().
2009-01-18 00:18:41 +00:00
he
41daabb7fc
Ensure that all the files in SRCS are *.c files (there were some
...
files matching *.o (!) in the list). Thanks to cube@ for spotting
what I could not see. Should fix issue with UPDATE builds across
the recent time_t merge and associated shared lib major bumps.
2009-01-14 20:38:53 +00:00
tsutsui
08e5f5529c
Add workaround typedefs for awful hack.
...
XXX: It's completely unacceptable for me to refer libsa files from userland.
XXX: Nowadays we no longer have serious size restriction in install media,
XXX: so I think it's much better to simply remove this ugly SMALLPROG hacks.
XXX: If you really want to share files, please move them into src/common
XXX: with defined APIs.
2009-01-13 11:47:32 +00:00
wiz
2fd0883c1e
New sentence, new line.
2009-01-11 21:57:14 +00:00
pooka
694167d28f
Support mount -o rump, which uses the rump server instead of using
...
the kernel service. E.g. "mount -t efs -o rump /dev/sgidev /mnt"
runs effectively "rump_efs /dev/sgidev /mnt".
2009-01-11 20:39:34 +00:00
pooka
86cc06cf64
-o resport, not -o resvport
2009-01-11 20:22:41 +00:00
pooka
547a80b5eb
Fix noresport mount option parsing.
2009-01-11 20:22:11 +00:00
pooka
4d0f7c6fcd
Warn that autoselecting nfs based on : or @ in the device path will
...
be removed in a future release.
2009-01-11 12:33:50 +00:00
pooka
b38b40842d
EFS -> SGI EFS in NAME
2009-01-05 16:36:04 +00:00
apb
cf9d39220a
Add a list of device types for use with "rndctl -t ${typename}".
2009-01-04 12:01:43 +00:00
christos
84f0d7015a
when using getargs, don't set read-only otherwise it fails with EINVAL.
2009-01-03 23:09:41 +00:00
christos
5bd66079eb
document nocasetrans.
2009-01-03 22:56:23 +00:00
christos
2e3fa27094
reset args. Add casetrans
2009-01-03 20:11:04 +00:00
mlelstv
bb90b5f0cd
cast arguments for changed printf format
2008-12-29 20:02:30 +00:00
christos
ac3b5d9cdf
fix dev_t format.
2008-12-29 16:03:57 +00:00
christos
ac43585b6e
fix printf formats.
2008-12-28 20:23:53 +00:00
christos
118c87a6fe
fix dev_t format.
2008-12-28 20:17:11 +00:00
christos
b935e079cd
fix printf formats.
2008-12-28 20:15:21 +00:00
christos
b09dc428f4
parse unsigned long with strtoul not atoi
2008-12-28 20:12:31 +00:00
hannken
7586bc881e
Make restore work for Linux dump volumes by ignoring extended attribute
...
records on these volumes. Tested with Centos 5.2.
Reviewed by: Manuel Bouyer <bouyer@netbsd.org>
2008-12-26 19:26:04 +00:00
jmcneill
a2f8108745
The kernel now accepts BPB with heads > 255, so don't limit the number
...
of drive heads.
2008-12-26 04:23:17 +00:00
ad
2df6131a64
Enable the faked ELF kernel by default, now that ksyms output works with
...
gdb. Makes it possible to do post-mortem debugging on a modular kernel.
2008-12-05 21:41:10 +00:00
tsutsui
09275f2b8b
Specify -fno-loop-optimize on m68000 as workaround for gcc -O1 codegen bug
...
mentioned in PR bin/40036 and PR toolchain/40066.
2008-11-29 15:28:49 +00:00
tsutsui
da5d5a9f1c
Add RCS Id. XXX why separate Makefile.inc?
2008-11-29 15:23:32 +00:00
jnemeth
10655c3e2a
PR/40059 - Bug Hunting -- add Xref to wscons.conf(5)
2008-11-29 05:52:32 +00:00
tsutsui
2af45ff960
Remove unnecessary casts.
2008-11-24 18:05:25 +00:00
tsutsui
0c5d01004e
Handle 32 bit uid field on E2FS_REV1.
2008-11-24 17:41:29 +00:00
tsutsui
6189d5e324
Add missed byteswap ops against ext2fs_dinode members.
2008-11-24 17:37:17 +00:00
tsutsui
ee70a0c964
Use "size > INT32_MAX" rather than "size >= 0x80000000U" to check 2GB limit.
2008-11-24 17:30:12 +00:00
tsutsui
a43d077c5c
- unsigned -> unsigned int
...
- remove unnecessary casts from malloc(3) and free(3)
- fix a bogus indent
2008-11-24 17:19:53 +00:00
uwe
2b5d806dfe
Punctuation formatting nit.
2008-11-17 02:32:09 +00:00
uwe
5d234bdddb
".Dv Qo foo Qc" should be ".Qq Dv foo"
2008-11-17 02:22:49 +00:00
ad
87557cc876
Sort output by name.
2008-11-16 11:30:55 +00:00
ad
235e42d88f
kernel -> builtin in output.
2008-11-15 11:29:04 +00:00
hira
842ca3f635
Add missing newline to usage.
2008-11-14 09:55:38 +00:00
thorpej
7077ca222a
Don't use sizeof(struct gpt_hdr). It will pad the structure on x86-64,
...
which causes some systems to reject the GPT.
kern/38997
2008-11-12 22:50:22 +00:00
ad
0efea177e3
Remove LKMs and switch to the module framework, pass 1.
...
Proposed on tech-kern@.
2008-11-12 12:35:50 +00:00
wiz
2ca1f539aa
Add backslash (minus is "\-").
2008-11-11 06:28:30 +00:00
reed
68f20c24d9
Add some details about init's role with securelevel.
...
Add references to other manual pages for more details.
2008-11-11 00:14:55 +00:00
reed
a4bfac4a14
Reference secmodel_securelevel(9) manual page.
2008-11-11 00:09:36 +00:00
joerg
3fbdfc8af9
Reduce internals of WAPBL exposed to the rest of the system.
2008-11-10 20:12:13 +00:00
apb
88ba92672f
* Instead of silently ignoring extra args, print a usage error. This
...
adddresses the silent failure reported in PR 39862 by Brian A. Seklecki
* Adjust usage message to match the synopsis in the man page.
2008-11-06 16:01:54 +00:00
apb
046bb95d46
Adjust synopsis and description to make it clear that -d devname and
...
-t devtype are mutually exclusive.
2008-11-06 15:58:16 +00:00
mrg
9b0170606d
make MKPIC=no builds work on i368, shark, vax, pmax, sgimips, sparc,
...
maybe all mips and all arm as well.
2008-10-31 20:24:51 +00:00
apb
07103d0363
Pass SED=${TOOL_SED:Q} in the environment to scripts run during the build.
2008-10-26 14:55:17 +00:00
lukem
ddd1724f86
xref rescue(8)
2008-10-21 02:32:37 +00:00
ad
dc7ae0762f
- Add code to produce a fake ELF kernel containing only symbol info. Done
...
by extracting ksyms state from the dump, so we have symbols for modules
loaded at the time of the crash. If ksyms extraction fails, this falls
back to the current behaviour of copying /netbsd.
- Leave it disabled for the moment: (1) we are about to branch (2) most
tools understand the artificial kernel but gdb has trouble with it for
some reason.
2008-10-20 10:34:54 +00:00
apb
96230fab84
Use ${TOOL_AWK} instead of ${AWK} or plain "awk" in make commands.
...
Pass AWK=${TOOL_AWK:Q} to shell scripts that use awk.
2008-10-19 22:05:19 +00:00
pooka
61c5cf598d
Convert mount_nfs to the mount_foo_parseargs() format. No functional
...
change.
2008-10-16 09:12:54 +00:00
pooka
084e92b62d
Reword quite out-of-place (even historically) "nqnfs 2" error message.
2008-10-15 19:06:45 +00:00
dholland
866d811ed8
Fix reversed test in connection with combining -i and -l. If some
...
packets have already sent because of the preload count handling, we
shouldn't start off by sending another one right away. The reversed
test causes ping6 to wait one interval before sending anything at all
if you don't use -l. PR bin/39732.
2008-10-13 13:47:35 +00:00
christos
85db23df23
reallocate the correct amount. From Anon Ymous
2008-10-12 23:26:12 +00:00
wiz
af2c2b73f3
Don't use unicode in usage.
...
Noted by Anon Ymous.
2008-10-12 20:49:43 +00:00
wiz
89cc13767c
Sync usage with man page.
2008-10-09 18:38:24 +00:00
wiz
104f1a2c29
Standardize.
2008-10-09 18:32:08 +00:00
christos
59334248e2
Disable userid to username lookups by default. Add a -U flag to perform them.
...
In single user mode lookups that involve the network might not work and they
slow down fsck.
2008-10-09 16:56:23 +00:00
christos
c6070f6f5a
Avoid allocating 2 x inospace and use realloc instead. This also saves a
...
large memcpy.
2008-10-09 15:50:46 +00:00
joerg
281bbad379
Explicitly check that the dump device is not the console, a tty or pty.
...
While the list is adhoc, the problems reported are always with
/dev/console. Adresses PR 38425 and similiar issues with Xen.
2008-10-09 13:59:50 +00:00
wiz
0247fc12f6
Bump date for previous. Remove trailing whitespace.
...
New sentence, new line. Capitalize Ethernet.
2008-09-30 09:41:41 +00:00
dyoung
7abd58c82d
Do not mention the 'ns' address family any longer, since that
...
support was removed quite a while ago.
Mention the 'link' address family. Describe the 'active' keyword.
Add examples for adding and activating a link-layer address.
2008-09-29 17:28:07 +00:00
pooka
4a6dd4a9c6
Assign default value for retrycnt already in data.
...
XXX: the use of globals would benefit from a loving touch
2008-09-27 20:39:42 +00:00
christos
8c6fb6faa5
PR/39525: Joachim Schueth, Frederik Sausmikat:
...
cgd inadvertently encrypts blkno eight times to generate IV
2008-09-12 16:51:54 +00:00
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
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