From owner-freebsd-scsi@FreeBSD.ORG Mon Oct 4 11:07:04 2010 Return-Path: Delivered-To: freebsd-scsi@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id ACD731065719 for ; Mon, 4 Oct 2010 11:07:04 +0000 (UTC) (envelope-from owner-bugmaster@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 9AD018FC1F for ; Mon, 4 Oct 2010 11:07:04 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.4/8.14.4) with ESMTP id o94B7404065938 for ; Mon, 4 Oct 2010 11:07:04 GMT (envelope-from owner-bugmaster@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.4/8.14.4/Submit) id o94B74io065936 for freebsd-scsi@FreeBSD.org; Mon, 4 Oct 2010 11:07:04 GMT (envelope-from owner-bugmaster@FreeBSD.org) Date: Mon, 4 Oct 2010 11:07:04 GMT Message-Id: <201010041107.o94B74io065936@freefall.freebsd.org> X-Authentication-Warning: freefall.freebsd.org: gnats set sender to owner-bugmaster@FreeBSD.org using -f From: FreeBSD bugmaster To: freebsd-scsi@FreeBSD.org Cc: Subject: Current problem reports assigned to freebsd-scsi@FreeBSD.org X-BeenThere: freebsd-scsi@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: SCSI subsystem List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 04 Oct 2010 11:07:04 -0000 Note: to view an individual PR, use: http://www.freebsd.org/cgi/query-pr.cgi?pr=(number). The following is a listing of current problems submitted by FreeBSD users. These represent problem reports covering all versions including experimental development code and obsolete releases. S Tracker Resp. Description -------------------------------------------------------------------------------- o kern/150936 scsi [ciss] [patch] Write possibility of the RAID1 level o kern/149502 scsi [mpt] Latent buglet in debug print code o kern/148083 scsi [aac] Strange device reporting o kern/147704 scsi [mpt] sys/dev/mpt: new chip revision, partially unsupp o kern/146287 scsi [ciss] ciss(4) cannot see more than one SmartArray con o kern/145768 scsi [mpt] can't perform I/O on SAS based SAN disk in freeb o kern/144648 scsi [aac] Strange values of speed and bus width in dmesg o kern/144301 scsi [ciss] [hang] HP proliant server locks when using ciss o kern/142351 scsi [mpt] LSILogic driver performance problems o kern/141934 scsi [cam] [patch] add support for SEAGATE DAT Scopion 130 o kern/134488 scsi [mpt] MPT SCSI driver probes max. 8 LUNs per device o kern/132250 scsi [ciss] ciss driver does not support more then 15 drive o kern/132206 scsi [mpt] system panics on boot when mirroring and 2nd dri p kern/130735 scsi [cam] [patch] pass M_NOWAIT to the malloc() call insid o kern/130621 scsi [mpt] tranfer rate is inscrutable slow when use lsi213 o kern/129602 scsi [ahd] ahd(4) gets confused and wedges SCSI bus o kern/128452 scsi [sa] [panic] Accessing SCSI tape drive randomly crashe o kern/128245 scsi [scsi] "inquiry data fails comparison at DV1 step" [re o kern/127927 scsi [isp] isp(4) target driver crashes kernel when set up o kern/124667 scsi [amd] [panic] FreeBSD-7 kernel page faults at amd-scsi o kern/123674 scsi [ahc] ahc driver dumping o sparc/121676 scsi [iscsi] iscontrol do not connect iscsi-target on sparc o kern/120487 scsi [sg] scsi_sg incompatible with scanners o kern/120247 scsi [mpt] FreeBSD 6.3 and LSI Logic 1030 = only 3.300MB/s o kern/119668 scsi [cam] [patch] certain errors are too verbose comparing o kern/114597 scsi [sym] System hangs at SCSI bus reset with dual HBAs o kern/110847 scsi [ahd] Tyan U320 onboard problem with more than 3 disks o kern/99954 scsi [ahc] reading from DVD failes on 6.x [regression] o kern/94838 scsi Kernel panic while mounting SD card with lock switch o o kern/92798 scsi [ahc] SCSI problem with timeouts o kern/90282 scsi [sym] SCSI bus resets cause loss of ch device o kern/76178 scsi [ahd] Problem with ahd and large SCSI Raid system o kern/74627 scsi [ahc] [hang] Adaptec 2940U2W Can't boot 5.3 s kern/61165 scsi [panic] kernel page fault after calling cam_send_ccb o kern/60641 scsi [sym] Sporadic SCSI bus resets with 53C810 under load o kern/60598 scsi wire down of scsi devices conflicts with config s kern/57398 scsi [mly] Current fails to install on mly(4) based RAID di o kern/52638 scsi [panic] SCSI U320 on SMP server won't run faster than o kern/44587 scsi dev/dpt/dpt.h is missing defines required for DPT_HAND o kern/40895 scsi wierd kernel / device driver bug o kern/39388 scsi ncr/sym drivers fail with 53c810 and more than 256MB m o kern/35234 scsi World access to /dev/pass? (for scanner) requires acce 42 problems total. From owner-freebsd-scsi@FreeBSD.ORG Thu Oct 7 11:32:54 2010 Return-Path: Delivered-To: freebsd-scsi@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 29175106566C for ; Thu, 7 Oct 2010 11:32:54 +0000 (UTC) (envelope-from bruce@cran.org.uk) Received: from muon.cran.org.uk (muon.cran.org.uk [IPv6:2a01:348:0:15:5d59:5c40:0:1]) by mx1.freebsd.org (Postfix) with ESMTP id B63C28FC1E for ; Thu, 7 Oct 2010 11:32:53 +0000 (UTC) Received: from muon.cran.org.uk (localhost [127.0.0.1]) by muon.cran.org.uk (Postfix) with ESMTP id BE9E2E6141 for ; Thu, 7 Oct 2010 12:32:52 +0100 (BST) Received: from core.nessbank (client-82-31-12-174.midd.adsl.virginmedia.com [82.31.12.174]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by muon.cran.org.uk (Postfix) with ESMTPSA for ; Thu, 7 Oct 2010 12:32:52 +0100 (BST) From: Bruce Cran To: freebsd-scsi@freebsd.org Date: Thu, 7 Oct 2010 12:32:51 +0100 User-Agent: KMail/1.13.5 (FreeBSD/9.0-CURRENT; KDE/4.5.1; amd64; ; ) MIME-Version: 1.0 Content-Type: Multipart/Mixed; boundary="Boundary-00=_j/arMWt9TpdESy5" Message-Id: <201010071232.51676.bruce@cran.org.uk> Subject: camcontrol patch to allow users to specify device node names X-BeenThere: freebsd-scsi@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: SCSI subsystem List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 07 Oct 2010 11:32:54 -0000 --Boundary-00=_j/arMWt9TpdESy5 Content-Type: Text/Plain; charset="us-ascii" Content-Transfer-Encoding: 7bit In camcontrol, there's code to check that a device hasn't been specified as "/dev/daX" - in this case, an error is printed and it exits. However, a plain device name is already allowed and I've checked that passing a device node does work. I've attached a patch which removes this restriction and allows people to use "camcontrol tur /dev/da0" if they want to. Is there a reason for disallowing people to specify the device node, or could this patch be committed with an update to the man page to remove the sentence about character device node names not being allowed? -- Bruce Cran --Boundary-00=_j/arMWt9TpdESy5 Content-Type: text/x-patch; charset="ISO-8859-1"; name="camcontrol.c.diff" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="camcontrol.c.diff" Index: camcontrol.c =================================================================== --- camcontrol.c (revision 213462) +++ camcontrol.c (working copy) @@ -4605,15 +4605,7 @@ char name[30]; int rv; - /* - * First catch people who try to do things like: - * camcontrol tur /dev/da0 - * camcontrol doesn't take device nodes as arguments. - */ - if (argv[2][0] == '/') { - warnx("%s is not a valid device identifier", argv[2]); - errx(1, "please read the camcontrol(8) man page"); - } else if (isdigit(argv[2][0])) { + if (isdigit(argv[2][0])) { /* device specified as bus:target[:lun] */ rv = parse_btl(argv[2], &bus, &target, &lun, &arglist); if (rv < 2) --Boundary-00=_j/arMWt9TpdESy5-- From owner-freebsd-scsi@FreeBSD.ORG Fri Oct 8 09:07:24 2010 Return-Path: Delivered-To: freebsd-scsi@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 20843106564A for ; Fri, 8 Oct 2010 09:07:24 +0000 (UTC) (envelope-from avg@freebsd.org) Received: from citadel.icyb.net.ua (citadel.icyb.net.ua [212.40.38.140]) by mx1.freebsd.org (Postfix) with ESMTP id 699158FC12 for ; Fri, 8 Oct 2010 09:07:22 +0000 (UTC) Received: from porto.topspin.kiev.ua (porto-e.starpoint.kiev.ua [212.40.38.100]) by citadel.icyb.net.ua (8.8.8p3/ICyb-2.3exp) with ESMTP id MAA01662 for ; Fri, 08 Oct 2010 12:07:21 +0300 (EEST) (envelope-from avg@freebsd.org) Received: from localhost.topspin.kiev.ua ([127.0.0.1]) by porto.topspin.kiev.ua with esmtp (Exim 4.34 (FreeBSD)) id 1P48vB-000AHw-HS for freebsd-scsi@freebsd.org; Fri, 08 Oct 2010 12:07:21 +0300 Message-ID: <4CAEDF48.1030602@freebsd.org> Date: Fri, 08 Oct 2010 12:07:20 +0300 From: Andriy Gapon User-Agent: Mozilla/5.0 (X11; U; FreeBSD amd64; en-US; rv:1.9.2.9) Gecko/20100918 Lightning/1.0b2 Thunderbird/3.1.4 MIME-Version: 1.0 To: freebsd-scsi@freebsd.org References: <4BCDEBF6.3030609@icyb.net.ua> <20100423184412.GA5016@nargothrond.kdm.org> <4BD1FC74.3090504@freebsd.org> <4CA30B24.8040707@freebsd.org> In-Reply-To: <4CA30B24.8040707@freebsd.org> X-Enigmail-Version: 1.1.2 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Subject: [HEADSUP] changes to cam_get_device() and cam_open_device() X-BeenThere: freebsd-scsi@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: SCSI subsystem List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 08 Oct 2010 09:07:24 -0000 As there was no objections, I am going to commit changes to cam_get_device() that remove the following features: - ignoring 'r' and 'n' at the start of device name - ignoring whitespace at end of device name - parsing and ignoring slice and partition names in a device name cam(3) manual page is going to be updated to reflect the changes. This would simplify the code and disambiguate its behavior. Non-rewound and character disk/SCSI devices has not been supported for quite a while now. Support for parsing partition/slice names is incomplete (e.g. GPT scheme is not supported) and of questionable usefulness. Full diff is here: http://people.freebsd.org/~avg/cam.diff If you know of any functionality or application that would be broken by this change please stop me ASAP. Also, if you have any other reason to object to the change please speak up before the change is committed. Thank you. -- Andriy Gapon From owner-freebsd-scsi@FreeBSD.ORG Fri Oct 8 11:21:28 2010 Return-Path: Delivered-To: freebsd-scsi@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 288631065679; Fri, 8 Oct 2010 11:21:28 +0000 (UTC) (envelope-from bruce@cran.org.uk) Received: from muon.cran.org.uk (muon.cran.org.uk [IPv6:2a01:348:0:15:5d59:5c40:0:1]) by mx1.freebsd.org (Postfix) with ESMTP id B33BB8FC25; Fri, 8 Oct 2010 11:21:27 +0000 (UTC) Received: from muon.cran.org.uk (localhost [127.0.0.1]) by muon.cran.org.uk (Postfix) with ESMTP id 29DEBE8B9E; Fri, 8 Oct 2010 12:21:26 +0100 (BST) Received: from core.nessbank (client-86-31-20-104.midd.adsl.virginmedia.com [86.31.20.104]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by muon.cran.org.uk (Postfix) with ESMTPSA; Fri, 8 Oct 2010 12:21:25 +0100 (BST) From: Bruce Cran To: freebsd-current@freebsd.org Date: Fri, 8 Oct 2010 12:21:24 +0100 User-Agent: KMail/1.13.5 (FreeBSD/9.0-CURRENT; KDE/4.5.1; amd64; ; ) References: <4BCDEBF6.3030609@icyb.net.ua> <4CA30B24.8040707@freebsd.org> <4CAEDF48.1030602@freebsd.org> In-Reply-To: <4CAEDF48.1030602@freebsd.org> MIME-Version: 1.0 Content-Type: Text/Plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Message-Id: <201010081221.24584.bruce@cran.org.uk> Cc: freebsd-scsi@freebsd.org, Andriy Gapon Subject: Re: [HEADSUP] changes to cam_get_device() and cam_open_device() X-BeenThere: freebsd-scsi@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: SCSI subsystem List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 08 Oct 2010 11:21:28 -0000 On Friday 08 October 2010 10:07:20 Andriy Gapon wrote: > Non-rewound and character disk/SCSI devices has not been supported for > quite a while now. Support for parsing partition/slice names is > incomplete (e.g. GPT scheme is not supported) and of questionable > usefulness. If we no longer create non-rewound and character device nodes then sa(4), mtio(4) and scd(4) should probably be updated at some point too. -- Bruce Cran From owner-freebsd-scsi@FreeBSD.ORG Fri Oct 8 13:07:21 2010 Return-Path: Delivered-To: freebsd-scsi@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id A16B11065694; Fri, 8 Oct 2010 13:07:21 +0000 (UTC) (envelope-from rb@gid.co.uk) Received: from mx0.gid.co.uk (mx0.gid.co.uk [194.32.164.250]) by mx1.freebsd.org (Postfix) with ESMTP id 39F0B8FC16; Fri, 8 Oct 2010 13:07:20 +0000 (UTC) Received: from [194.32.164.28] (80-46-130-69.static.dsl.as9105.com [80.46.130.69]) by gid1.gid.co.uk (8.14.2/8.14.2) with ESMTP id o98Cmj2d009007; Fri, 8 Oct 2010 13:48:45 +0100 (BST) (envelope-from rb@gid.co.uk) Mime-Version: 1.0 (Apple Message framework v1081) Content-Type: text/plain; charset=us-ascii From: Bob Bishop In-Reply-To: <4CAEDF48.1030602@freebsd.org> Date: Fri, 8 Oct 2010 13:48:40 +0100 Content-Transfer-Encoding: quoted-printable Message-Id: <6690327C-C8E2-48C3-8982-812ED226975F@gid.co.uk> References: <4BCDEBF6.3030609@icyb.net.ua> <20100423184412.GA5016@nargothrond.kdm.org> <4BD1FC74.3090504@freebsd.org> <4CA30B24.8040707@freebsd.org> <4CAEDF48.1030602@freebsd.org> To: Andriy Gapon X-Mailer: Apple Mail (2.1081) Cc: freebsd-scsi@freebsd.org, FreeBSD Current Subject: Re: [HEADSUP] changes to cam_get_device() and cam_open_device() X-BeenThere: freebsd-scsi@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: SCSI subsystem List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 08 Oct 2010 13:07:21 -0000 Hi, On 8 Oct 2010, at 10:07, Andriy Gapon wrote: > As there was no objections, I am going to commit changes to = cam_get_device() > that remove the following features: >=20 > - ignoring 'r' and 'n' at the start of device name > - ignoring whitespace at end of device name > - parsing and ignoring slice and partition names in a device name >=20 > cam(3) manual page is going to be updated to reflect the changes. > This would simplify the code and disambiguate its behavior. >=20 > Non-rewound and character disk/SCSI devices has not been supported for = quite a > while now. [etc] Just a clarification, does this mean no /dev/nsa.. ? That would be a = showstopper for many tape users. -- Bob Bishop rb@gid.co.uk From owner-freebsd-scsi@FreeBSD.ORG Fri Oct 8 13:42:07 2010 Return-Path: Delivered-To: freebsd-scsi@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id EE20E1065696 for ; Fri, 8 Oct 2010 13:42:07 +0000 (UTC) (envelope-from mj@feral.com) Received: from ns1.feral.com (ns1.feral.com [192.67.166.1]) by mx1.freebsd.org (Postfix) with ESMTP id B8A018FC22 for ; Fri, 8 Oct 2010 13:42:07 +0000 (UTC) Received: from [172.16.135.100] (lportal.in1.lcl [172.16.1.9]) by ns1.feral.com (8.14.3/8.14.3) with ESMTP id o98Dg7rM019405 (version=TLSv1/SSLv3 cipher=DHE-RSA-CAMELLIA256-SHA bits=256 verify=NO) for ; Fri, 8 Oct 2010 06:42:07 -0700 (PDT) (envelope-from mj@feral.com) Message-ID: <4CAF1FAB.90803@feral.com> Date: Fri, 08 Oct 2010 06:42:03 -0700 From: Matthew Jacob Organization: Feral Software User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.2.9) Gecko/20100915 Thunderbird/3.1.4 MIME-Version: 1.0 To: freebsd-scsi@freebsd.org References: <4BCDEBF6.3030609@icyb.net.ua> <4CA30B24.8040707@freebsd.org> <4CAEDF48.1030602@freebsd.org> <201010081221.24584.bruce@cran.org.uk> In-Reply-To: <201010081221.24584.bruce@cran.org.uk> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.2.6 (ns1.feral.com [192.168.221.1]); Fri, 08 Oct 2010 06:42:07 -0700 (PDT) Subject: Re: [HEADSUP] changes to cam_get_device() and cam_open_device() X-BeenThere: freebsd-scsi@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: SCSI subsystem List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 08 Oct 2010 13:42:08 -0000 On 10/8/2010 4:21 AM, Bruce Cran wrote: > On Friday 08 October 2010 10:07:20 Andriy Gapon wrote: > >> Non-rewound and character disk/SCSI devices has not been supported for >> quite a while now. Support for parsing partition/slice names is >> incomplete (e.g. GPT scheme is not supported) and of questionable >> usefulness. > If we no longer create non-rewound and character device nodes then sa(4), > mtio(4) and scd(4) should probably be updated at some point too. > norewind sa devices are still supported last I checked. From owner-freebsd-scsi@FreeBSD.ORG Fri Oct 8 14:10:53 2010 Return-Path: Delivered-To: freebsd-scsi@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 464241065675; Fri, 8 Oct 2010 14:10:53 +0000 (UTC) (envelope-from gcr+freebsd-current@tharned.org) Received: from roadkill.tharned.org (roadkill.tharned.org [75.145.12.185]) by mx1.freebsd.org (Postfix) with ESMTP id D7D3E8FC27; Fri, 8 Oct 2010 14:10:52 +0000 (UTC) Received: from roadkill.tharned.org (11008@roadkill.tharned.org [75.145.12.185]) (authenticated bits=0) by roadkill.tharned.org (8.14.4/8.14.4) with ESMTP id o98DieQj013369 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Fri, 8 Oct 2010 08:44:40 -0500 (CDT) (envelope-from gcr+freebsd-current@tharned.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=tharned.org; s=2010; t=1286545480; bh=dqYKxOUeVx3n1UfPoTBk/kSWJxcraKNE1mKOvkMMEek=; l=1218; h=Date:From:To:cc:Subject:In-Reply-To:Message-ID:References: MIME-Version:Content-Type; b=BeqytzSRQw2Tkmuz9rBpOlpjYRIuXWDrpQ0iml0duPjIPv3Q2vm9UKhKOWim6DvDe wHIoKelzDv5n3fVf4NjAn+CiJjtCKMuAhxO8YCSBfMMxoOL3xNjiSSbSD3IxStXeNo 25+0J1X+W1GGwTQWTYMRReHQHpuD+zySuVz3DGpE= Date: Fri, 8 Oct 2010 08:44:40 -0500 (CDT) From: Greg Rivers To: Andriy Gapon In-Reply-To: <6690327C-C8E2-48C3-8982-812ED226975F@gid.co.uk> Message-ID: References: <4BCDEBF6.3030609@icyb.net.ua> <20100423184412.GA5016@nargothrond.kdm.org> <4BD1FC74.3090504@freebsd.org> <4CA30B24.8040707@freebsd.org> <4CAEDF48.1030602@freebsd.org> <6690327C-C8E2-48C3-8982-812ED226975F@gid.co.uk> User-Agent: Alpine 2.00 (BSF 1167 2008-08-23) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.2.6 (roadkill.tharned.org [75.145.12.185]); Fri, 08 Oct 2010 08:44:40 -0500 (CDT) Cc: freebsd-scsi@freebsd.org, freebsd-current@freebsd.org Subject: Re: [HEADSUP] changes to cam_get_device() and cam_open_device() X-BeenThere: freebsd-scsi@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: SCSI subsystem List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 08 Oct 2010 14:10:53 -0000 On Fri, 8 Oct 2010, Bob Bishop wrote: > On 8 Oct 2010, at 10:07, Andriy Gapon wrote: > >> As there was no objections, I am going to commit changes to >> cam_get_device() that remove the following features: >> >> - ignoring 'r' and 'n' at the start of device name >> - ignoring whitespace at end of device name >> - parsing and ignoring slice and partition names in a device name >> >> cam(3) manual page is going to be updated to reflect the changes. This >> would simplify the code and disambiguate its behavior. >> >> Non-rewound and character disk/SCSI devices has not been supported for >> quite a while now. [etc] > > Just a clarification, does this mean no /dev/nsa.. ? That would be a > showstopper for many tape users. > Yes, the no-rewind tape device is a practical requirement. I think it's ok for 'r' to go away for disk devices, but 'n' for tape devices needs to be retained. If we really want to remove the 'n', then all tape devices need to be no-rewind on close, and the rewind-on-close devices need to be deprecated just like the block devices for disks were. Of course doing this would change traditional behavior and might violate POLA. -- Greg Rivers From owner-freebsd-scsi@FreeBSD.ORG Fri Oct 8 15:00:04 2010 Return-Path: Delivered-To: freebsd-scsi@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id D225B1065673 for ; Fri, 8 Oct 2010 15:00:04 +0000 (UTC) (envelope-from avg@freebsd.org) Received: from citadel.icyb.net.ua (citadel.icyb.net.ua [212.40.38.140]) by mx1.freebsd.org (Postfix) with ESMTP id 219558FC1E for ; Fri, 8 Oct 2010 15:00:03 +0000 (UTC) Received: from odyssey.starpoint.kiev.ua (alpha-e.starpoint.kiev.ua [212.40.38.101]) by citadel.icyb.net.ua (8.8.8p3/ICyb-2.3exp) with ESMTP id RAA07672; Fri, 08 Oct 2010 17:59:59 +0300 (EEST) (envelope-from avg@freebsd.org) Message-ID: <4CAF31EE.6060409@freebsd.org> Date: Fri, 08 Oct 2010 17:59:58 +0300 From: Andriy Gapon User-Agent: Mozilla/5.0 (X11; U; FreeBSD amd64; en-US; rv:1.9.2.9) Gecko/20100920 Lightning/1.0b2 Thunderbird/3.1.4 MIME-Version: 1.0 To: Bruce Cran References: <4BCDEBF6.3030609@icyb.net.ua> <4CA30B24.8040707@freebsd.org> <4CAEDF48.1030602@freebsd.org> <201010081221.24584.bruce@cran.org.uk> In-Reply-To: <201010081221.24584.bruce@cran.org.uk> X-Enigmail-Version: 1.1.2 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: freebsd-scsi@freebsd.org, Bob Bishop , gcr+freebsd-current@tharned.org Subject: Re: [HEADSUP] changes to cam_get_device() and cam_open_device() X-BeenThere: freebsd-scsi@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: SCSI subsystem List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 08 Oct 2010 15:00:04 -0000 on 08/10/2010 14:21 Bruce Cran said the following: > On Friday 08 October 2010 10:07:20 Andriy Gapon wrote: > >> Non-rewound and character disk/SCSI devices has not been supported for >> quite a while now. Support for parsing partition/slice names is >> incomplete (e.g. GPT scheme is not supported) and of questionable >> usefulness. > > If we no longer create non-rewound and character device nodes then sa(4), > mtio(4) and scd(4) should probably be updated at some point too. > It seems that I've screwed up here. We do still support non-rewind devices. And it's probably not a good idea to remove support for e.g. "nsa" => "pass" mapping. -- Andriy Gapon From owner-freebsd-scsi@FreeBSD.ORG Fri Oct 8 15:44:49 2010 Return-Path: Delivered-To: freebsd-scsi@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 945AD1065673 for ; Fri, 8 Oct 2010 15:44:49 +0000 (UTC) (envelope-from avg@freebsd.org) Received: from citadel.icyb.net.ua (citadel.icyb.net.ua [212.40.38.140]) by mx1.freebsd.org (Postfix) with ESMTP id DD0028FC0C for ; Fri, 8 Oct 2010 15:44:48 +0000 (UTC) Received: from odyssey.starpoint.kiev.ua (alpha-e.starpoint.kiev.ua [212.40.38.101]) by citadel.icyb.net.ua (8.8.8p3/ICyb-2.3exp) with ESMTP id SAA08301; Fri, 08 Oct 2010 18:44:45 +0300 (EEST) (envelope-from avg@freebsd.org) Message-ID: <4CAF3C6D.3020003@freebsd.org> Date: Fri, 08 Oct 2010 18:44:45 +0300 From: Andriy Gapon User-Agent: Mozilla/5.0 (X11; U; FreeBSD amd64; en-US; rv:1.9.2.9) Gecko/20100920 Lightning/1.0b2 Thunderbird/3.1.4 MIME-Version: 1.0 To: Bruce Cran References: <4BCDEBF6.3030609@icyb.net.ua> <4CA30B24.8040707@freebsd.org> <4CAEDF48.1030602@freebsd.org> <201010081221.24584.bruce@cran.org.uk> <4CAF31EE.6060409@freebsd.org> In-Reply-To: <4CAF31EE.6060409@freebsd.org> X-Enigmail-Version: 1.1.2 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: freebsd-scsi@freebsd.org, Bob Bishop , gcr+freebsd-current@tharned.org Subject: Re: [HEADSUP] changes to cam_get_device() and cam_open_device() X-BeenThere: freebsd-scsi@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: SCSI subsystem List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 08 Oct 2010 15:44:49 -0000 on 08/10/2010 17:59 Andriy Gapon said the following: > on 08/10/2010 14:21 Bruce Cran said the following: >> On Friday 08 October 2010 10:07:20 Andriy Gapon wrote: >> >>> Non-rewound and character disk/SCSI devices has not been supported for >>> quite a while now. Support for parsing partition/slice names is >>> incomplete (e.g. GPT scheme is not supported) and of questionable >>> usefulness. >> >> If we no longer create non-rewound and character device nodes then sa(4), >> mtio(4) and scd(4) should probably be updated at some point too. >> > > It seems that I've screwed up here. > We do still support non-rewind devices. OTOH, while it's a reality that we keep non-rewind devices > And it's probably not a good idea to remove support for e.g. "nsa" => "pass" mapping. Removing special support for them in cam_get_device() and cam_open_device() might still be a good idea. Not sure. I say this because sa(4) also has eject-on-close variation ("/dev/esaN"), but there is no special support for those. -- Andriy Gapon From owner-freebsd-scsi@FreeBSD.ORG Fri Oct 8 15:48:31 2010 Return-Path: Delivered-To: freebsd-scsi@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 200B7106564A for ; Fri, 8 Oct 2010 15:48:31 +0000 (UTC) (envelope-from mj@feral.com) Received: from ns1.feral.com (ns1.feral.com [192.67.166.1]) by mx1.freebsd.org (Postfix) with ESMTP id DEC3D8FC0A for ; Fri, 8 Oct 2010 15:48:30 +0000 (UTC) Received: from [172.16.135.100] (lportal.in1.lcl [172.16.1.9]) by ns1.feral.com (8.14.3/8.14.3) with ESMTP id o98FmU0g020218 (version=TLSv1/SSLv3 cipher=DHE-RSA-CAMELLIA256-SHA bits=256 verify=NO) for ; Fri, 8 Oct 2010 08:48:30 -0700 (PDT) (envelope-from mj@feral.com) Message-ID: <4CAF3D4A.70001@feral.com> Date: Fri, 08 Oct 2010 08:48:26 -0700 From: Matthew Jacob Organization: Feral Software User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.2.9) Gecko/20100915 Thunderbird/3.1.4 MIME-Version: 1.0 To: freebsd-scsi@freebsd.org References: <4BCDEBF6.3030609@icyb.net.ua> <4CA30B24.8040707@freebsd.org> <4CAEDF48.1030602@freebsd.org> <201010081221.24584.bruce@cran.org.uk> <4CAF31EE.6060409@freebsd.org> <4CAF3C6D.3020003@freebsd.org> In-Reply-To: <4CAF3C6D.3020003@freebsd.org> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.2.6 (ns1.feral.com [192.168.221.1]); Fri, 08 Oct 2010 08:48:30 -0700 (PDT) Subject: Re: [HEADSUP] changes to cam_get_device() and cam_open_device() X-BeenThere: freebsd-scsi@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: SCSI subsystem List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 08 Oct 2010 15:48:31 -0000 The 'eject on close' variant is a hangover from older stuff. I don't think it is much used. I believe packages like bacula and amanda just use mtio ioctls directly on the no-rewind device (haven't worked on tape in a long time, so my recollection is quite stale). I think as long as no-rewind cases are covered, whatever you do that simplifies things will be a good thing. > Removing special support for them in cam_get_device() and cam_open_device() might > still be a good idea. Not sure. > I say this because sa(4) also has eject-on-close variation ("/dev/esaN"), but > there is no special support for those. > > From owner-freebsd-scsi@FreeBSD.ORG Fri Oct 8 16:34:25 2010 Return-Path: Delivered-To: freebsd-scsi@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 94EF11065670 for ; Fri, 8 Oct 2010 16:34:25 +0000 (UTC) (envelope-from avg@freebsd.org) Received: from citadel.icyb.net.ua (citadel.icyb.net.ua [212.40.38.140]) by mx1.freebsd.org (Postfix) with ESMTP id E0BA38FC1D for ; Fri, 8 Oct 2010 16:34:24 +0000 (UTC) Received: from odyssey.starpoint.kiev.ua (alpha-e.starpoint.kiev.ua [212.40.38.101]) by citadel.icyb.net.ua (8.8.8p3/ICyb-2.3exp) with ESMTP id TAA08961; Fri, 08 Oct 2010 19:34:20 +0300 (EEST) (envelope-from avg@freebsd.org) Message-ID: <4CAF480B.3020306@freebsd.org> Date: Fri, 08 Oct 2010 19:34:19 +0300 From: Andriy Gapon User-Agent: Mozilla/5.0 (X11; U; FreeBSD amd64; en-US; rv:1.9.2.9) Gecko/20100920 Lightning/1.0b2 Thunderbird/3.1.4 MIME-Version: 1.0 To: Matthew Jacob References: <4BCDEBF6.3030609@icyb.net.ua> <4CA30B24.8040707@freebsd.org> <4CAEDF48.1030602@freebsd.org> <201010081221.24584.bruce@cran.org.uk> <4CAF31EE.6060409@freebsd.org> <4CAF3C6D.3020003@freebsd.org> <4CAF3D4A.70001@feral.com> In-Reply-To: <4CAF3D4A.70001@feral.com> X-Enigmail-Version: 1.1.2 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: freebsd-scsi@freebsd.org Subject: Re: [HEADSUP] changes to cam_get_device() and cam_open_device() X-BeenThere: freebsd-scsi@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: SCSI subsystem List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 08 Oct 2010 16:34:25 -0000 on 08/10/2010 18:48 Matthew Jacob said the following: > > > The 'eject on close' variant is a hangover from older stuff. I don't think it is > much used. I believe packages like bacula and amanda just use mtio ioctls directly > on the no-rewind device (haven't worked on tape in a long time, so my recollection > is quite stale). > > I think as long as no-rewind cases are covered, whatever you do that simplifies > things will be a good thing. Matthew, thanks a lot! Here is a new variant of the camlib.c patch: http://people.freebsd.org/~avg/cam_get_device.2.diff I tried to preserve 'n' behavior (and added 'e'), but in a little bit more elaborate fashion. Instead of just checking for a leading 'n' I try to check for a known "non-rewind" peripheral name between the 'n' and unit number. I am aware only of sa(4) driver with such a feature at present. -- Andriy Gapon From owner-freebsd-scsi@FreeBSD.ORG Fri Oct 8 16:43:35 2010 Return-Path: Delivered-To: freebsd-scsi@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 096001065694 for ; Fri, 8 Oct 2010 16:43:35 +0000 (UTC) (envelope-from mj@feral.com) Received: from ns1.feral.com (ns1.feral.com [192.67.166.1]) by mx1.freebsd.org (Postfix) with ESMTP id 24DE18FC15 for ; Fri, 8 Oct 2010 16:43:33 +0000 (UTC) Received: from [172.16.135.100] (lportal.in1.lcl [172.16.1.9]) by ns1.feral.com (8.14.3/8.14.3) with ESMTP id o98GhV8h020564 (version=TLSv1/SSLv3 cipher=DHE-RSA-CAMELLIA256-SHA bits=256 verify=NO) for ; Fri, 8 Oct 2010 09:43:31 -0700 (PDT) (envelope-from mj@feral.com) Message-ID: <4CAF4A2F.1080705@feral.com> Date: Fri, 08 Oct 2010 09:43:27 -0700 From: Matthew Jacob Organization: Feral Software User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.2.9) Gecko/20100915 Thunderbird/3.1.4 MIME-Version: 1.0 To: freebsd-scsi@freebsd.org References: <4BCDEBF6.3030609@icyb.net.ua> <4CA30B24.8040707@freebsd.org> <4CAEDF48.1030602@freebsd.org> <201010081221.24584.bruce@cran.org.uk> <4CAF31EE.6060409@freebsd.org> <4CAF3C6D.3020003@freebsd.org> <4CAF3D4A.70001@feral.com> <4CAF480B.3020306@freebsd.org> In-Reply-To: <4CAF480B.3020306@freebsd.org> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.2.6 (ns1.feral.com [192.168.221.1]); Fri, 08 Oct 2010 09:43:31 -0700 (PDT) Subject: Re: [HEADSUP] changes to cam_get_device() and cam_open_device() X-BeenThere: freebsd-scsi@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: SCSI subsystem List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 08 Oct 2010 16:43:35 -0000 You might add a comment about why nfoo0 is a special case. Other than that, looks ok to me. > Matthew, thanks a lot! > Here is a new variant of the camlib.c patch: > http://people.freebsd.org/~avg/cam_get_device.2.diff > > I tried to preserve 'n' behavior (and added 'e'), but in a little bit more > elaborate fashion. > Instead of just checking for a leading 'n' I try to check for a known "non-rewind" > peripheral name between the 'n' and unit number. > I am aware only of sa(4) driver with such a feature at present. > From owner-freebsd-scsi@FreeBSD.ORG Fri Oct 8 16:49:17 2010 Return-Path: Delivered-To: freebsd-scsi@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 4A75010656AC for ; Fri, 8 Oct 2010 16:49:17 +0000 (UTC) (envelope-from avg@icyb.net.ua) Received: from citadel.icyb.net.ua (citadel.icyb.net.ua [212.40.38.140]) by mx1.freebsd.org (Postfix) with ESMTP id C9C158FC18 for ; Fri, 8 Oct 2010 16:49:15 +0000 (UTC) Received: from odyssey.starpoint.kiev.ua (alpha-e.starpoint.kiev.ua [212.40.38.101]) by citadel.icyb.net.ua (8.8.8p3/ICyb-2.3exp) with ESMTP id TAA08984; Fri, 08 Oct 2010 19:35:13 +0300 (EEST) (envelope-from avg@icyb.net.ua) Message-ID: <4CAF4841.4060002@icyb.net.ua> Date: Fri, 08 Oct 2010 19:35:13 +0300 From: Andriy Gapon User-Agent: Mozilla/5.0 (X11; U; FreeBSD amd64; en-US; rv:1.9.2.9) Gecko/20100920 Lightning/1.0b2 Thunderbird/3.1.4 MIME-Version: 1.0 To: Matthew Jacob References: <4BCDEBF6.3030609@icyb.net.ua> <4CA30B24.8040707@freebsd.org> <4CAEDF48.1030602@freebsd.org> <201010081221.24584.bruce@cran.org.uk> <4CAF1FAB.90803@feral.com> In-Reply-To: <4CAF1FAB.90803@feral.com> X-Enigmail-Version: 1.1.2 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: freebsd-scsi@freebsd.org Subject: Re: [HEADSUP] changes to cam_get_device() and cam_open_device() X-BeenThere: freebsd-scsi@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: SCSI subsystem List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 08 Oct 2010 16:49:17 -0000 on 08/10/2010 16:42 Matthew Jacob said the following: > On 10/8/2010 4:21 AM, Bruce Cran wrote: >> On Friday 08 October 2010 10:07:20 Andriy Gapon wrote: >> >>> Non-rewound and character disk/SCSI devices has not been supported for >>> quite a while now. Support for parsing partition/slice names is >>> incomplete (e.g. GPT scheme is not supported) and of questionable >>> usefulness. >> If we no longer create non-rewound and character device nodes then sa(4), >> mtio(4) and scd(4) should probably be updated at some point too. >> > norewind sa devices are still supported last I checked. Yes, my fault, sorry. -- Andriy Gapon From owner-freebsd-scsi@FreeBSD.ORG Sat Oct 9 20:22:39 2010 Return-Path: Delivered-To: freebsd-scsi@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id C3761106566C; Sat, 9 Oct 2010 20:22:39 +0000 (UTC) (envelope-from brucec@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 9A7508FC12; Sat, 9 Oct 2010 20:22:39 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.4/8.14.4) with ESMTP id o99KMdbu035951; Sat, 9 Oct 2010 20:22:39 GMT (envelope-from brucec@freefall.freebsd.org) Received: (from brucec@localhost) by freefall.freebsd.org (8.14.4/8.14.4/Submit) id o99KMdZZ035947; Sat, 9 Oct 2010 20:22:39 GMT (envelope-from brucec) Date: Sat, 9 Oct 2010 20:22:39 GMT Message-Id: <201010092022.o99KMdZZ035947@freefall.freebsd.org> To: brucec@FreeBSD.org, freebsd-doc@FreeBSD.org, freebsd-scsi@FreeBSD.org From: brucec@FreeBSD.org Cc: Subject: Re: docs/151336: Missing documentation of scsi_ and ata_ functions in libcam X-BeenThere: freebsd-scsi@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: SCSI subsystem List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 09 Oct 2010 20:22:39 -0000 Synopsis: Missing documentation of scsi_ and ata_ functions in libcam Responsible-Changed-From-To: freebsd-doc->freebsd-scsi Responsible-Changed-By: brucec Responsible-Changed-When: Sat Oct 9 20:22:21 UTC 2010 Responsible-Changed-Why: Over to maintainer(s). http://www.freebsd.org/cgi/query-pr.cgi?pr=151336