Commit Graph

4591 Commits

Author SHA1 Message Date
jmmv 91af0d68b1 Add a '-l' flag and a 'L' command to interactive mode to list all known
file system types.  (Similar to what fdisk does for partition types.)

Closes PR bin/12954.
2006-11-26 16:16:31 +00:00
christos df031f1edc PR/34837: Mindaguas: Add SysV SHM dynamic reallocation and locking to the
physical memory
2006-11-25 21:40:04 +00:00
christos f5b5006944 PR/28884: Izumi Tsutsui: mount_mfs(8) doesn't set default fssize if "swap" is
specified
2006-11-25 18:18:22 +00:00
dsl 26ad77c3e1 Report the last sector number of a partition, instead of that of the first
of the next - with appropriate discarding of the head/sector values
if the partition is cylinder aligned.
Fixes PR 26921
2006-11-25 16:10:32 +00:00
scw 258fa36dc2 Don't use negative offsets from "bpb.bps" when writing out values such
as DOSMAGIC in the MBR. In non-512 byte media, the MBR is still 512
bytes in length.

Based on the patches provided in PR kern/17398 by Trevin Beattie.
2006-11-25 12:29:33 +00:00
christos 1665d5e960 fix spelling of accommodate; from Zapher. 2006-11-24 19:46:58 +00:00
yamt 809ec70bcf implement ipv6 TSO.
partly from Matthias Scheler.  tested by him.
2006-11-23 19:41:58 +00:00
elad a84fee7faf Initial implementation of PaX Segvguard (this is still work-in-progress,
it's just to get it out of my local tree).
2006-11-22 02:02:51 +00:00
elad 0ba2154297 Update my email address. 2006-11-21 00:22:04 +00:00
apb 324b3b8a78 Fix error in previous. Pass 1 needs to use progress_setrange(),
not progress_sethighlim().
2006-11-14 22:51:11 +00:00
apb f93df16b06 Improve the progress bar displayed by fsck_ffs -p -P.
The progress bar will now travel from 0 to 20% during pass 1, from 20%
to 95% during pass 2, and from 95% to 100% during passes 3, 4, and 5.
Previously, the progress bar was not displayed at all during pass 1,
slowly traveled from 0 to about 50% during pass 2, and then very rapidly
traveled from 50% to 100% during passes 3, 4, and 5.

Note that fsck_ffs is the only user of fsck/progress.{c,h}.
2006-11-14 21:01:46 +00:00
dyoung a25eaede91 Add a source-address selection policy mechanism to the kernel.
Also, add ioctls SIOCGIFADDRPREF/SIOCSIFADDRPREF to get/set preference
numbers for addresses.  Make ifconfig(8) set/display preference
numbers.

To activate source-address selection policies in your kernel, add
'options IPSELSRC' to your kernel configuration.

Miscellaneous changes in support of source-address selection:

        1 Factor out some common code, producing rt_replace_ifa().

        2 Abbreviate a for-loop with TAILQ_FOREACH().

        3 Add the predicates on IPv4 addresses IN_LINKLOCAL() and
          IN_PRIVATE(), that are true for link-local unicast
          (169.254/16) and RFC1918 private addresses, respectively.
          Add the predicate IN_ANY_LOCAL() that is true for link-local
          unicast and multicast.

        4 Add IPv4-specific interface attach/detach routines,
          in_domifattach and in_domifdetach, which build #ifdef
          IPSELSRC.

See in_getifa(9) for a more thorough description of source-address
selection policy.
2006-11-13 05:13:38 +00:00
apb e81d0de4e0 Fix a bug that caused 0.0.0.0/0 to be treated like 0.0.0.0/32.
foo << 32 is undefined per section 6.5.7 of the C99 standard
if foo is (or is promoted to) a 32-bit type.
2006-11-11 21:50:19 +00:00
jmmv 98f101bc9c tmpfs is not considered experimental any more. OK'ed by core@. 2006-11-11 19:01:30 +00:00
jmmv 2947e73b43 Move lfs_cleanerd from /usr/libexec to /libexec. This is to allow putting
the root file system on a LFS volume.

Addresses PR bin/30407.  No objections in tech-userlevel@.
2006-11-11 14:47:27 +00:00
christos 80955a4c43 replace varstack alloc with malloc. 2006-11-09 19:41:59 +00:00
christos b6479e9fff Fix malloc/realloc/calloc issues: always check and exit, use EEXIT instead
of 8.
2006-11-09 19:36:36 +00:00
yamt 442aa98fcd remove nqnfs support.
namely,
	- make -q a synonym of -3.
	- ignore -L and -D.
2006-11-09 10:07:00 +00:00
christos 9f4a7c8c31 PR/34965: Nicolas Joly: sysctl(1) small memory leak 2006-11-02 14:54:21 +00:00
christos 09012c9606 prefix name in kern.drivers 2006-11-01 22:26:36 +00:00
mjf a2be0ed655 Revert the changes I introduced trying to solve tmpfs' NFS export problem.
Requested by yamt@
2006-10-31 08:12:46 +00:00
christos 9e74871aa3 find rmd160.h 2006-10-30 01:21:53 +00:00
hannken fcd5ec4841 When using a snapshot take the snapshot raw device on further open.
Fixes PR #34923  dump(8) only dumps a corefile with -X (snapshots)

Approved by: Manuel Bouyer <bouyer@netbsd.org>
2006-10-26 20:02:30 +00:00
mjf 84bd46b9f9 Add support to allow a file system to not permit being exported over NFS.
Approved by elad@ and wrstuden@
2006-10-24 21:53:10 +00:00
mrg 7d429c305a use c99 initialisers. 2006-10-23 03:56:38 +00:00
christos 27ae1373d5 Mention include proper file for keyboard defines; from Zafer. 2006-10-22 19:39:32 +00:00
he 565d8259e3 Add initialization of a variable where gcc for some archs thinks
that it may be used un-initialized.  From cursory inspection it is
not obvious that gcc is wrong.
2006-10-17 21:14:03 +00:00
wiz 1a2477c1ae Serial comma. Add RCS Id. Remove superfluous quotes. 2006-10-17 09:32:34 +00:00
wiz a88697ed0e Improve English. 2006-10-17 09:26:21 +00:00
he a738248ed5 Some of our ports want <sys/param.h> in order to have DEV_BSIZE defined,
needed for LABELSECTOR expansion.
2006-10-17 09:20:09 +00:00
christos 5afd1c0a23 use MOPT_NULL 2006-10-16 03:37:42 +00:00
christos cf91149591 c99 initializer 2006-10-16 03:26:49 +00:00
christos 851ac27d44 c99 initializers 2006-10-16 03:25:21 +00:00
christos 8dd4b2bbb0 comment out/delete impossible code 2006-10-16 03:21:34 +00:00
christos 8cf4f4e359 c99 initializers 2006-10-16 03:21:05 +00:00
christos b8a730da20 c99 initializer 2006-10-16 03:15:46 +00:00
christos dcd203dd29 c99 iniitializer 2006-10-16 03:12:23 +00:00
christos 17e1e1af49 c99 initializer 2006-10-16 03:10:59 +00:00
christos 0e84886f1c comment out impossible code. 2006-10-16 03:09:26 +00:00
christos fef0df6d6b c99 initializers 2006-10-16 03:09:06 +00:00
christos 6dd4b3398f c99 initializers. 2006-10-16 03:04:45 +00:00
christos f076ca6346 use c99 initializers 2006-10-16 03:02:01 +00:00
christos 68475dcb61 comment out impossible code. 2006-10-16 03:01:36 +00:00
christos 50b568b12d c99 initializers 2006-10-16 02:56:56 +00:00
christos 9b005038ce add missing initializer 2006-10-16 02:55:10 +00:00
christos 2f9c53340f sprinkle volatile. 2006-10-16 02:54:23 +00:00
christos 00ab1df137 - get rid of p_cfunc2
- add missing initializers
2006-10-16 02:52:43 +00:00
christos 56641252ba - add volatile
- static before const
2006-10-16 02:44:46 +00:00
christos 064b0504f7 c99 initializer 2006-10-16 02:43:19 +00:00
christos 457d135620 c99 initializers 2006-10-16 02:42:42 +00:00
christos 7e3b870a41 add missing initializers 2006-10-16 00:45:19 +00:00
christos 9052088997 add casts 2006-10-15 22:43:30 +00:00
christos 70a155bfa8 hook in gpt 2006-10-15 22:37:14 +00:00
christos 9b52236568 Make this work under NetBSD. 2006-10-15 22:36:29 +00:00
christos 5819a8c09d Import the gpt tool from FreeBSD 2006-10-15 22:34:15 +00:00
christos 5bc3ea6c79 support printing kern.drivers 2006-10-15 21:33:34 +00:00
xtraeme 3481053ae9 Use O_DIRECT (aka Direct I/O) when -F is used. 2006-10-15 13:18:24 +00:00
xtraeme 7cf1cb802e Detect FFSv1 partitions with fragsize/blocksize greater than
2048/16384.
2006-10-14 13:22:34 +00:00
pooka 1cacfd0524 lower value mean higher priority for bridges
+ fix off-by-one

Tobias Nygren, bin/34781
2006-10-11 13:16:39 +00:00
peter e263dfd62f WFORMAT is no more... 2006-10-08 17:52:28 +00:00
elad 516c371048 PR/13478: Greg A. Woods: some tty-related documentation fixes
Patch applied with "minor tweaks" from me, thanks!
2006-10-06 22:07:44 +00:00
elad 53ca07b4d7 If Veriexec enforces access type, don't allow mmap() to use PROT_EXEC on
files that don't have the "indirect" flag. Also change the "library" alias
in veriexecctl(8) to mean "file, indirect".

okay blymn@
2006-09-30 10:56:31 +00:00
perseant 554662dc37 Call fcntl on the file descriptor *before* closing it. 2006-09-28 23:23:01 +00:00
elad 38e12255a4 Change error message to say "setuid", forgotten in previous commit.
Pointed out by Ray Lai, thanks!
2006-09-28 16:01:16 +00:00
christos 6bc6175052 Don't record runlvl transitions before we have a read-write /var. Noticed
by lrou at x dot ua.
2006-09-28 15:20:14 +00:00
christos c5acbf4d6b Coverity CID 3788: comment out impossible code. 2006-09-27 18:52:11 +00:00
wiz 730e1c55de End sentence with a dot. 2006-09-27 17:42:34 +00:00
elad 5c38108d28 Change the PaX mprotect(2) restrictions' "global_protection" knob to
just "global" -- it's shorter and more readable. Update documentation.
2006-09-26 14:48:40 +00:00
elad fd2bf79719 Add a DIAGNOSTICS section, specifically to address the "Operation not
supported by device" error. Reference options(4). Bump date.
2006-09-25 20:07:17 +00:00
christos 6accae529c Error message consistency:
1. don't print the program name in the message [syslog does it]
2. no extraneous \n [syslog takes care of it]
3. quote strings as `%s' [we are using syslog]
4. use %m instead of error = %d
2006-09-25 19:42:04 +00:00
wiz da100ff1d9 Use more macros. New sentence, new line. 2006-09-24 15:52:12 +00:00
jmcneill 4fd9dcb2a0 PR# 28660: how to remove bootmenu text from some partition 2006-09-24 15:22:01 +00:00
elad d13f82cf17 On 2nd thought, setuid() is better here. 2006-09-24 11:17:09 +00:00
elad 545c393d67 PR/28741: Michael Santos: ping does [not] drop root privileges
Moved socket calls way up, and called seteuid(getuid()).
2006-09-24 11:05:09 +00:00
xtraeme 91254d0d23 It's WDCC_SECURITY_FREEZE not WCDD_SECURITY_FREEZE.
Noticed by Sergey Svishchev.
2006-09-24 08:33:30 +00:00
pooka 4df78a97d5 print the L flag for routes with llinfo. makes you not wonder why
non-llinfo routes are being printed for route show -llinfo
2006-09-23 23:01:01 +00:00
dyoung 6333e1495e Let us qualify 'route flush' and 'route show' commands with -llinfo
and -host flags, which is useful for displaying/flushing ARP entries:

# route -n show -inet -llinfo -host
Routing table

Internet:
Destination        Gateway            Flags
169.254.1.119      link#1             UH
169.254.230.110    00:02:6f:21:e6:6e  UH
# route -n flush -inet -llinfo -host
169.254.1.119                             done
169.254.230.110      0.2.6f.21.e6.6e      done
169.254.237.70                            done
# route -n show -inet -llinfo -host
Routing table
#

This will help me address bin/11079, "dhclient may require arp and sed".

Extract common code from flushroutes() and show(), creating
parse_show_opts().

While I'm here, make small cosmetic changes to flushroutes().
2006-09-23 22:41:25 +00:00
dyoung 29655a0cbb Move the #ifndef SMALL code together. 2006-09-23 21:55:47 +00:00
dyoung 07474a8f36 Use the symbol AF_UNSPEC instead of 0 as appropriate. 2006-09-23 21:51:05 +00:00
dyoung bf71bcc951 Remove dead code. 2006-09-23 21:11:53 +00:00
he fa8dee8628 Um, correct previous, so that current_state def/use is consistent. 2006-09-23 18:57:26 +00:00
elad 30d1b3f220 PR/30226: Nino Dehne: ping6(8) and ping(8) are inconsistent in the output
of round-trip times.

okay rpaulo@
2006-09-23 16:18:04 +00:00
xtraeme e2e3ea2b19 Do not print "SMART not supported" when SMART was disabled, this
fixes PR bin/18666.
2006-09-23 15:24:24 +00:00
he 54f712bd18 Since current_state is conditionally defined, make sure its uses are as well. 2006-09-23 14:04:26 +00:00
christos c34b6372d0 Try entertain who(1) because it has been sad since it was swallowed by the
Death Star: add utmpx entries for boot time, down time, run level, login
process.
2006-09-22 21:49:21 +00:00
thorpej ef731d9e00 - Add a new DRVCTLCOMMAND ioctl to /dev/drvctl. This is a generic
"execute a command" ioctl that takes a dictionary as an argument
  (specifying the command and arguments) and returns a dictionary
  with the results (error code, optional error message, optional
  result data).

- Define and implement a "get-properties" command for DRVCTLCOMMAND
  that returns the properties dictionary of the specified device.

- Add a -p flag to drvctl(8) to fetch and display the properties of
  the specified device.

This is a great example of how to use prop_dictionary_sendrecv_ioctl().
2006-09-22 04:37:36 +00:00
elad 58375355b4 .Sh -> .Ss
mmm mdoclint. :)
2006-09-17 13:03:02 +00:00
elad efffcc37c4 Reference veriexecgen(8) instead of the old scripts. Bump date. 2006-09-16 21:06:13 +00:00
hubertf 8e46fd3f16 Fix typo, noted by Nino Dehne <ndehne@gmail.com> 2006-09-16 20:15:49 +00:00
elad 3ea3b1e63e Scripts don't have to be *shell* scripts. 2006-09-16 17:17:23 +00:00
elad 172a3fa471 Remove securelevel-related text from init(8) man-page as they're now in
secmodel_bsd44(9).

I'm not sure I agree with the BUGS section, but for now move it to
secmodel_bsd44(9) as well.
2006-09-15 20:20:06 +00:00
wiz d4ee8b696e Bump date for previous. 2006-09-15 20:11:13 +00:00
elad 56b99b4fca Remove sentence no longer true. 2006-09-15 14:41:57 +00:00
wiz 49751ff510 Sort options in usage and SYNOPSIS. 2006-09-10 20:28:52 +00:00
xtraeme a0a2046917 - Change the cast of st_size to uint64_t to avoid future problems
with large files.
- u_uintXX_t -> uintXX_t
2006-09-08 12:38:32 +00:00
riz 7bbc0ebe95 include <bsd.own.mk>. From Geoff Wing on source-changes. 2006-09-07 23:53:41 +00:00
dogcow f2d329dca0 remove more vestiges of CCITT, LLC, HDLC, NS, and NSIP. 2006-09-07 02:40:31 +00:00
xtraeme 96734c01d1 Change -f to -F, per mrg's suggestion. 2006-09-07 02:24:51 +00:00
xtraeme 7aa92d971b Add -f file support. Useful to search for partitions on disk images. 2006-09-07 00:48:21 +00:00
riz d28b2bee5d Deal with wedges and the new disk geometry structures, instead of using
struct disklabel.  (Shrinking a file system still seems to have problems,
though, independent of this change)
2006-09-05 19:46:14 +00:00