svn commit: r368525 - in head: lib/libmt usr.bin/mt

2020-12-10 Thread Kenneth D. Merry
Author: ken Date: Thu Dec 10 21:06:06 2020 New Revision: 368525 URL: https://svnweb.freebsd.org/changeset/base/368525 Log: Add the LTO-9 density code to libmt and the mt(1) man page. These values are taken directly from the density report from an IBM LTO-9 tape drive. (Using mt

svn commit: r363260 - head/sys/cam

2020-07-16 Thread Kenneth D. Merry
Author: ken Date: Thu Jul 16 20:43:28 2020 New Revision: 363260 URL: https://svnweb.freebsd.org/changeset/base/363260 Log: Hold the mutex when releasing a callout. In xpt_release_device(), callout_stop() was being called without holding the mutex (send_mtx) that is used to protect the

svn commit: r355299 - head/sys/cam/scsi

2019-12-02 Thread Kenneth D. Merry
Author: ken Date: Mon Dec 2 19:57:39 2019 New Revision: 355299 URL: https://svnweb.freebsd.org/changeset/base/355299 Log: Fix a hang introduced in r351599. My changes in 351599 (kindly committed by avg) made the cd(4) media check asynchronous to avoid a sleep while holding a mutex.

svn commit: r348247 - head/sys/dev/isp

2019-05-24 Thread Kenneth D. Merry
Author: ken Date: Fri May 24 17:58:29 2019 New Revision: 348247 URL: https://svnweb.freebsd.org/changeset/base/348247 Log: Fix FC-Tape bugs caused in part by r345008. The point of r345008 was to reset the Command Reference Number (CRN) in some situations where a device stayed in the

svn commit: r345008 - head/sys/dev/isp

2019-03-11 Thread Kenneth D. Merry
Author: ken Date: Mon Mar 11 14:21:14 2019 New Revision: 345008 URL: https://svnweb.freebsd.org/changeset/base/345008 Log: Fix CRN resets in the isp(4) driver in certain situations. The Command Reference Number (CRN) is part of the FC-Tape features that we enable when talking to tape

svn commit: r344761 - in head: lib/libmt usr.bin/mt

2019-03-04 Thread Kenneth D. Merry
Author: ken Date: Mon Mar 4 14:30:37 2019 New Revision: 344761 URL: https://svnweb.freebsd.org/changeset/base/344761 Log: Add IBM TS1160 density codes to libmt and the mt(1) man page. These are taken directly from the density report from a TS1160 tape drive. (Using mt getdensity)

svn commit: r339076 - head/sys/cam/scsi

2018-10-01 Thread Kenneth D. Merry
Author: ken Date: Mon Oct 1 19:00:46 2018 New Revision: 339076 URL: https://svnweb.freebsd.org/changeset/base/339076 Log: Fix a da(4) driver memory leak for SCSI SMR devices. In the probe case for SCSI SMR Host Aware or Most Managed drives, be sure to free allocated memory.

svn commit: r335154 - head/sys/cam/scsi

2018-06-14 Thread Kenneth D. Merry
Author: ken Date: Thu Jun 14 17:08:44 2018 New Revision: 335154 URL: https://svnweb.freebsd.org/changeset/base/335154 Log: Fix da(4) locking when probing SMR drives. Probing host aware and host managed SMR drives got broken in revision 330796. The added cam_periph_lock() calls were

svn commit: r333492 - head/sys/dev/ocs_fc

2018-05-11 Thread Kenneth D. Merry
Author: ken Date: Fri May 11 14:50:26 2018 New Revision: 333492 URL: https://svnweb.freebsd.org/changeset/base/333492 Log: Clear out the entire structure, not just the size of a pointer to it. sys/dev/ocs/ocs_os.c: In ocs_thread_create(), use sizeof(*thread) (instead of

svn commit: r332458 - head/sys/cam/scsi

2018-04-12 Thread Kenneth D. Merry
Author: ken Date: Thu Apr 12 21:21:18 2018 New Revision: 332458 URL: https://svnweb.freebsd.org/changeset/base/332458 Log: Handle Programmable Early Warning for control commands in sa(4). When the tape position is inside the Early Warning area, the tape drive will return a sense key of

Re: svn commit: r332386 - head/share/misc

2018-04-11 Thread Kenneth D. Merry
On Tue, Apr 10, 2018 at 14:27:26 -0500, Kyle Evans wrote: > On Tue, Apr 10, 2018 at 2:22 PM, Rodney W. Grimes > wrote: > > [ Charset UTF-8 unsupported, converting... ] > >> Author: ram > >> Date: Tue Apr 10 18:39:20 2018 > >> New Revision: 332386 > >> URL:

svn commit: r331766 - in head: share/man/man4 sys/amd64/conf sys/conf sys/dev/ocs_fc sys/modules sys/modules/ocs_fc

2018-03-30 Thread Kenneth D. Merry
Author: ken Date: Fri Mar 30 15:28:25 2018 New Revision: 331766 URL: https://svnweb.freebsd.org/changeset/base/331766 Log: Bring in the Broadcom/Emulex Fibre Channel driver, ocs_fc(4). The ocs_fc(4) driver supports the following hardware: Emulex 16/8G FC GEN 5 HBAS LPe15004 FC

svn commit: r331422 - in head/sys/dev: mpr mps

2018-03-23 Thread Kenneth D. Merry
Author: ken Date: Fri Mar 23 13:52:26 2018 New Revision: 331422 URL: https://svnweb.freebsd.org/changeset/base/331422 Log: Disable T10 Protection Information / EEDP handling for type 2 protection. The mps(4) and mpr(4) drivers and hardware handle T10 Protection Information, which is a

