Commit Graph

6521 Commits

Author SHA1 Message Date
pgoyette 596954117f Minor formatting change in swapctl -l as noted in my PR bin/51155 2016-05-31 09:34:25 +00:00
dholland dea44b9dd8 PR 50756 David Binderman: avoid running off the end of an array in case
thing we're looking for isn't there. Which is probably impossible, but
that's not obvious.
2016-05-31 02:29:54 +00:00
joerg 1203c26a96 Add printf-like annotation. 2016-05-30 22:02:41 +00:00
mlelstv 44b25f2fac mark noreturn function exit_daemon() as __dead 2016-05-30 21:58:32 +00:00
mlelstv 6fea88c26e Several improvents to iscsid
- debug log is now using syslog
- seperate options for log level and foreground mode
- writes a pidfile so that /etc/rc.d/iscsid works
  Now links with libutil for pidfile(), the functions login() and logout()
  needed to be renamed to avoid a conflict.
- drops the nothreads option
- handles signals to shut down gracefully
- the driver may also shut down the daemon when it terminates
  Currently this cannot work as the driver can only terminate when
  the daemon has closed the driver file handle.
2016-05-29 13:35:45 +00:00
mrg a3ddb94352 update the micron smart codes for 247/248 to match data i found in
micron's "TN-FD-33: M510DC SSD SMART Implementation Introduction"
document.

these two values can be used to calculate the write amplication
factor:

   WAF = ( A247 + A248 ) / A247
2016-05-10 08:08:59 +00:00
khorben 3df9a0e8ab More friendly error messages for modload(8) and modunload(8)
Tested on NetBSD/amd64.

From Christian Koch (cfkoch@) of EdgeBSD; thanks!
2016-05-06 00:24:45 +00:00
jakllsch 1dac11f22d The on-disk FAT array does not include anything before CLUST_FIRST,
compensate in size check.

This was tickled by my SanDisk Sansa Clip 4GB, which exactly filled the FAT array.
2016-05-02 17:33:03 +00:00
ozaki-r 09973b35ac Separate nexthop caches from the routing table
By this change, nexthop caches (IP-MAC address pair) are not stored
in the routing table anymore. Instead nexthop caches are stored in
each network interface; we already have lltable/llentry data structure
for this purpose. This change also obsoletes the concept of cloning/cloned
routes. Cloned routes no longer exist while cloning routes still exist
with renamed to connected routes.

Noticeable changes are:
- Nexthop caches aren't listed in route show/netstat -r
  - sysctl(NET_RT_DUMP) doesn't return them
  - If RTF_LLDATA is specified, it returns nexthop caches
- Several definitions of routing flags and messages are removed
  - RTF_CLONING, RTF_XRESOLVE, RTF_LLINFO, RTF_CLONED and RTM_RESOLVE
- RTF_CONNECTED is added
  - It has the same value of RTF_CLONING for backward compatibility
- route's -xresolve, -[no]cloned and -llinfo options are removed
  - -[no]cloning remains because it seems there are users
  - -[no]connected is introduced and recommended
    to be used instead of -[no]cloning
- route show/netstat -r drops some flags
  - 'L' and 'c' are not seen anymore
  - 'C' now indicates a connected route
- Gateway value of a route of an interface address is now not
  a L2 address but "link#N" like a connected (cloning) route
- Proxy ARP: "arp -s ... pub" doesn't create a route

You can know details of behavior changes by seeing diffs under tests/.

Proposed on tech-net and tech-kern:
  http://mail-index.netbsd.org/tech-net/2016/03/11/msg005701.html
