Commit Graph

5400 Commits

Author SHA1 Message Date
abs
b861177ec4 - Display "Enter '?' for help" when starting interactive mode
- Use %.40g rather than %g when printing sectors and MB for existing
  partition size/offset.
  Changes [1.93802e+06c, 1953525105s, 953870M]:
  to:     [1938021c, 1953525105s, 953869.6875M]:
2009-11-28 10:52:10 +00:00
abs
e115d85122 Shuffle the order of examples to put the interactive option (-i) ahead
of $EDITOR and "disklabel -w -r /dev/rsd0c sd2212 foo"
2009-11-28 10:28:22 +00:00
tsutsui
fcf4b7e0c1 Remove fdisk/mbr for macppc which was blindly pulled from OpenBSD.
It just fakes MBR partition map which contains 1MB FAT16B partition
and ~1GB OpenBSD partition, and we can always create necessary
MBR partitions for OpenFirmware by the fdisk(8) command itself.
2009-11-27 15:37:32 +00:00
mbalmer
124961627e s/the the/the/ 2009-11-22 18:40:26 +00:00
wiz
feb9cdd5a3 Remove trailing whitespace. 2009-11-17 19:35:48 +00:00
jld
9e2ba7b416 Bump date; also fix typo pointed out by snj@. 2009-11-17 19:09:38 +00:00
jld
f1a1ad338d Finally commit the RAIDframe parity map Summer Of Code project.
Drastically reduces the amount of time spent rewriting parity after an
unclean shutdown by keeping better track of which regions might have had
outstanding writes.  Enabled by default; can be disabled on a per-set
basis, or tuned, with the new raidctl(8) commands.

Discussed on tech-kern@ to a general air of approval; exhortations to
commit from mrg@, christos@, and others.