svn commit: r331223 - head/sys/cam/scsi

2018-03-19 Thread Kenneth D. Merry
Author: ken Date: Mon Mar 19 20:19:00 2018 New Revision: 331223 URL: https://svnweb.freebsd.org/changeset/base/331223 Log: cam_periph_acquire() now returns an errno. The ch(4) driver was missed in change 328918, which changed cam_periph_acquire() to return an errno instead of cam_status.

svn commit: r328936 - in head/sys/dev: mpr mps

2018-02-06 Thread Kenneth D. Merry
Author: ken Date: Tue Feb 6 15:58:22 2018 New Revision: 328936 URL: https://svnweb.freebsd.org/changeset/base/328936 Log: Diagnostic buffer fixes for the mps(4) and mpr(4) drivers. In mp{r,s}_diag_register(), which is used to register diagnostic buffers with the mp{r,s}(4) firmware, we

svn commit: r325371 - in head: lib/libmt usr.bin/mt

2017-11-03 Thread Kenneth D. Merry
Author: ken Date: Fri Nov 3 21:04:22 2017 New Revision: 325371 URL: https://svnweb.freebsd.org/changeset/base/325371 Log: Add the LTO-8 Type M density code (0x5d, LTO-8M) to libmt and the mt(1) man page. LTO-8 Type M (also known as M8) is a pristine LTO-7 cartridge formatted in a

svn commit: r322819 - head/usr.sbin/camdd

2017-08-23 Thread Kenneth D. Merry
Author: ken Date: Wed Aug 23 17:52:49 2017 New Revision: 322819 URL: https://svnweb.freebsd.org/changeset/base/322819 Log: Fix a resource leak in an error case in camdd_buf_sg_create(). Submitted by: Coverity CID: 1341622 MFC after:3 days Sponsored by: Spectra Logic

svn commit: r322785 - head/usr.sbin/camdd

2017-08-22 Thread Kenneth D. Merry
Author: ken Date: Tue Aug 22 13:08:22 2017 New Revision: 322785 URL: https://svnweb.freebsd.org/changeset/base/322785 Log: Restructure camdd(8) slightly to make it easier to add support for additional protocols. Submitted by: Chuck Tuffli MFC after:1 week

svn commit: r322410 - head/usr.bin/mt

2017-08-11 Thread Kenneth D. Merry
Author: ken Date: Fri Aug 11 18:43:52 2017 New Revision: 322410 URL: https://svnweb.freebsd.org/changeset/base/322410 Log: Add historical notes on QIC tape drives and fix a couple of issues in mt(1). o Density code 0x5 is also known as QIC-11, and should have a footnote reference.

svn commit: r322364 - in head/sys/dev: mpr mps

2017-08-10 Thread Kenneth D. Merry
Author: ken Date: Thu Aug 10 14:59:17 2017 New Revision: 322364 URL: https://svnweb.freebsd.org/changeset/base/322364 Log: Changes to make mps(4) and mpr(4) handle reinit with reallocation. When the mps(4) and mpr(4) drivers need to reinitialize the firmware, they sometimes need to

svn commit: r322016 - head/usr.bin/mt

2017-08-03 Thread Kenneth D. Merry
Author: ken Date: Thu Aug 3 15:04:54 2017 New Revision: 322016 URL: https://svnweb.freebsd.org/changeset/base/322016 Log: Oracle T1 tape drives use PRML encoding. Source: Oracle T1 SCSI reference guide. MFC after:3 days Sponsored by: Spectra Logic Modified:

svn commit: r321623 - head/sys/dev/isp

2017-07-27 Thread Kenneth D. Merry
Author: ken Date: Thu Jul 27 15:51:56 2017 New Revision: 321623 URL: https://svnweb.freebsd.org/changeset/base/321623 Log: Remove duplicate assignments from r321622. Submitted by: mav MFC after:3 days Sponsored by: Spectra Logic Modified: head/sys/dev/isp/isp.c Modified:

svn commit: r321622 - head/sys/dev/isp

2017-07-27 Thread Kenneth D. Merry
Author: ken Date: Thu Jul 27 15:33:57 2017 New Revision: 321622 URL: https://svnweb.freebsd.org/changeset/base/321622 Log: Fix probing FC targets with hard addressing turned on. This largely reverts FreeBSD SVN change 289937 from October 25th, 2015. The intent of that change was to

svn commit: r321207 - in head/sys/dev: mpr mps

2017-07-19 Thread Kenneth D. Merry
Author: ken Date: Wed Jul 19 15:39:01 2017 New Revision: 321207 URL: https://svnweb.freebsd.org/changeset/base/321207 Log: Fix spurious timeouts on commands sent to mps(4) and mpr(4) controllers. mps_wait_command() and mpr_wait_command() were using getmicrotime() to determine elapsed

svn commit: r320991 - in head: lib/libmt usr.bin/mt

2017-07-14 Thread Kenneth D. Merry
Author: ken Date: Fri Jul 14 16:45:46 2017 New Revision: 320991 URL: https://svnweb.freebsd.org/changeset/base/320991 Log: Add IBM TS1155 density codes to libmt and the mt(1) man page. These are taken directly from the density report from a TS1155 tape drive. (Using mt getdensity)

svn commit: r320421 - head/sys/cam

2017-06-27 Thread Kenneth D. Merry
Author: ken Date: Tue Jun 27 19:26:02 2017 New Revision: 320421 URL: https://svnweb.freebsd.org/changeset/base/320421 Log: Fix a panic in camperiphfree(). If a peripheral driver (e.g. da, sa, cd) is added or removed from the peripheral driver list while an unrelated peripheral driver

svn commit: r320420 - head/sys/cam/scsi

