Commit Graph

5959 Commits

Author SHA1 Message Date
Alexander Motin
02d2ad5770 MFC r204195:
Improve output for controllers that doesn't report SATA speed.
2010-03-01 19:16:34 +00:00
Gavin Atkinson
d180e5eb6c Merge r204166 from head:
Document the interaction between /etc/devfs.conf and
  /etc/defaults/devfs.conf

PR:		docs/117308
Submitted by:	Mel <mel.xyzzy rachie.is-a-geek.net> (partially)
2010-02-28 11:14:29 +00:00
Hajimu UMEMOTO
de482c79d6 MFC r203490: Introduce '[ipaddr]:path' notation.
Since the existing implementation searches ':' backward, a path which
includes ':' could not be mounted.  You can now mount such path by
enclosing an IP address by '[]'.
Though we should change to search ':' forward, it will break
'ipv6addr:path' which is currently working.  So, it still searches ':'
backward, at least for now.
2010-02-27 18:27:32 +00:00
Kirk McKusick
4179ce18a2 MFC of 203763, 203764, 203768, 203769, 203770, 203782, and 203784.
These fixes correct a problem in the file system that treats large
inode numbers as negative rather than unsigned. For a default
(16K block) file system, this bug began to show up at a file system
size above about 16Tb.

These fixes also update newfs to ensure that it will never create a
filesystem with more than 2^32 inodes.

They also update libufs, tunefs, and growfs so that they properly
handle inode numbers as unsigned.

Reported by: Scott Burns, John Kilburg, and Bruce Evans
Followup by: Jeff Roberson
PR:          133980
2010-02-26 21:49:11 +00:00
Xin LI
a5a931b33f MFC 203052:
Add interface description capability as inspired by OpenBSD.  Thanks for
rwatson@, jhb@, brooks@ and others for feedback to the old implementation!

Sponsored by:	iXsystems, Inc.
2010-02-26 00:54:47 +00:00
Jaakko Heinonen
1eb55c8537 MFC r203157, r203816:
Handle short reads when the -P option is used and remove some dead code.

PR:		bin/121502
2010-02-20 13:35:05 +00:00
Matt Jacob
21eee1133a Add the long missing "destroy" option [mfc of 203505] 2010-02-18 01:15:58 +00:00
Alexander Motin
929100472e MFC r203376, r203384:
- Give ATA/SATA SIMs info about ATAPI packet size, supported by device.
- Make ATA XPT to reject longer SCSI CDBs then supported by device, or
any SCSI CDBs, if device doesn't support ATAPI.
2010-02-14 19:44:48 +00:00
Gavin Atkinson
a83e663908 Merge r203310,203547,203717 from head:
Implement the "-i" option to sysctl(8), to ignore failures while
  retrieving individual OIDs.  This allows the same list of OIDs to be
  passed to sysctl(8) across different systems where particular OIDs may
  not exist, and still get as much information as possible from them.

PR:		bin/123644
Submitted by:	dhw
2010-02-14 09:48:53 +00:00
Xin LI
e6c7573970 MFC r203534: Correct two typos.
Reported by:    Brandon Falk <falkman gamozo org>
2010-02-13 00:29:01 +00:00
Kirk McKusick
1d0daf9e44 MFC of r201700 | mckusick | 2010-01-06
This corrects a bug that manifested itself as identifying the last
cylinder group of a UFS1 filesystem as bad. The error was in the check
and not in the cylinder group itself. So even though fsck fixed the
cylinder group correctly, it was still endlessly reported as bad.

This bug first appeared in 8.0 so does not apply to earlier releases.

PR:             141992
Reported by:    Dan Strick
2010-02-10 20:35:20 +00:00
Ruslan Ermilov
256aec2de4 MFC: r198231: Properly re-create "-s size" argument to newfs(8). 2010-02-09 12:20:48 +00:00
Ruslan Ermilov
2227955399 MFC: r203486: Shortening a passphrase caused wrong authentication key
to be used.
2010-02-07 06:22:28 +00:00
Gavin Atkinson
75cf52103d Merge r202161 from head:
Spell "Hz" correctly wherever it is user-visible.

PR:		bin/142566
Submitted by:	N.J. Mann   njm njm.me.uk
2010-02-05 08:52:51 +00:00
Alexander Motin
3a5d679ee5 MFC r202694:
- Add -v argument to `camcontrol identify` command. It makes camcontrol
print full identify data block.
- Improve identify result view a bit and add TRIM support.
2010-02-05 08:48:44 +00:00
Rick Macklem
4c8732b699 MFC: r202772
Document the negnametimeo option for mount_nfs as implemented
by r202767. This is a content change.
2010-02-04 17:13:38 +00:00
Gavin Atkinson
86aedb0946 Merge r201401 from head:
Remove dead code.  This section of code is only run in the
  (sblock.fs_magic == FS_UFS1_MAGIC) case, so the check within the
  loop is redundant.

PR:		bin/115174 (partly)
Submitted by:	Nate Eldredge  nge cs.hmc.edu
Reviewed by:	mjacob
Approved by:	ed (mentor, implicit)
2010-02-02 19:51:30 +00:00
Jaakko Heinonen
85f1d75670 MFC r202573:
Print sizes up to INT64_MAX in md_prthumanval().