Thanks to Google for their sponsorship, oster@ for mentoring the
project, assorted developers for trying very hard to break it, and
probably more I'm forgetting.
2009-11-17 18:54:26 +00:00
dsl
fb64c309b2 Allow MB, GB and CYL (not just M, G and C) and lower case.
Don't output a splurious 'd' before "cyl".
Fixes PR/37414.
Patch in PR is wrong!
2009-11-04 22:25:56 +00:00
christos
4d3e7c5df2 remove ancient ifdefs (Aleksej Saushev) 2009-11-02 00:47:09 +00:00
dsl
3b8f95158f Make absence of /usr/mdec/mbr only a warning.
Fixes PR/26510
2009-10-31 20:41:00 +00:00
christos
2853bbf4b7 use %option instead of #define YY_NO_... 2009-10-29 14:49:02 +00:00
christos
05a0c94cec no need for noinput 2009-10-29 14:34:06 +00:00
christos
cd2a002a7a no unput 2009-10-28 20:59:46 +00:00
christos
652adce2ab add %option noyywrap 2009-10-28 19:43:56 +00:00
christos
1a15c56ae5 we don't need unput 2009-10-28 17:25:44 +00:00
christos
cad376bd0d merge 2.32 which is actually 2.31. Most important change is:
- use multicast over point-to-point (GRE) links as proposed by Dan Lukes.
2009-10-26 02:53:15 +00:00
joerg
65828ca533 Use .%U. 2009-10-25 18:34:04 +00:00
tsutsui
ab4082e001 - u_short -> uint16_t
- KNF a bit
2009-10-24 18:15:45 +00:00
snj
febb7cce65 Drop 3rd and 4th clauses. Approved by gwr@ (copyright holder). 2009-10-21 23:12:09 +00:00
snj
550147bd6a Remove 3rd and 4th clauses in christos' license. OK christos. 2009-10-21 01:07:44 +00:00
bouyer
6d07b400dc Remove closes 3 & 4 from my licence. Lots of thanks to Soren Jacobsen
for the booring work !
2009-10-19 18:41:07 +00:00
wiz
6365332879 Document -n, from Jukka Ruohonen in private mail.
Bump date.
2009-10-19 14:35:04 +00:00
joerg
b2ed4022ca Do not use .Xo / .Xc without a good reason. 2009-10-14 22:00:55 +00:00
pooka
4be222467f fix prototypes of function pointers to varargs syscalls 2009-10-13 22:04:31 +00:00
pooka
2ff8677b99 close rump kernel file descriptors properly 2009-10-11 12:51:58 +00:00
pooka
4f5a394d32 Support RUMP_ACTION, i.e. compile-time switch to make this execute
rump syscalls to configure raidframe in a rump kernel.
2009-10-11 12:14:05 +00:00
pooka
c50311a2dc fspec: dev -> canon_dev 2009-10-07 20:42:09 +00:00
pooka
96c1f4851b Mount from canon_dev instead of dev. 2009-10-07 20:34:02 +00:00
wiz
0fe31f2e87 Drop trailing whitespace. 2009-10-03 07:37:01 +00:00
elad
50c13fc074 Make modstat output look pretty again. 2009-10-03 02:27:43 +00:00
elad
1df9608023 Centralize documentation about exported sysctl variables in the relevant
secmodel's man-page.
2009-10-02 20:31:19 +00:00
elad
52734536eb Bump date to today's date (rather than when the changes were made). 2009-10-02 19:50:37 +00:00
elad
53ca19a3b3 First part of secmodel cleanup and other misc. changes:
- Separate the suser part of the bsd44 secmodel into its own secmodel
    and directory, pending even more cleanups. For revision history
    purposes, the original location of the files was

        src/sys/secmodel/bsd44/secmodel_bsd44_suser.c
        src/sys/secmodel/bsd44/suser.h

  - Add a man-page for secmodel_suser(9) and update the one for
    secmodel_bsd44(9).

  - Add a "secmodel" module class and use it. Userland program and
    documentation updated.

  - Manage secmodel count (nsecmodels) through the module framework.
    This eliminates the need for secmodel_{,de}register() calls in
    secmodel code.

  - Prepare for secmodel modularization by adding relevant module bits.
    The secmodels don't allow auto unload. The bsd44 secmodel depends
    on the suser and securelevel secmodels. The overlay secmodel depends
    on the bsd44 secmodel. As the module class is only cosmetic, and to
    prevent ambiguity, the bsd44 and overlay secmodels are prefixed with
    "secmodel_".

  - Adapt the overlay secmodel to recent changes (mainly vnode scope).

  - Stop using link-sets for the sysctl node(s) creation.

  - Keep sysctl variables under nodes of their relevant secmodels. In
    other words, don't create duplicates for the suser/securelevel
    secmodels under the bsd44 secmodel, as the latter is merely used
    for "grouping".

  - For the suser and securelevel secmodels, "advertise presence" in
    relevant sysctl nodes (sysctl.security.models.{suser,securelevel}).

  - Get rid of the LKM preprocessor stuff.

  - As secmodels are now modules, there's no need for an explicit call
    to secmodel_start(); it's handled by the module framework. That
    said, the module framework was adjusted to properly load secmodels
    early during system startup.

  - Adapt rump to changes: Instead of using empty stubs for securelevel,
    simply use the suser secmodel. Also replace secmodel_start() with a
    call to secmodel_suser_start().

  - 5.99.20.

Testing was done on i386 ("release" build). Spearated module_init()
changes were tested on sparc and sparc64 as well by martin@ (thanks!).

Mailing list reference:

	http://mail-index.netbsd.org/tech-kern/2009/09/25/msg006135.html