2017-06-27 Thread Kenneth D. Merry
Author: ken Date: Tue Jun 27 17:55:25 2017 New Revision: 320420 URL: https://svnweb.freebsd.org/changeset/base/320420 Log: In scsi_zbc_in(), fill in the length in the ZBC IN CDB. Without the allocation length set, the target will either reject the command or complete it without

Re: svn commit: r320156 - in head: cddl/contrib/opensolaris/cmd/zdb cddl/contrib/opensolaris/cmd/ztest cddl/contrib/opensolaris/lib/libzfs/common sys/cddl/contrib/opensolaris/common/zfs sys/cddl/contr

2017-06-21 Thread Kenneth D. Merry
On Wed, Jun 21, 2017 at 11:16:23 +0300, Andriy Gapon wrote: > On 21/06/2017 00:25, Kenneth D. Merry wrote: > > FWIW, avg sent me a patch for this particular problem (by checking for NULL > > before dereferencing the pointer), and although it got me past the above > > problem,

Re: svn commit: r320156 - in head: cddl/contrib/opensolaris/cmd/zdb cddl/contrib/opensolaris/cmd/ztest cddl/contrib/opensolaris/lib/libzfs/common sys/cddl/contrib/opensolaris/common/zfs sys/cddl/contr

2017-06-20 Thread Kenneth D. Merry
On Tue, Jun 20, 2017 at 23:37:10 +0300, Andriy Gapon wrote: > On 20/06/2017 23:29, Ken Merry wrote: > > I don???t know for sure that this commit is the cause, but it (and r320153) > > are the only ZFS commits between a version of head from June 14th that > > boots off a ZFS mirror, and one that

svn commit: r320123 - head/sys/cam/scsi

2017-06-19 Thread Kenneth D. Merry
Author: ken Date: Mon Jun 19 20:48:00 2017 New Revision: 320123 URL: https://svnweb.freebsd.org/changeset/base/320123 Log: Fix a potential sleep while holding a mutex in the sa(4) driver. If the user issues a MTIOCEXTGET ioctl, and the tape drive in question has a serial number that is

svn commit: r318185 - in head: lib/libmt usr.bin/mt

2017-05-11 Thread Kenneth D. Merry
Author: ken Date: Thu May 11 13:46:30 2017 New Revision: 318185 URL: https://svnweb.freebsd.org/changeset/base/318185 Log: Add LTO-8 density codes. lib/libmt/mtlib.c: Add the LTO-8 density code to the density table in libmt. usr.bin/mt/mt.1: Add the LTO-8 density code,

svn commit: r317854 - head/sbin/camcontrol

2017-05-05 Thread Kenneth D. Merry
Author: ken Date: Fri May 5 21:29:28 2017 New Revision: 317854 URL: https://svnweb.freebsd.org/changeset/base/317854 Log: When editing a mode page on a tape drive, do not clear the device specific parameter. Tape drives include write protect (WP), Buffered Mode and Speed settings in

svn commit: r317848 - in head: share/man/man4 sys/cam/scsi usr.bin/mt

2017-05-05 Thread Kenneth D. Merry
Author: ken Date: Fri May 5 20:00:53 2017 New Revision: 317848 URL: https://svnweb.freebsd.org/changeset/base/317848 Log: Add basic programmable early warning error injection to the sa(4) driver. This will help application developers simulate end of tape conditions. To inject an

svn commit: r317799 - head/sys/cam/scsi

2017-05-04 Thread Kenneth D. Merry
Author: ken Date: Thu May 4 17:23:39 2017 New Revision: 317799 URL: https://svnweb.freebsd.org/changeset/base/317799 Log: Add the SCSI Solid State Media Log page (0x11) definition. sys/cam/scsi/scsi_all.h: Add the SCSI Solid State Media log page (0x11) structure

svn commit: r317776 - head/sbin/camcontrol

2017-05-03 Thread Kenneth D. Merry
Author: ken Date: Wed May 3 21:04:32 2017 New Revision: 317776 URL: https://svnweb.freebsd.org/changeset/base/317776 Log: Bump the camcontrol(8) man page date. MFC after:3 days X-MFC-with: r317774 Sponsored by: Spectra Logic Modified: head/sbin/camcontrol/camcontrol.8

svn commit: r317775 - in head: share/man/man4 sys/cam/scsi

2017-05-03 Thread Kenneth D. Merry
Author: ken Date: Wed May 3 20:59:47 2017 New Revision: 317775 URL: https://svnweb.freebsd.org/changeset/base/317775 Log: Fix error recovery behavior in the pass(4) driver. After FreeBSD SVN revision 236814, the pass(4) driver changed from only doing error recovery when the

svn commit: r317774 - head/sbin/camcontrol

2017-05-03 Thread Kenneth D. Merry
Author: ken Date: Wed May 3 20:57:52 2017 New Revision: 317774 URL: https://svnweb.freebsd.org/changeset/base/317774 Log: Add the ability to rescan or reset devices specified by peripheral name and unit number in camcontrol(8). Previously camcontrol(8) only supported rescanning or

svn commit: r317745 - head/sys/cam/scsi

2017-05-03 Thread Kenneth D. Merry
Author: ken Date: Wed May 3 14:53:27 2017 New Revision: 317745 URL: https://svnweb.freebsd.org/changeset/base/317745 Log: Don't bother retrying errors for encrypted drives that are locked. sys/cam/scsi/scsi_all.c: In the asc_table, if we get a 0x20,0x02 error ("Access denied -

svn commit: r317740 - head/sys/dev/isp