PR:		bin/125365
Approved by:	trasz (mentor)
2010-02-01 16:02:14 +00:00
Antoine Brodin
e2b36efde5 MFC r201145 to stable/8:
(S)LIST_HEAD_INITIALIZER takes a (S)LIST_HEAD as an argument.
  Fix some wrong usages.
  Note: this does not affect generated binaries as this argument is not used.

  PR:		137213
  Submitted by:	Eygene Ryabinkin (initial version)
2010-01-30 12:11:21 +00:00
Xin LI
ef096f9d2a MFC r200135:
Make umount(8) WARNS=6 clean:
 - Cast delimiter width to integer [1]
 - Solve name conflicts against system header
 - Constify parameters to avoid qualifier conflict

PR:		bin/140017 [1]
Submitted by:	Ulrich Spörlein <uqs spoerlein net> [1]
Sponsored by:	iXsystems, Inc
2010-01-28 02:33:20 +00:00
Gavin Atkinson
2be621faba Merge r201647 from head:
Print leading zeros in the UFS2 FSID.

PR:		bin/142155
Submitted by:	Efstratios Karatzas  gpf.kira gmail.com
Approved by:	ed (mentor, implicit)
2010-01-22 20:02:22 +00:00
Gavin Atkinson
3a911eccaa MFC r200587:
ifconfig(8) is documented to take a ISO 3166-1 country code to set the
  regulatory domain with the "country" parameter, but will also take a full
  country name.  The man page warns that only the ISO code is unambiguous.
  In reality, however, the first match on either would be accepted, leading
  to "DE" being interpreted as the "DEBUG" country rather than Germany, and
  "MO" selecting Morocco rather than the correct country, Macau.

  Fix this by always checking for an ISO CC match first, and only search on
  the full country name if that fails.

PR:		bin/140571
Tested by:	Dirk Meyer dirk.meyer dinoex.sub.org
Reviewed by:	sam
Approved by:	ed (mentor, implicit)
2010-01-16 15:00:35 +00:00
Alexander Motin
5ae425f88a MFC r201658:
Increase default block size from 4K to 64K. It was reduces 6 yeard ago,
when trees were big and FAST mode was enabled by default.

So small block size doesn't benefits linear I/O operations in FAST and
significantly slowdowns in ECONOMIC (default) mode. For single stream random
I/Os so small block doesn't give much benefits, as access time is usually
bigger then transfer time there. Same time it requires all heads to seek
together for every single request, reducing performance on parallel load.
2010-01-15 23:52:31 +00:00
Konstantin Belousov
847d100007 MFC r201400:
Remove reference to the bug in FreeBSD 2.0.
2010-01-05 12:34:16 +00:00
Alexander Motin
71e7360ed9 MFC r200171, r200182, r200275, r200295, r200359:
Introduce ATA_CAM kernel option, turning ata(4) controller drivers into
cam(4) interface modules. When enabled, this option deprecates all ata(4)
peripheral drivers (ad, acd, ...) and interfaces and allows cam(4) drivers
(ada, cd, ...) and interfaces to be natively used instead.

As side effect of this, ata(4) mode setting code was completely rewritten
to make controller API more strict and permit above change. While doing
this, SATA revision was separated from PATA mode. It allows DMA-incapable
SATA devices to operate and makes hw.ata.(ata|atapi)_dma tunable work again.

Also allow ata(4) controller drivers (except some specific or broken ones)
to handle larger data transfers. Previous constraint of 64K was artificial
and is not really required by PCI ATA BM specification or hardware.

Submitted by:   nwitehorn (powerpc part)
2009-12-12 10:37:31 +00:00
Alexander Motin
1fea06a081 MFC r200282, r200290:
Change gmirror default balance algorithm from "split" to improved "load".
"split" is very ineffective for devices with rotating media as HDDs.
To be effective, it needs that transfer time reduction due to block
splitting was bigger then access time increase due to non-sequential
access. For modern HDDs I was able to reproduce it only with read sizes
of 2MB and above, which is almost not applicable in real life.
"load" algorithm same time is more universal and effective now.
2009-12-10 23:51:24 +00:00
Alexander Motin
b6eb79852e MFC r197044:
Actually component with the greatest priority is used by the prefer balance
algorithm.
2009-12-10 23:46:37 +00:00
Alexander Motin
e99e819fed MFC r196879:
Add support for changing providers priority.
2009-12-08 23:15:48 +00:00
Hiroki Sato
28769e8539 MFC:
r197138:
- The ifconfig(8) command now supports NDP flags which are handled by ndp(8).

r198006:
- Use printb() to display the "nd6 options=" line.
2009-12-07 06:05:36 +00:00
Luigi Rizzo
3a5ce93470 mfc r200056
use qsort_r instead of heapsort;
  staticize two functions.