2009-10-02 18:50:12 +00:00
elad
55a6f2a937 Remove stale references to the "read only at securelevel [12]" flags in
the documentation and code comments.
2009-09-30 04:30:50 +00:00
bouyer
59e1504d12 Restore changes from 1.86 and 1.87 after commit of 1.88. 2009-09-27 17:13:37 +00:00
apb
29d1bfefcb Make the exit status from "swapctl -A" and "swapctl -U" tri-state:
0 for success; 1 for error; and 2 when no devices of the appropriate type
are defined in fstab(5).  Previously, "no apropriate devices" was
indistinguishable from "error".
2009-09-24 16:15:20 +00:00
reinoud
b8b9c8efc5 Update TODO message; we can format with meta data partitions, only not yet for
BD-R, i.e. UDF 2.60.
2009-09-17 10:37:28 +00:00
tsutsui
aa68f4ed1a - no space needed between -I and dir per gcc(1)
- it's still better to use ${NETBSDSRCDIR} per other existing Makefiles
2009-09-16 15:08:29 +00:00
tsutsui
d60368466f Add comments that Makefile.inc should have shared stuff with
src/distrib/utils/x_ifconfig for install media.
2009-09-16 14:59:45 +00:00
he
ad8225c04b Move the addition of pfsync.c from Makefile.inc to Makefile,
so that this part doesn't get included in install media versions
of ifconfig, as per comments on source-changes@ from Izumi Tsutsui.
Also re-instate the use of ${.CURDIR} when setting up the include path.
2009-09-15 09:22:07 +00:00
he
4cf3355067 Change from using ${.CURDIR} to ${NETBSDSRCDIR} because this file
may be included by different parts of the source tree, in particular
deep down in the distrib/ tree, where ../.. isn't sufficient to "climb"
up to the top of the tree.  Fixes the build at least for our arc port.
2009-09-14 15:12:21 +00:00
pooka
84e795ea60 Set fspec to canon_dev instead of dev. 2009-09-14 12:43:46 +00:00
degroote
2d48ac808c Import pfsync support from OpenBSD 4.2
Pfsync interface exposes change in the pf(4) over a pseudo-interface, and can
be used to synchronise different pf.

This work was part of my 2009 GSoC

No objection on tech-net@
2009-09-14 10:36:48 +00:00
bouyer
601b0385bb Restore change from 1.39 after previous commit. 2009-09-13 18:30:30 +00:00
bouyer
cab6cd67bc Do some basic checks of the WAPBL journal, to abort the boot before the
kernel refuse to mount a filesystem read-write (booting a system
multiuser with critical filesystems read-only is bad):
Add a check_wapbl() which will check some WAPBL values in the superblock,
and try to read the journal via wapbl_replay_start() if there is one.
pfatal() if one of these fail (abort boot if in preen mode,
as "CONTINUE" otherwise). In non-preen mode the bogus journal will
be cleared.
check_wapbl() is always called if the superblock supports WAPBL.
Even if FS_DOWAPBL is not there, there could be flags asking the
kernel to clear or create a log with bogus values which would cause the
kernel refuse to mount the filesystem.
Discussed in
http://mail-index.netbsd.org/tech-kern/2009/08/17/msg005896.html
and followups.
2009-09-13 14:25:28 +00:00
bouyer
32992733fa Allow tunefs to clear any type of WAPBL log, not only in-filesystem
ones. Discussed in
http://mail-index.netbsd.org/tech-kern/2009/08/17/msg005896.html
and followups.
2009-09-13 14:13:23 +00:00
dyoung
230fd8c662 This should fix 'carpdev <ifname>' or, at least, not break it more
badly than before.
2009-09-11 23:22:28 +00:00
dyoung
c5d5f7697a Make ifconfig(8) set and display preference numbers for IPv6
addresses.  Make the kernel support SIOC[SG]IFADDRPREF for IPv6
interface addresses.

In in6ifa_ifpforlinklocal(), consult preference numbers before
making an otherwise arbitrary choice of in6_ifaddr.  Otherwise,
preference numbers are *not* consulted by the kernel, but that will
be rather easy for somebody with a little bit of free time to fix.

Please note that setting the preference number for a link-local
IPv6 address does not work right, yet, but that ought to be fixed
soon.

In support of the changes above,

1 Add a method to struct domain for "externalizing" a sockaddr, and
  provide an implementation for IPv6.  Expect more work in this area: it
  may be more proper to say that the IPv6 implementation "internalizes"
  a sockaddr.  Add sockaddr_externalize().

2 Add a subroutine, sofamily(), that returns a struct socket's address
  family or AF_UNSPEC.