2017-05-03 Thread Kenneth D. Merry
Author: ken Date: Wed May 3 13:17:01 2017 New Revision: 317740 URL: https://svnweb.freebsd.org/changeset/base/317740 Log: Correct loop mode CRN resets to adhere to FCP-4 section 4.10 Prior to this change, the CRN (Command Reference Number) is reset on any firmware LIP, LOOP DOWN, or

svn commit: r317680 - head/sys/cam/scsi

2017-05-02 Thread Kenneth D. Merry
Author: ken Date: Tue May 2 14:52:28 2017 New Revision: 317680 URL: https://svnweb.freebsd.org/changeset/base/317680 Log: Add the SCSI SSC Manufacturer assigned serial number VPD page. This is current as of SSC-5r03. Submitted by: Sam Klopsch MFC after:3 days Modified:

svn commit: r317657 - head/sbin/camcontrol

2017-05-01 Thread Kenneth D. Merry
Author: ken Date: Mon May 1 18:53:47 2017 New Revision: 317657 URL: https://svnweb.freebsd.org/changeset/base/317657 Log: Fix camcontrol timestamp setting and update the man page. camcontrol timestamp -s would somtimes fail due to stack garbage. Zero out the timestamp parameters to fix

Re: svn commit: r299182 - head/sys/dev/e1000

2017-02-20 Thread Kenneth D. Merry
On Fri, May 06, 2016 at 15:41:38 +, Sean Bruno wrote: > Author: sbruno > Date: Fri May 6 15:41:38 2016 > New Revision: 299182 > URL: https://svnweb.freebsd.org/changeset/base/299182 > > Log: > If ALTQ is defined in the kern conf, switch to Legacy Mode. > > PR: 208409 >

svn commit: r313895 - head/sys/cam/ctl

2017-02-17 Thread Kenneth D. Merry
Author: ken Date: Fri Feb 17 20:15:27 2017 New Revision: 313895 URL: https://svnweb.freebsd.org/changeset/base/313895 Log: Make ctl(4) build with CTL_IO_DELAY defined. sys/cam/ctl/ctl.c: In ctl_datamove(), inside CTL_IO_DELAY, add a lun variable and fill it in before trying

svn commit: r313893 - head/sbin/camcontrol

2017-02-17 Thread Kenneth D. Merry
Author: ken Date: Fri Feb 17 20:04:22 2017 New Revision: 313893 URL: https://svnweb.freebsd.org/changeset/base/313893 Log: Add task attribute support to camcontrol(8). Users can use the new generic argument, -Q task_attr, to specify a task attribute (simple, ordered, head of queue, aca)

svn commit: r313568 - head/sys/dev/isp

2017-02-10 Thread Kenneth D. Merry
Author: ken Date: Fri Feb 10 22:02:45 2017 New Revision: 313568 URL: https://svnweb.freebsd.org/changeset/base/313568 Log: Change the isp(4) driver to not adjust the tag type for REQUEST SENSE. The isp(4) driver was changing the tag type for REQUEST SENSE commands to Head of Queue, when

svn commit: r310338 - in head: share/man/man4 sys/conf sys/dev/isp

2016-12-20 Thread Kenneth D. Merry
Author: ken Date: Tue Dec 20 21:17:07 2016 New Revision: 310338 URL: https://svnweb.freebsd.org/changeset/base/310338 Log: Turn on FC-Tape by default in the isp(4) driver. FC-Tape provides additional link level error recovery, and is highly recommended for tape devices. It will only be

Re: svn commit: r307684 - head/sbin/camcontrol

2016-12-19 Thread Kenneth D. Merry
On Sat, Dec 17, 2016 at 20:50:15 +0100, Oliver Pinter wrote: > On 12/12/16, Kenneth D. Merry <k...@freebsd.org> wrote: > > On Sun, Dec 11, 2016 at 00:49:12 +0100, Oliver Pinter wrote: > >> On 10/20/16, Kenneth D. Merry <k...@freebsd.org> wrote: > >> > Au

Re: svn commit: r307684 - head/sbin/camcontrol

2016-12-12 Thread Kenneth D. Merry
On Sun, Dec 11, 2016 at 00:49:12 +0100, Oliver Pinter wrote: > On 10/20/16, Kenneth D. Merry <k...@freebsd.org> wrote: > > Author: ken > > Date: Thu Oct 20 19:42:26 2016 > > New Revision: 307684 > > URL: https://svnweb.freebsd.org/changeset/base/307684 >

svn commit: r309374 - in head: sbin/camcontrol sys/cam/scsi

2016-12-01 Thread Kenneth D. Merry
Author: ken Date: Thu Dec 1 22:20:27 2016 New Revision: 309374 URL: https://svnweb.freebsd.org/changeset/base/309374 Log: Add SCSI REPORT TIMESTAMP and SET TIMESTAMP support. This adds support to camcontrol(8) and libcam(3) for getting and setting the time on SCSI protocol drives. This

svn commit: r307747 - head/sbin/camcontrol

2016-10-21 Thread Kenneth D. Merry
Author: ken Date: Fri Oct 21 18:54:56 2016 New Revision: 307747 URL: https://svnweb.freebsd.org/changeset/base/307747 Log: Fix a problem in camcontrol(8) that cropped up with r307684. In r307684, I changed rescan_or_reset_bus() to bzero stack-allocated CCBs before sending them to the

svn commit: r307684 - head/sbin/camcontrol

2016-10-20 Thread Kenneth D. Merry
Author: ken Date: Thu Oct 20 19:42:26 2016 New Revision: 307684 URL: https://svnweb.freebsd.org/changeset/base/307684 Log: For CCBs allocated on the stack, we need to clear the entire CCB, not just the header. Otherwise stack garbage can lead to random flags getting set. This showed up

Re: svn commit: r303019 - head/sys/geom