2009-12-06 19:01:33 +00:00
Alexander Motin
ab4ca9d195 MFC r199644:
Add some missing WDMA/UDMA modes.
2009-12-02 12:26:26 +00:00
Alexander Motin
06a7b83b5e MFC r199822:
Drop USB mass storage devices support from ata(4). It is out of the build as
long as I remember, and completely superseded by better maintained umass(4).
It's main idea was to optionally avoid CAM dependency for such devices, but
with move ATA to CAM, it is not actual any more.

No objections:  hselasky@, thompsa@, arch@
2009-12-02 10:47:11 +00:00
Alexander Motin
03b5c37446 MFC r199747, r199799, r199821:
- Extend XPT-SIM transfer settings control API. Now it allows to report to
SATA SIM number of tags supported by each device, implement ATA mode and
SATA revision negotiation for both SATA and PATA SIMs.
- Make ahci(4) and siis(4) to use submitted maximum tag number, when
scheduling requests. It allows to support NCQ on devices with lower tags
count then controller supports.
- Make PMP driver to report attached devices connection speeds.
- Implement ATA mode negotiation between user settings, device and
controller capabilities.
- Improve ATA mode/SATA revision control.
2009-12-02 10:32:34 +00:00
Alexander Leidinger
f48f29ede9 MFC r199626:
Fix minor resource leak in a function.

  Reviewed by:        luigi
2009-12-01 12:35:51 +00:00
Alexander Leidinger
96b404c963 MFC r199584:
Fix minor memory leak in a function.
2009-11-27 10:55:28 +00:00
Alexander Leidinger
9f69cbc0cb MFC r199582:
Fix minor resource leak in a function which was introduced by changing an
  err() to a return in r106254.
2009-11-27 10:53:46 +00:00
Jaakko Heinonen
0996e132ae MFC r198491:
Fix parsing of mount options specified with -o in case an option with
value is preceded by an option without value (for example -o
option1,option2=value). Options must be separated before searching for
'='. Also compare pnextopt explicitly against NULL.

PR:		bin/134069
Approved by:	trasz (mentor)
2009-11-26 18:14:03 +00:00
Alexander Motin
0b0242c67c MFC r199079, r199101:
Add support for ATA Power Management.
2009-11-17 21:17:22 +00:00
Alexander Motin
a60c326522 MFC r198897:
- Add support for sector size > 512 bytes and physical sector of several
logical sectors, introduced by ATA-7 specification.
- Remove some obsoleted code.
2009-11-17 21:08:12 +00:00
Alexander Motin
0cfcf828a9 MFC r198709:
Sync connection speed reporting with kernel.
Report speed in identify command, same as done by inquiry.
2009-11-17 20:45:49 +00:00
Alexander Motin
6b1f25ce56 MFC r197545:
Fethch more information from IDENTIFY result.
2009-11-17 19:52:51 +00:00
Alexander Motin
446b7f18f0 MFC r197419:
Reduce code duplication.
2009-11-17 19:51:39 +00:00
John Baldwin
9ad2d73695 MFC 198820:
Ensure 'kvm' is always initialized.  If "-M" was not specified and the
garbage value on the stack was not zero, then 'ddb capture' would try to
use the garbage value as a kvm_t pointer.
2009-11-17 15:28:14 +00:00
John Baldwin
8892395181 MFC 198585:
When extracting the capture buffer from a crashdump, only read the valid
portion of the capture buffer.
2009-11-04 16:03:47 +00:00
Philip Paeps
1ca0e46fdf MFC r198352
Make dhclient use bootpc (68) as the source port for unicast
  DHCPREQUEST packets instead of allowing the protocol stack to pick
  a random source port.

  This fixes the behaviour where dhclient would never transition
  from RENEWING to BOUND without going through REBINDING in networks
  which are paranoid about DHCP spoofing, such as most mainstream
  cable-broadband ISP networks.

Obtained from:	OpenBSD
Reviewed by:	brooks
Approved by:	re (kib)
2009-10-23 14:43:17 +00:00
Rui Paulo
596646aee5 MFC 197975, 197977, 197980, 198027:
Update for latest 802.11s changes in meshconf format.

Approved by:	re (kib)
2009-10-17 13:42:23 +00:00
Rick Macklem
7a8a559822 MFC r197298:
Change the default transport protocol for use by the Mount protocol
and the NFS Null RPC done by mount_nfs from UDP to TCP, so that it is
consistent with the kernel, which already uses NFS over TCP by
default. Without this change, doing an NFS mount
against a server that only supports UDP results in an unusable
mount point if a transport protocol option wasn't specified for the
mount.

Approved by:	re (kib)
2009-10-15 19:50:00 +00:00
Hiroki Sato
b509d7d489 MFC r197142:
Document accept_rev_ethip_ver and send_rev_ethip_ver flags of
EtherIP (gif(4) + if_bridge(4)).

Approved by:	re (kib)
2009-10-12 21:08:38 +00:00
Christian Brueffer
225cdb4e6c MFC: r197312
Fix setfib(1) section number.

Approved by:	re (kib)
2009-10-09 13:52:49 +00:00
Christian Brueffer
9281cc517f MFC: r197275
Fix an xref.

Approved by:	re (kib)
2009-10-09 13:31:36 +00:00