From owner-freebsd-current@FreeBSD.ORG Tue Sep 27 03:31:02 2011 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 1C8601065672; Tue, 27 Sep 2011 03:31:02 +0000 (UTC) (envelope-from yanegomi@gmail.com) Received: from mail-iy0-f182.google.com (mail-iy0-f182.google.com [209.85.210.182]) by mx1.freebsd.org (Postfix) with ESMTP id A83A48FC0A; Tue, 27 Sep 2011 03:31:01 +0000 (UTC) Received: by iadk27 with SMTP id k27so8321477iad.13 for ; Mon, 26 Sep 2011 20:31:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=date:from:to:cc:subject:in-reply-to:message-id:references :user-agent:mime-version:content-type; bh=GiJVjHVvAZRe2uYxm5Ql7Dl6W36cN+PBWdhP2et6DXM=; b=tlxtvd+bvGOxEnjMmqukymkT3eXrSmOrG34wptWUbgRd/sADXoWIkDL8kF2uBvU3WO y80DpRd2CDkZoB26UM6BZlB5bKhpYUysaFTJMPYGoJm2pnKeyLsDekW9l8anDQq8GYpR quZGaOe6QbeulVaOiJregD/bGyXmgJLyH0Mks= Received: by 10.42.74.195 with SMTP id x3mr4889871icj.2.1317094260926; Mon, 26 Sep 2011 20:31:00 -0700 (PDT) Received: from c-24-6-49-154.hsd1.ca.comcast.net (c-24-6-49-154.hsd1.ca.comcast.net. [24.6.49.154]) by mx.google.com with ESMTPS id ek22sm28720944ibb.12.2011.09.26.20.30.59 (version=TLSv1/SSLv3 cipher=OTHER); Mon, 26 Sep 2011 20:31:00 -0700 (PDT) Date: Mon, 26 Sep 2011 20:30:53 -0700 (PDT) From: Garrett Cooper To: Craig Rodrigues In-Reply-To: Message-ID: References: <201109262324.p8QNO0NN070853@freefall.freebsd.org> <4E811FF7.7010607@a1poweruser.com> <4E8126D3.5020407@FreeBSD.org> <4E812DB7.3000302@FreeBSD.org> User-Agent: Alpine 2.00 (BSF 1167 2008-08-23) MIME-Version: 1.0 Content-Type: MULTIPART/MIXED; BOUNDARY="967339439-1742936270-1317094260=:81576" Cc: Doug Barton , eadler@freebsd.org, FreeBSD Questions , Fbsd8 , freebsd-current@freebsd.org Subject: Re: bin/160979: 9.0 burncd error caused by change to cd0 from acd0 X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 27 Sep 2011 03:31:02 -0000 This message is in MIME format. The first part should be readable text, while the remaining parts are likely unreadable without MIME-aware tools. --967339439-1742936270-1317094260=:81576 Content-Type: TEXT/PLAIN; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8BIT On Mon, 26 Sep 2011, Craig Rodrigues wrote: > On Mon, Sep 26, 2011 at 6:58 PM, Doug Barton wrote: >>> >>> I have used burncd on many releases of FreeBSD, on many machines >>> without problem.  I can see the fact that burncd suddenly failing to >>> work on ATAPI hardware could annoy and confused end-users. >> >> It doesn't fail to work on ATAPI hardware. It fails to work on cd0 which >> is a SCSI device. The fact that it's emulated doesn't matter. > > True, but the subtlety of that distinction will be lost on a lot of end-users > not familiar with the implementation of the FreeBSD storage implementation. > To them "burncd just doesn't work, when it used to". > > >>> Can we modify burncd to somehow detect if ATAPI-CAM is enabled, and print out >>> a more useful error message? >> >> Sure, as soon as someone volunteers to create that patch. No one is >> *trying* to annoy users, but things change around here because people >> are interested in changing them. > > > I am not familiar enough with the ATA_CAM work. Is there a a sysctl or ioctl > that can be queried from userspace to detect if ATA_CAM is configured > in the kernel? > > I would suggest something like: ... Please fix it and move on. Thanks, -Garrett $ usr.sbin/burncd/burncd -f /dev/cd0 blank burncd: device provided not an acd(4) device: /dev/cd0. Please verify that your kernel is built with acd(4) and the beforementioned device is supported by acd(4). --967339439-1742936270-1317094260=:81576 Content-Type: TEXT/PLAIN; charset=US-ASCII; name=burncd-acd-error-message.patch Content-Transfer-Encoding: BASE64 Content-ID: Content-Description: Content-Disposition: attachment; filename=burncd-acd-error-message.patch SW5kZXg6IHVzci5zYmluL2J1cm5jZC9idXJuY2QuYw0KPT09PT09PT09PT09 PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09 PT09PT09PT09PQ0KLS0tIHVzci5zYmluL2J1cm5jZC9idXJuY2QuYwkocmV2 aXNpb24gMjI1NzA0KQ0KKysrIHVzci5zYmluL2J1cm5jZC9idXJuY2QuYwko d29ya2luZyBjb3B5KQ0KQEAgLTE1OSw4ICsxNTksMTYgQEANCiAJaWYgKChm ZCA9IG9wZW4oZGV2LCBPX1JEV1IsIDApKSA8IDApDQogCQllcnIoRVhfTk9J TlBVVCwgIm9wZW4oJXMpIiwgZGV2KTsNCiANCi0JaWYgKGlvY3RsKGZkLCBD RFJJT0NHRVRCTE9DS1NJWkUsICZzYXZlZF9ibG9ja19zaXplKSA8IDApDQot CQllcnIoRVhfSU9FUlIsICJpb2N0bChDRFJJT0NHRVRCTE9DS1NJWkUpIik7 DQorCWlmIChpb2N0bChmZCwgQ0RSSU9DR0VUQkxPQ0tTSVpFLCAmc2F2ZWRf YmxvY2tfc2l6ZSkgPCAwKSB7DQorCQlpZiAoZXJybm8gPT0gRU5PVFRZKQ0K KwkJCWVycngoRVhfSU9FUlIsDQorCQkJICAgICJkZXZpY2UgcHJvdmlkZWQg bm90IGFuIGFjZCg0KSBkZXZpY2U6ICVzLlxuXG4iDQorCQkJICAgICJQbGVh c2UgdmVyaWZ5IHRoYXQgeW91ciBrZXJuZWwgaXMgYnVpbHQgd2l0aCAiDQor CQkJICAgICJhY2QoNCkgYW5kIHRoZSBiZWZvcmVtZW50aW9uZWQgZGV2aWNl IGlzICINCisJCQkgICAgInN1cHBvcnRlZCBieSBhY2QoNCkuIiwgZGV2KTsN CisJCWVsc2UNCisJCQllcnIoRVhfSU9FUlIsICJpb2N0bChDRFJJT0NHRVRC TE9DS1NJWkUpIik7DQorCX0NCiANCiAJaWYgKGlvY3RsKGZkLCBDRFJJT0NX UklURVNQRUVELCAmc3BlZWQpIDwgMCkNCiAJCWVycihFWF9JT0VSUiwgImlv Y3RsKENEUklPQ1dSSVRFU1BFRUQpIik7DQo= --967339439-1742936270-1317094260=:81576--