2016-08-12 Thread Kenneth D. Merry
On Fri, Aug 12, 2016 at 09:13:58 -0600, Warner Losh wrote: > On Fri, Aug 12, 2016 at 9:11 AM, Kenneth D. Merry <k...@freebsd.org> wrote: > > On Fri, Aug 12, 2016 at 13:38:21 +0300, Andrey V. Elsukov wrote: > >> On 12.08.16 03:26, Bryan Drewery wrote:

Re: svn commit: r303019 - head/sys/geom

2016-08-12 Thread Kenneth D. Merry
On Fri, Aug 12, 2016 at 13:38:21 +0300, Andrey V. Elsukov wrote: > On 12.08.16 03:26, Bryan Drewery wrote: > > On r303467 I ran into this: > > > > panic @ time 1470916206.652, thread 0xf8000412f000: > > g_resize_provider_event but withered > > cpuid = 0 > > Panic occurred in module kernel

Re: svn commit: r302253 - head/sys/cam/scsi

2016-06-28 Thread Kenneth D. Merry
On Tue, Jun 28, 2016 at 11:27:25 -0700, Sean Bruno wrote: > > > On 06/28/16 11:17, Ken Merry wrote: > > This is incorrect. It should be scsi_ulto4b() instead. > > > > The dxfer_len argument to scsi_persistent_reserve_out() is a uint32_t, and > > the length field in the CDB structure is 4

svn commit: r302150 - in head/sys: geom sys

2016-06-23 Thread Kenneth D. Merry
Author: ken Date: Thu Jun 23 20:05:59 2016 New Revision: 302150 URL: https://svnweb.freebsd.org/changeset/base/302150 Log: Switch geom_disk over to using a pool mutex. The GEOM disk d_mtx is only acquired on disk creation and destruction. It is a good candidate for replacement with a

svn commit: r302087 - head/sys/geom

2016-06-22 Thread Kenneth D. Merry
Author: ken Date: Wed Jun 22 14:39:13 2016 New Revision: 302087 URL: https://svnweb.freebsd.org/changeset/base/302087 Log: Fix a bug that caused da(4) peripheral drivers to not fully go away after the underlying device went away. The problem was that callers who queue the GEOM resize

svn commit: r302071 - head/sys/sys

2016-06-21 Thread Kenneth D. Merry
Author: ken Date: Tue Jun 21 20:28:30 2016 New Revision: 302071 URL: https://svnweb.freebsd.org/changeset/base/302071 Log: Bump __FreeBSD_version to 1100118 for r302069, which breaks binary compatibility for loadable modules that depend on struct disk. Approved by: re (delphij)

svn commit: r302069 - head/sys/geom

2016-06-21 Thread Kenneth D. Merry
Author: ken Date: Tue Jun 21 20:18:19 2016 New Revision: 302069 URL: https://svnweb.freebsd.org/changeset/base/302069 Log: Fix a bug that caused da(4) instances to hang around after the underlying device is gone. The problem was that when disk_gone() is called, if the GEOM disk

svn commit: r300640 - head/sys/cam/ata

2016-05-24 Thread Kenneth D. Merry
Author: ken Date: Wed May 25 01:37:39 2016 New Revision: 300640 URL: https://svnweb.freebsd.org/changeset/base/300640 Log: Fix a few ada(4) driver issues: o Some Samsung drives do not support the ATA READ LOG EXT or READ LOG DMA EXT commands, despite indicating that they do in their

svn commit: r300532 - head/sys/cam/ata

2016-05-23 Thread Kenneth D. Merry
Author: ken Date: Mon May 23 19:52:08 2016 New Revision: 300532 URL: https://svnweb.freebsd.org/changeset/base/300532 Log: Fix ada(4) trim support quirk setting. I broke broke the quirk in the ada(4) driver disabling NCQ trim support in revision 300207. The support flags were set before

svn commit: r300327 - in head: lib/libmt usr.bin/mt

2016-05-20 Thread Kenneth D. Merry
Author: ken Date: Fri May 20 19:30:52 2016 New Revision: 300327 URL: https://svnweb.freebsd.org/changeset/base/300327 Log: Add the density code for LTO-7 to libmt and the mt(1) man page. The density code and bits per mm values were obtained from an actual drive density report. The

svn commit: r300224 - head/usr.sbin/camdd

2016-05-19 Thread Kenneth D. Merry
Author: ken Date: Thu May 19 19:13:43 2016 New Revision: 300224 URL: https://svnweb.freebsd.org/changeset/base/300224 Log: Adjust a couple of error cases in camdd(8). usr.sbin/camdd/camdd.c: In camdd_probe_file(), fix an error case after fstat where we were bailing out and

Re: svn commit: r300207 - in head: sbin/camcontrol sys/cam/ata sys/cam/scsi sys/dev/ahci sys/geom sys/geom/eli sys/kern sys/sys usr.sbin usr.sbin/diskinfo usr.sbin/zonectl