3 Make a lot of IPv4-specific code generic, and move it from
  sys/netinet/ to sys/net/ for re-use by IPv6 parts of the kernel and
  ifconfig(8).
2009-09-11 22:06:29 +00:00
wiz
94c9674d9d Add xref to pkgsrc/net/gated, so people know where to find gated(8).
Improve markup of RFCs in SEE ALSO.
Sort options.
Bump date.
2009-09-11 11:44:38 +00:00
pooka
14e70b7ba7 fix LP64 builds. yay, C type system.
patch from Joachim Kuebart
2009-09-10 09:10:29 +00:00
pooka
8b0a183ce8 Remember to add cgdconfig.h too. 2009-09-08 22:16:56 +00:00
pooka
7ae6c0a6f6 * allow specification of kernel operations vector
* make it possible to build cgdconfig as a library
2009-09-08 21:36:35 +00:00
pooka
d7e67263d0 build smb_kernelops 2009-09-06 18:39:04 +00:00
pooka
630289bcad Include Makefile.inc earlier to make dot.nsmbrc install properly.
Pointed out by gson.
2009-09-05 18:37:51 +00:00
pooka
573d907442 Provide Makefile.inc which contains source module names and paths. 2009-09-04 18:25:56 +00:00
pooka
7f37fbb7ea Install smb headers relevant for userspace and make mount_smbfs
use installed headers instead of src/sys.
2009-09-03 12:04:50 +00:00
joerg
350a39e662 Fix markup 2009-08-22 00:14:21 +00:00
dogcow
9098338f79 Instead of exiting with an obscure error message if -N /kernelname isn't
specified, blithely assume the kernel will consume around 20 megs.
2009-08-18 04:02:39 +00:00
bouyer
7095ec7992 fix pasto: UFS_WAPBL_FLAGS_CREATE_LOG is "create-log" not "clear-log" 2009-08-17 21:28:24 +00:00
martin
c69e3f0a0e Add <sys/exec_aout.h> includes 2009-08-16 18:01:49 +00:00
tron
e67b5654ff Ignore the "-P" option as intended to make this work with e.g.
"fsck_flags=-pP" in "/etc/rc.conf".