2016-04-04 07:37:07 +00:00
mlelstv 4842a68f63 Use the same defaults for cluster sizes as Windows. 2016-04-03 11:00:13 +00:00
ryo ccc6dc924a no need to escape 2016-04-01 05:23:56 +00:00
christos f4ab1bba27 -O0 for pass1.c and vax 2016-03-23 21:43:33 +00:00
dholland 89579fda21 Comment out unused logic. PR 50973 2016-03-20 04:24:46 +00:00
christos 1e4eeef8ef PR/50974: David Binderman: Remove unused code. 2016-03-17 18:56:14 +00:00
christos c1673bd676 fix pasto 2016-03-17 01:41:54 +00:00
christos 9eac9537df Appease gcc-5 from phone@ 2016-03-17 00:54:53 +00:00
christos c5f07454d1 PR/50921: David Binderman: Fix memory leak 2016-03-09 19:53:32 +00:00
christos 7bb0f9314c PR/50920: David Binderman: fix leak 2016-03-09 19:48:24 +00:00
christos 89e8cc1112 PR/50909: David Binderman: Optimize memset 2016-03-07 15:56:17 +00:00
christos 161a4d81ea PR/50910: David Binderman: Optimize memset. 2016-03-07 15:55:06 +00:00
dholland 60d995df79 Terminate expression with a semicolon, instead of accidentally
splicing to the next line with a comma. Noticed by Christos. Has no
actual effect, fortunately. (Compiler output is unchanged.)
2016-03-07 15:09:55 +00:00
christos 85e7d45a39 PR/50908: David Binderman: Optimize memset's 2016-03-07 14:47:25 +00:00
christos 0598d5879b PR/50909: David Binderman: Optimize memset 2016-03-07 12:48:53 +00:00
riastradh fdeab11495 #ifdef forward declaration of setpolicy like definition. 2016-02-29 16:25:06 +00:00
riastradh ab04408fa8 Consistently use estrlcpy for ifr.ifr_name here, not strncpy. 2016-02-29 16:23:25 +00:00
christos a0647817d3 Add MOPT_{REL,NO}ATIME as supported by the underlying filesystems. 2016-02-21 22:51:29 +00:00
riastradh 9628679b27 Need <stdbool.h> for true/false. 2016-02-19 03:53:46 +00:00
mlelstv c153503310 fix usage message 2016-02-06 10:35:58 +00:00
christos a97d476aa4 fix broken patch 2016-01-31 23:11:49 +00:00
christos 0636a2fe97 PR/50729: Izumi Tsutsui: Add "SMALLPROG"-like options to disklabel(8) 2016-01-31 18:57:29 +00:00
wiz 69be113f78 New sentence, new line. Bump date. 2016-01-30 10:13:02 +00:00
mlelstv 223c7df5b3 Add support to msdosfs and makefs to generate correct Unicode (UCS-2) directory
entries from UTF8 encoded file names.
2016-01-30 09:59:27 +00:00
christos ffeb8dbf4e Define _KERNTYPES for things that need it. 2016-01-23 21:22:45 +00:00
christos 9c39ccca16 no need for <sys/mbuf.h> 2016-01-23 21:05:51 +00:00
christos b8e29fa636 don't need mbuf.h! 2016-01-23 15:41:47 +00:00
christos 4f3d9e304d PR/50671: David Binderman: fix memory leak. 2016-01-17 15:59:26 +00:00
joerg 459b255b5e gpt_vwarnx is printf-like. 2016-01-08 18:59:01 +00:00
roy 74efc0b2e3 -W seconds will wait for the detached flag to clear on addresses on
interfaces marked up to allow time for the carrier to appear on the
interface.

This does not extend the -w option duration.
2016-01-07 11:32:21 +00:00
wiz 95e91b49e1 Sort command list in usage. 2016-01-06 23:03:13 +00:00
wiz 70ae258f94 Sort commands so I can find stuff. 2016-01-06 23:01:11 +00:00
wiz 704ad63c75 Use standard sort order for options.
Add -U to usage.
2016-01-06 22:57:44 +00:00
christos c4e0e8f498 Access to the SET_LAST_UNIT ioctl. 2016-01-06 17:41:36 +00:00
christos f9db75489b - add more informational messages
- handle case where last argument is an option not a device (set -l)
2015-12-29 16:45:04 +00:00
jnemeth 775c41e25a pretty up attribute display a bit 2015-12-26 13:12:16 +00:00
martin 1c2d0f1f02 Improve "show -a" display: split human readable Type: field from the Type-GUID
to avoid wrapping in the common case; add a human readable Size: display.
2015-12-26 13:08:45 +00:00
wiz 6471a2935e Simplify usage for gpt show. 2015-12-25 12:16:03 +00:00
martin 53078a2022 Add a -a flag to the show command, so we can display the full GPT with
all information in one go.
2015-12-25 10:59:56 +00:00
martin ac62bbaf8f Fix output in an error case 2015-12-24 17:35:57 +00:00
christos 94ae268a8f mention ip6addrctl 2015-12-13 14:24:47 +00:00
pgoyette 1aa8a7614b synch usage() with the man page. 2015-12-07 03:34:00 +00:00