2016-05-19 Thread Kenneth D. Merry
On Thu, May 19, 2016 at 15:30:37 +0100, Bruce Simpson wrote: > Right On Commander! > > Now here is hoping the random-write issues with OpenZFS are solved... Well, this is of course only the underlying infrastructure for SMR drives. As for the random write issues with ZFS (or rather sequential

svn commit: r300207 - in head: sbin/camcontrol sys/cam/ata sys/cam/scsi sys/dev/ahci sys/geom sys/geom/eli sys/kern sys/sys usr.sbin usr.sbin/diskinfo usr.sbin/zonectl

2016-05-19 Thread Kenneth D. Merry
Author: ken Date: Thu May 19 14:08:36 2016 New Revision: 300207 URL: https://svnweb.freebsd.org/changeset/base/300207 Log: Add support for managing Shingled Magnetic Recording (SMR) drives. This change includes support for SCSI SMR drives (which conform to the Zoned Block Commands or ZBC

svn commit: r295417 - head/sys/cam/scsi

2016-02-08 Thread Kenneth D. Merry
Author: ken Date: Mon Feb 8 22:13:08 2016 New Revision: 295417 URL: https://svnweb.freebsd.org/changeset/base/295417 Log: Fix the SCSI Extended INQUIRY probe case when an error is returned and a retry is scheduled. Instead of leaving the device queue frozen, unfreeze the device queue so

Re: svn commit: r291716 - in head: share/man/man4 sys/cam sys/cam/ata sys/cam/scsi sys/dev/md sys/geom sys/kern sys/pc98/include sys/sys usr.sbin usr.sbin/camdd

2016-01-11 Thread Kenneth D. Merry
On Mon, Jan 11, 2016 at 18:29:22 +0100, Roger Pau Monn?? wrote: > El 03/12/15 a les 21.54, Kenneth D. Merry ha escrit: > > Author: ken > > Date: Thu Dec 3 20:54:55 2015 > > New Revision: 291716 > > URL: https://svnweb.freebsd.org/changeset/base/291716 > > > &

svn commit: r291960 - head/sys/cam

2015-12-07 Thread Kenneth D. Merry
Author: ken Date: Mon Dec 7 21:04:27 2015 New Revision: 291960 URL: https://svnweb.freebsd.org/changeset/base/291960 Log: The ccb_xflags enumeration was removed from FreeBSD/head in r259397 (it contained the CAM_EXTLUN_VALID bit) and I added the same type name with a different set of

Re: svn commit: r291716 - in head: share/man/man4 sys/cam sys/cam/ata sys/cam/scsi sys/dev/md sys/geom sys/kern sys/pc98/include sys/sys usr.sbin usr.sbin/camdd

2015-12-04 Thread Kenneth D. Merry
On Thu, Dec 03, 2015 at 23:55:14 -0800, Ravi Pokala wrote: > Hi Ken, > > A few questions: > > > Although these ioctls do not have a declared argument, they > > both take a union ccb pointer. If we declare a size here, > > the ioctl code in sys/kern/sys_generic.c will malloc and free

Re: svn commit: r291741 - head/sys/geom

2015-12-03 Thread Kenneth D. Merry
On Thu, Dec 03, 2015 at 19:41:31 -0800, Bryan Drewery wrote: > On 12/3/2015 7:38 PM, Kenneth D. Merry wrote: > > g_disk_limit(struct disk *dp, struct bio *bp) > > { > > bool limited = false; > > - off_t d_maxsize; > > - > > - d_maxsize = (bp-&

svn commit: r291741 - head/sys/geom

2015-12-03 Thread Kenneth D. Merry
Author: ken Date: Fri Dec 4 03:38:35 2015 New Revision: 291741 URL: https://svnweb.freebsd.org/changeset/base/291741 Log: Fix g_disk_vlist_limit() to work properly with deletes. Add a new bp argument to g_disk_maxsegs(), and add a new function, g_disk_maxsize() tha will properly

svn commit: r291742 - head/sys/geom

2015-12-03 Thread Kenneth D. Merry
Author: ken Date: Fri Dec 4 03:44:12 2015 New Revision: 291742 URL: https://svnweb.freebsd.org/changeset/base/291742 Log: Fix a style issue in g_disk_limit(). Noticed by: bdrewery MFC after:1 week Modified: head/sys/geom/geom_disk.c Modified: head/sys/geom/geom_disk.c

svn commit: r291724 - head/usr.sbin/camdd

2015-12-03 Thread Kenneth D. Merry
Author: ken Date: Thu Dec 3 22:07:01 2015 New Revision: 291724 URL: https://svnweb.freebsd.org/changeset/base/291724 Log: Fix typos in the camdd(8) usage() function output caused by an error in my diff filter script. Sponsored by: Spectra Logic MFC after:1 week Modified:

Re: svn commit: r291716 - in head: share/man/man4 sys/cam sys/cam/ata sys/cam/scsi sys/dev/md sys/geom sys/kern sys/pc98/include sys/sys usr.sbin usr.sbin/camdd

2015-12-03 Thread Kenneth D. Merry
On Thu, Dec 03, 2015 at 13:13:25 -0800, Bryan Drewery wrote: > On 12/3/15 12:54 PM, Kenneth D. Merry wrote: > > Author: ken > > Date: Thu Dec 3 20:54:55 2015 > > New Revision: 291716 > > URL: https://svnweb.freebsd.org/changeset/base/291716 > > > > Log:

svn commit: r291716 - in head: share/man/man4 sys/cam sys/cam/ata sys/cam/scsi sys/dev/md sys/geom sys/kern sys/pc98/include sys/sys usr.sbin usr.sbin/camdd

2015-12-03 Thread Kenneth D. Merry
Author: ken Date: Thu Dec 3 20:54:55 2015 New Revision: 291716 URL: https://svnweb.freebsd.org/changeset/base/291716 Log: Add asynchronous command support to the pass(4) driver, and the new camdd(8) utility. CCBs may be queued to the driver via the new CAMIOQUEUE ioctl, and completed

Re: svn commit: r287621 - in head/sys: cam/ctl conf modules/ctl

2015-09-11 Thread Kenneth D. Merry
On Thu, Sep 10, 2015 at 12:40:32 +, Alexander Motin wrote: > Author: mav > Date: Thu Sep 10 12:40:31 2015 > New Revision: 287621 > URL: https://svnweb.freebsd.org/changeset/base/287621 > > Log: > Reimplement CTL High Availability. > > CTL HA functionality was originally implemented by

svn commit: r286965 - in head: sbin/camcontrol sys/cam/scsi

2015-08-20 Thread Kenneth D. Merry
Author: ken Date: Thu Aug 20 16:07:51 2015 New Revision: 286965 URL: https://svnweb.freebsd.org/changeset/base/286965 Log: Revamp camcontrol(8) fwdownload support and add the opcodes subcommand. The significant changes and bugs fixed here are: 1. Fixed a bug in the progress display

svn commit: r284192 - in head: lib/libsbuf lib/libutil sbin/camcontrol share/man/man9 sys/cam sys/cam/scsi sys/kern sys/sys

2015-06-09 Thread Kenneth D. Merry
Author: ken Date: Tue Jun 9 21:39:38 2015 New Revision: 284192 URL: https://svnweb.freebsd.org/changeset/base/284192 Log: Add support for reading MAM attributes to camcontrol(8) and libcam(3). MAM is Medium Auxiliary Memory and is most commonly found as flash chips on tapes. This

svn commit: r280463 - head/sys/cam/ctl

2015-03-24 Thread Kenneth D. Merry
Author: ken Date: Tue Mar 24 21:42:28 2015 New Revision: 280463 URL: https://svnweb.freebsd.org/changeset/base/280463 Log: Remove some #if 0'ed code that apparently confuses cscope. Requested by: Peter Xu xzpe...@gmail.com MFC after:3 days Modified: head/sys/cam/ctl/ctl.c

svn commit: r280230 - in head: sys/cam/scsi usr.bin/mt

2015-03-18 Thread Kenneth D. Merry
Author: ken Date: Wed Mar 18 20:52:34 2015 New Revision: 280230 URL: https://svnweb.freebsd.org/changeset/base/280230 Log: Fix a couple of problems in the sa(4) media type reports. The only drives I have discovered so far that support medium type reports are newer HP LTO (LTO-5 and

svn commit: r280231 - head/usr.bin/mt

2015-03-18 Thread Kenneth D. Merry
Author: ken Date: Wed Mar 18 20:54:54 2015 New Revision: 280231 URL: https://svnweb.freebsd.org/changeset/base/280231 Log: Improve the mt(1) rblim display. The granularity reported by READ BLOCK LIMITS is an exponent, not a byte value. So a granularity of 0 means 2^0, or 1 byte. A

svn commit: r279570 - in head: lib/libmt usr.bin/mt

2015-03-03 Thread Kenneth D. Merry
Author: ken Date: Tue Mar 3 22:49:07 2015 New Revision: 279570 URL: https://svnweb.freebsd.org/changeset/base/279570 Log: Add density code for DAT-72, and notes on DAT-160. As it turns out, the density code for DAT-160 (0x48) is the same as for SDLT220. Since the SDLT values are

svn commit: r279534 - head/sys/cam/scsi

2015-03-02 Thread Kenneth D. Merry
Author: ken Date: Mon Mar 2 18:09:49 2015 New Revision: 279534 URL: https://svnweb.freebsd.org/changeset/base/279534 Log: Change the sa(4) driver to check for long position support on SCSI-2 devices. Some older tape devices claim to be SCSI-2, but actually do support long position

svn commit: r279375 - head/sys/cam

2015-02-27 Thread Kenneth D. Merry
Author: ken Date: Fri Feb 27 21:35:36 2015 New Revision: 279375 URL: https://svnweb.freebsd.org/changeset/base/279375 Log: Fix I/O size calculation for pass(4) driver requests and add latency tracking. It is important to subtract the residual from the requested transfer size to see how

svn commit: r279336 - in head/sys/dev: mpr mps

2015-02-26 Thread Kenneth D. Merry
Author: ken Date: Thu Feb 26 22:22:06 2015 New Revision: 279336 URL: https://svnweb.freebsd.org/changeset/base/279336 Log: Add FreeBSD stable/10 version checks for the availability of the CDAI_FLAG_NONE advanced information CCB flag. Support for the flag was merged to stable/10 in

svn commit: r279346 - head/lib/libdevstat

2015-02-26 Thread Kenneth D. Merry
Author: ken Date: Fri Feb 27 02:44:12 2015 New Revision: 279346 URL: https://svnweb.freebsd.org/changeset/base/279346 Log: Remove an obsolete comment in devstat(3) about the accuracy of the milliseconds per transaction (DSM_MS_PER_TRANSACTION) calculation. The comment was accurate many

svn commit: r279261 - in head: lib/libmt usr.bin/mt

2015-02-24 Thread Kenneth D. Merry
Author: ken Date: Wed Feb 25 04:30:23 2015 New Revision: 279261 URL: https://svnweb.freebsd.org/changeset/base/279261 Log: Fix several problems found by Coverity. lib/libmt/mtlib.c: In mt_start_element(), make sure we don't overflow the cur_sb array. CID 1271325

svn commit: r279221 - head/sys/sys

2015-02-23 Thread Kenneth D. Merry
Author: ken Date: Mon Feb 23 22:50:43 2015 New Revision: 279221 URL: https://svnweb.freebsd.org/changeset/base/279221 Log: Bump __FreeBSD_version for the mtio(4) / sa(4) ioctl and API additions in revision 279219. Sponsored by: Spectra Logic MFC after:1 month Modified:

svn commit: r279219 - in head: contrib/groff/tmac lib lib/libmt rescue/rescue share/man/man4 share/mk sys/cam/scsi sys/sys usr.bin/mt

2015-02-23 Thread Kenneth D. Merry
Author: ken Date: Mon Feb 23 21:59:30 2015 New Revision: 279219 URL: https://svnweb.freebsd.org/changeset/base/279219 Log: Significant upgrades to sa(4) and mt(1). The primary focus of these changes is to modernize FreeBSD's tape infrastructure so that we can take advantage of some of

svn commit: r279229 - head/sys/cam/scsi

2015-02-23 Thread Kenneth D. Merry
Author: ken Date: Tue Feb 24 05:43:16 2015 New Revision: 279229 URL: https://svnweb.freebsd.org/changeset/base/279229 Log: Fix printf format warnings on sparc64 and mips. Sponsored by: Spectra Logic MFC after:1 month Modified: head/sys/cam/scsi/scsi_sa.c Modified:

svn commit: r278964 - in head: sbin/camcontrol sys/cam sys/cam/scsi sys/dev/mpr sys/dev/mps sys/sys

2015-02-18 Thread Kenneth D. Merry
Author: ken Date: Wed Feb 18 18:30:19 2015 New Revision: 278964 URL: https://svnweb.freebsd.org/changeset/base/278964 Log: Make sure that the flags for the XPT_DEV_ADVINFO CCB are initialized properly. If there is garbage in the flags field, it can sometimes include a set

svn commit: r278228 - in head/sys: cam cam/scsi sys

2015-02-04 Thread Kenneth D. Merry
Author: ken Date: Thu Feb 5 00:12:21 2015 New Revision: 278228 URL: https://svnweb.freebsd.org/changeset/base/278228 Log: Add support for probing the SCSI VPD Extended Inquiry page (0x86). This VPD page is effectively an extension of the standard Inquiry data page, and includes lots of

svn commit: r277917 - in head/sys/cam: ctl scsi

2015-01-29 Thread Kenneth D. Merry
Author: ken Date: Fri Jan 30 05:23:39 2015 New Revision: 277917 URL: https://svnweb.freebsd.org/changeset/base/277917 Log: Improve SCSI Extended Inquiry VPD page (0x86) support. sys/cam/scsi/scsi_all.h: In struct scsi_extended_inquiry_data: - Increase the length field to 2

svn commit: r276839 - head/sys/dev/isp

2015-01-08 Thread Kenneth D. Merry
Author: ken Date: Thu Jan 8 17:41:28 2015 New Revision: 276839 URL: https://svnweb.freebsd.org/changeset/base/276839 Log: Fix Fibre Channel Command Reference Number handling in the isp(4) driver. The Command Reference Number is used for precise delivery of commands, and is part of the

svn commit: r276842 - head/sys/dev/isp

2015-01-08 Thread Kenneth D. Merry
Author: ken Date: Thu Jan 8 17:51:12 2015 New Revision: 276842 URL: https://svnweb.freebsd.org/changeset/base/276842 Log: Close a race in the isp(4) driver that caused devices to disappear and not automatically come back if they were gone for a short period of time. The isp(4) driver

svn commit: r276835 - in head: sbin/camcontrol sys/cam/scsi

2015-01-08 Thread Kenneth D. Merry
Author: ken Date: Thu Jan 8 16:58:40 2015 New Revision: 276835 URL: https://svnweb.freebsd.org/changeset/base/276835 Log: Improve camcontrol(8) handling of drive defect data. This includes a new summary mode (-s) for camcontrol defects that quickly tells the user the most important

svn commit: r276831 - head/sys/cam/scsi

2015-01-08 Thread Kenneth D. Merry
Author: ken Date: Thu Jan 8 16:27:56 2015 New Revision: 276831 URL: https://svnweb.freebsd.org/changeset/base/276831 Log: Fix a bug in the CAM SCSI probe code that caused changes in inquiry data to go undetected. The probe code does an MD5 checksum of the inquiry data (and page 0x80

svn commit: r268240 - in head: sbin/camcontrol sys/cam/scsi

2014-07-03 Thread Kenneth D. Merry
Author: ken Date: Thu Jul 3 23:09:44 2014 New Revision: 268240 URL: http://svnweb.freebsd.org/changeset/base/268240 Log: Add persistent reservation support to camcontrol(8). camcontrol(8) now supports a new 'persist' subcommand that allows users to issue SCSI PERSISTENT RESERVE IN / OUT

Re: svn commit: r254627 - in head: bin/chflags bin/ls lib/libc/gen lib/libc/sys sys/cddl/contrib/opensolaris/uts/common/fs/zfs sys/fs/msdosfs sys/fs/smbfs sys/sys sys/ufs/ufs

2014-06-27 Thread Kenneth D. Merry
On Fri, Jun 27, 2014 at 12:48:29 -0700, Xin LI wrote: Hi, Craig have hit an interesting issue today, where he tried to 'mv' a file from ZFS dataset to a NFS mount, 'mv' bails out because chflags failed. I think it's probably sensible to have mv ignoring UF_ARCHIVE, and set the flag on the

Re: svn commit: r267986 - head/sys/cam/ctl

2014-06-27 Thread Kenneth D. Merry
On Fri, Jun 27, 2014 at 22:28:14 +, Alexander Motin wrote: Author: mav Date: Fri Jun 27 22:28:14 2014 New Revision: 267986 URL: http://svnweb.freebsd.org/changeset/base/267986 Log: Remove odd practice of inverting error codes. -EPERM is equal to ERESTART, returning which from

svn commit: r265709 - in head/sys/dev: mpr mps

2014-05-08 Thread Kenneth D. Merry
Author: ken Date: Thu May 8 20:28:22 2014 New Revision: 265709 URL: http://svnweb.freebsd.org/changeset/base/265709 Log: Fix TLR (Transport Layer Retry) support in the mps(4) and mpr(4) drivers. TLR is necessary for reliable communication with SAS tape drives. This was broken by

  1   2   3   >