Patch supplied by Pierre Pronchery in PR bin/41490.
2009-08-16 13:50:54 +00:00
yamt
44484fcfa9 an example. 2009-08-10 02:56:23 +00:00
apb
0b08bd10ac Allow rcorder-visualise.sh to accept an optional set of file names on
the command line.  By default it uses /etc/rc.d/*, as before.  Sample
usage: /usr/src/rcorder-visualise.sh /usr/src/etc/rc.d/*.
2009-08-09 17:08:53 +00:00
dyoung
fcabb0789a Describe the -N flag. 2009-08-07 20:13:12 +00:00
dyoung
ae9b1bdb85 Use getnameinfo(3) instead of inet_ntoa(3) to convert IPv4 addresses
to names.
2009-08-07 19:35:55 +00:00
dyoung
ab7c5957a9 Add option -N. -N is just the opposite of option -n in netstat(8)
or route(8): it tells ifconfig(8) to try to resolve numbers to
hosts and service names.

This default ifconfig behavior stays the same as it always was.
2009-08-07 18:53:37 +00:00
pooka
4979347199 remember to add cleaner_main() prototype 2009-08-06 00:58:32 +00:00
pooka
fe44f86a99 in const where available 2009-08-06 00:55:08 +00:00
pooka
709a4d5bb6 Define syscalls of lfs userspace tools (cleaner, mainly) through
a struct called kernelops, which contains standard system calls
for the normal case and rump system calls for the rump case.

Make it possible to run the lfs cleaner in a library fashion (taking
the quick route with the implementation).
2009-08-06 00:51:55 +00:00
dsl
68a8748cf1 Change arguments to decimal() to be int64_t.
They need to be able to hold disk sector numbers > 2^31 and also -1.
Should fix PR/34807
2009-08-05 21:31:50 +00:00
wiz
e28fde3845 Bump date for previous. Add comma in enumeration. Use Pp for paragraph
separation.
2009-08-02 22:49:08 +00:00
spz
18f2bbe96d make dkctl conform to its man page and print the device name on addwedge
when the addition was successful (as well as indicating success).
2009-08-02 18:16:08 +00:00
pooka
181bef7d2d convert to parseargs form 2009-07-31 14:58:21 +00:00
pooka
746d1fce34 Shortcircuit -o getargs in userspace. We know the kernel driver
will not return any data and mount(2) fails with EINVAL if data_len
is 0.  This caused lame-o output in mount -vv:
mount_fdesc: fdesc on /failsystem: Invalid argument
2009-07-31 14:56:11 +00:00
spz
5ef5d44599 list the partition types addwedge understands, so you don't need to utsl
to find out what strings to use here
fixes PR 37252
2009-07-30 05:54:43 +00:00
hubertf
270beabd82 Add "MAC" keyword to the corresponding example. 2009-07-29 21:47:11 +00:00
dyoung
854940045a Don't require a "vlan" argument with "-vlanif". "ifconfig vlan0
-vlanif" works as one would expect, now.
2009-07-28 18:22:33 +00:00
dyoung
183dffe7f4 Both carp.c and vlan.c expect for a keyword with a KW_T_STR-type
value to put a prop_string_t into the environment, but the keyword
parser put a prop_data_t into the environment, instead.  That broke
the -vlanif and -carpdev keywords and defied developer expectations.
Let's put a prop_string_t into the environment.

Thanks to Arnaud Degroote for reporting the problem.
2009-07-28 18:21:06 +00:00
dholland
e05b6497c8 Remove gross hack and attendant need for -fno-strict-aliasing. 2009-07-26 03:22:01 +00:00
wiz
9f6042ad7c Fix Dd argument, sort options and option descriptions. 2009-07-18 17:07:12 +00:00
reinoud
69a586f230 Import read-only part of the NiLFS (v2) implementation for NetBSD. It has been
tested with a DEBUG+DIAGNOSTIC+LOCKDEBUG kernel. To summerise NiLFS, i'll
repeat my posting to tech-kern here:

NiLFS stands for New implementation of Logging File System; LFS done
right they claim :) It is at version 2 now and is being developed by NTT, the
Japanese telecom company and recently put into the linux source tree. See
http://www.nilfs.org. The on-disc format is not completely frozen and i expect
at least one minor revision to come in time.

The benefits of NiLFS are build-in fine-grained checkpointing, persistent
snapshots, multiple mounts and very large file and media support. Every
checkpoint can be transformed into a snapshot and v.v. It is said to perform
very well on flash media since it is not overwriting pieces apart from a
incidental update of the superblock, but that might change. It is accompanied
by a cleaner to clean up the segments and recover lost space.

My work is not a port of the linux code; its a new implementation. Porting the
code would be more work since its very linux oriented and never written to be
ported outside linux. The goal is to be fully interchangable. The code is non
intrusive to other parts of the kernel. It is also very light-weight.

The current state of the code is read-only access to both clean and dirty
NiLFS partitions. On mounting a dirty partition it rolls forward the log to
the last checkpoint. Full read-write support is however planned!

Just as the linux code, mount_nilfs allows for the `head' to be mounted
read/write and allows multiple read-only snapshots/checkpoint mounts next to
it.

By allowing the RW mount at a different snapshot for read-write it should be
possible eventually to revert back to a previous state; i.e. try to upgrade a
system and being able to revert to the exact state prior to the upgrade.

Compared to other FS's its pretty light-weight, suitable for embedded use and
on flash media. The read-only code is currently 17kb object code on
NetBSD/i386. I doubt the read-write code will surpass the 50 or 60. Compared
this to FFS being 156kb, UDF being 84 kb and NFS being 130kb. Run-time memory
usage is most likely not very different from other uses though maybe a bit
higher than FFS.
2009-07-18 16:31:41 +00:00
dyoung
ca53a4b923 Callers expect getdiskinfo() to return -1 on error, so do that.
Simplify getdiskinfo() a bit while I am here: don't save error
codes that we will never refer to again.
2009-07-16 23:50:32 +00:00
reinoud
ac5082b991 Remove the comment on disc space accounting from the bugs section; it has been
fixed.
2009-07-13 17:58:10 +00:00
dyoung
9044aa4f92 Use the keyword 'MAC' so that people looking for a way to change
their MAC address can find the example.
2009-07-02 18:43:47 +00:00
dyoung
53e43e1e70 Deprecate wiconfig's -r, -g, -m options. Note that equivalent
options are available in ifconfig(8).
2009-07-02 17:45:25 +00:00
snj
b80e388902 Small grammar tweak. 2009-07-02 00:49:58 +00:00
uwe
c03dac31b4 G/c sentence fragment left over from vinum reference (forgotten in 1.69).
Noticed by bad@ in PR bin/41652
2009-07-01 02:43:34 +00:00
stacktic
d253d157dc Fixed a_mask to actually use its argument 2009-06-19 12:55:45 +00:00
haad
44141aa6ee Remove bogus warn, which was printed when DIOCGDISKINFO failed. 2009-06-14 21:06:18 +00:00
wiz
bba67e2c66 Sync usage with man page. 2009-06-11 08:12:00 +00:00
wiz
d28fa3c589 Remove -P from -p section, not from -f one. 2009-06-11 08:11:52 +00:00
jnemeth
59cc9994df -p -P doesn't make much sense since no module will be loaded. 2009-06-10 03:30:32 +00:00
jnemeth
cbd3656645 Add the MODCTL_NO_PROP flag to tell the kernel to ignore <module>.prop.
Add the '-P' option to modload(8) to set this flag.
2009-06-09 20:35:02 +00:00
snj
268e5bfd87 Mention a number of keyboard encodings.
From Jukka Ruohonen in PR kern/15955.
2009-06-09 19:46:32 +00:00
jakllsch
7a9caa1f87 Improve "identify" output slightly:
- Capitialize "Name" in World Wide Name.
 - Print the World Wide Name if it exists.
 - Use LBA48 maximum address when available for "total sectors" output.
 - So that geometry will display on more drives, don't be as strict when
   checking for non-ATAPI devices.  (This seemed to be an issue on at least
   one instance of a Caviar SE16 drive.)
 - Check more carefully for valid/relevant queue depth before printing it.
 - Increment the queue depth by one for display.

While here, wrap some long lines that I should have had wrapped before they
were commited in rev. 1.46.
2009-06-08 23:26:13 +00:00
haad
63b509d1c8 Add support for devices which do not support DIOCGDISKINFO ioctl yet. This
change  will restore fsck/newfs on vnd device.
2009-06-06 18:31:29 +00:00
haad
42c8b251b8 Remove debug printfs. 2009-06-06 17:47:50 +00:00
haad
e936991891 Remove debuging CFLAGS. 2009-06-06 11:09:16 +00:00
mlelstv
3479599edd make space for a trailing \0 in model,revision and serial buffers. 2009-06-06 09:18:55 +00:00
haad
102c1fe812 Add proplib to list of libraries, ifx fsdb build after my getdiskinfo change. 2009-06-06 08:22:24 +00:00
haad
f5b48500f1 Add support for DIOCGDISKINFO to disk like device drivers. Change
partutil.c::getdiskinfo to use it to get disk geometry info.
Use DIOCGWEDGEINFO ioctl to get information about partition size, if disk
driver doesn't support it use old DIOCGDINFO. This patch adds support for
wedge like devices(lvm logical volumes, ZFS zvol partitions) to newfs and
other tools.

No objections on tech-userlevel@.
2009-06-05 21:52:31 +00:00
jnemeth
5ce0121eaa Add a new [-d var] option which when combined with -p and -m will allow
you to delete vars from the existing <module>.prop file.
2009-06-05 11:37:30 +00:00
wiz
0246bc0bc2 Sort options. 2009-06-05 09:31:07 +00:00
jnemeth
3ee4fdb595 Add a "-m plist" option. This option will read in an existing
<module>.prop file and merge any options supplied on the "command
line".

This code will serve as the basis for in-kernel merging.
2009-06-04 02:57:01 +00:00
pooka
bd085b2b32 If RUMP_ACTION, treat close() as a rump syscall. 2009-06-02 23:41:35 +00:00
christos
1f751faed6 make this compile one non mbr machines (move #define to the general section) 2009-06-02 21:15:53 +00:00
christos
cb3a6fdee7 Delete GPT partitions if we overwrite with MBR to avoid confusion with disks
that have both MBR and a secondary left over GPT partition signature. From
Mike M. Volokhov
2009-06-01 19:57:33 +00:00
pooka
355dcf3a3b Install agr ioctl header and stop putting our hand under the sys skirt
in ifconfig.
2009-05-26 21:58:31 +00:00
pooka
162ca8ac83 Add compile mode which executes rump system calls. This is useful
when figuring out Where In The Kernel Is Carmen Sandiego's ioctl
for an ifconfig command line, since we can simply single-step into
the kernel.

Activated by "make RUMP_ACTION=1".  No changes to normal case.
2009-05-26 16:03:24 +00:00
jnemeth
3431c6b695 fputs() instead of puts() so we don't get the silly extra blank line 2009-05-19 22:55:24 +00:00
wiz
04c4f4a1d1 Sync usage and man page. 2009-05-19 22:39:52 +00:00
wiz
d4f65fc8c5 Sort option descriptions. Split usage in SYNOPSIS in two, since there
are two different methods of calling it.
Add arguments to option descriptions.
2009-05-19 22:35:41 +00:00
jnemeth
47371f5f63 Add -p option which outputs a property list suitable for loading with a
module.  This is in preparation for having the kernel load an optional
<module>.prop alongside a module, which is useful for passing options
to autoloaded modules and modules loaded at boot time.
2009-05-19 22:09:59 +00:00
reinoud
f30b0e943b Fix newfs_udf to create a valid disc images on bigendian machines. 2009-05-19 12:13:02 +00:00
wiz
983cc93f85 Sort SEE ALSO. 2009-05-18 14:11:30 +00:00
wiz
69f3168bc0 Sort SEE ALSO. 2009-05-18 12:29:31 +00:00
wiz
a8df896a15 Sort option descriptions. 2009-05-18 12:17:54 +00:00
mjf
3d68316951 Add an exmaple of unmounting all file systems apart from NFS and MFS
e.g,

	umount -a -t nonfs,mfs

This makes it clear that the "no prefix" only needs to be on the first
file-system argument to -t. The mount(8) man page has a clear example
of this but for some reason umount(8) was missing one.
2009-05-17 14:09:15 +00:00
wiz
ed8d5fd9a5 Sort option descriptions. 2009-05-13 22:49:48 +00:00
lukem
2a89584323 Note that FFSv1 is also known as FFS, UFS, or UFS1.
Note that FFSv2 is also known as UFS2.
Add a reference to Kirk's BSDcon03 paper on UFS2.
2009-05-10 13:28:00 +00:00
wiz
3932d28101 New sentence, new line. 2009-05-07 08:27:14 +00:00
lukem
87a1d67eda Consistently use FFSv1 or FFSv2 2009-05-07 06:56:56 +00:00
lukem
51d7a18bc6 Use "FFSv2" instead of "UFS2".
Expand the description of -c.
Xref dumpfs.
2009-05-07 06:54:23 +00:00
wiz
148a07685e Fix typo in Dd argument. 2009-05-04 20:11:30 +00:00
mhitch
0428b65ea1 fix sign-compare issues in vax-specific code. 2009-05-04 18:09:04 +00:00
yamt
f0ea152bc0 disable automatic mountd reloading for now because it makes the service
temporary unavailable.  PR/41331 from FUKAUMI Naoki.
2009-05-04 11:41:48 +00:00
dyoung
46db29bcf1 Bring getifaddrs(3) behavior in line with the documentation: the
ifa_data member of every AF_LINK struct ifaddrs points at the
corresponding struct if_data.  In ifconfig(8), do not try to suppress
duplicate AF_LINK ifaddrs by checking for a NULL ifa_data.

Don't copy out two AF_LINK struct ifaddrs for each active link-layer
address. getifaddrs(3) used to copy out one ifaddrs for the kernel's
RTM_IFINFO message, and one more for the kernel's RTM_NEWADDR message.
I suppress the first duplicate with a highly conservative change that
wastes a little bit of ifaddrs storage.  The storage is not leaked.
2009-04-27 20:10:49 +00:00
lukem
10a1256f76 set WARNS=3 -- too many -Wsign-compare issues in the kernel ffs code 2009-04-26 05:57:48 +00:00
dyoung
740c7b59d2 To make sure that we always print the active link-layer address in the
'address: ' field, don't treat the first address as the active address,
but search the link-layer addresses for the ones flagged IFLR_ACTIVE,
and print those.  Extract a subroutine, print_link_addresses(), for
printing link-layer addresses.
2009-04-21 22:46:39 +00:00
dyoung
ce947d8aa0 Cosmetic: add some whitespace for my ease of reading. 2009-04-21 22:13:10 +00:00
dyoung
5785e48164 There's no use casting a socket address to sockaddr_dl, only to cast it
back to sockaddr, so don't do it.
2009-04-21 21:57:14 +00:00
dyoung
5cd12bc44e Use getnameinfo(3) to render a human-readable link-layer address in the
'address: ' line, just as we do in the 'link xx:xx:...:xx' line.
2009-04-21 21:42:35 +00:00
dyoung
4590553b36 Fix indentation: change spaces to tabs. 2009-04-21 18:00:25 +00:00
wiz
456c3f9203 Document -n. 2009-04-20 22:07:23 +00:00
wiz
5be7e30eb5 Add -n to usage. Now it just needs to be documented. 2009-04-20 22:05:47 +00:00
wiz
67000f2b2f Bump date for previous. Remove trailing whitespace. 2009-04-20 22:04:57 +00:00
dyoung
dfd60e8c7b Mention -n in usage. 2009-04-20 21:41:50 +00:00
dyoung
0f6df043c6 Add flag -n to suppress the first column of drvctl -l output. 2009-04-20 21:40:42 +00:00
drochner
dff56c2587 also fix a comment wrt use of the csysid/cstart/csize vars 2009-04-20 17:06:55 +00:00
drochner
0fa7059102 define YY_NO_INPUT where appropriate, from Kurt J. Lidl per PR misc/41160 2009-04-20 16:05:29 +00:00
sborrill
45a4197562 When using -s flag, read start and size as unsigned to allow for larger
disks. (Thanks to drochner@ for catching it).
2009-04-20 15:03:56 +00:00
wiz
86340eaa2b Remove outdated example. From Todd Kover in PR 41238. 2009-04-18 14:55:50 +00:00
joerg
f707732bc3 Speling. 2009-04-15 23:03:34 +00:00
joerg
84a8422ae3 As noted by apb, don't slip in local pathes. 2009-04-15 22:44:26 +00:00
joerg
3f61ca34e1 Behave as documented and remove the dot call at the end.
Add RCS ID.
2009-04-15 22:38:26 +00:00
joerg
49451a8f9f Add a small script to visualize the rc dependency graph and point to it. 2009-04-15 22:36:04 +00:00
apb
a194a42669 If MAKEDEV exits non-zero, but was nevertheless able to create
/dev/console, then have init(8) just print a warning instead of
exiting.
2009-04-12 09:31:32 +00:00
lukem
ef685eeea9 Enable WARNS=4 by default except for:
dump  dump_lfs  fsck_ffs  fsck_lfs  fsdb  mount_smbfs
	newfs_ext2fs  newfs_lfs  resize_lfs  setkey
2009-04-11 07:58:11 +00:00
lukem
6f957c8d46 fix sign-compare issue 2009-04-11 07:55:35 +00:00
lukem
002fe60580 fix sign-compare issues 2009-04-11 07:40:37 +00:00