From owner-freebsd-current@FreeBSD.ORG Thu Sep 30 21:00:54 2010 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 C4582106564A for ; Thu, 30 Sep 2010 21:00:54 +0000 (UTC) (envelope-from mavbsd@gmail.com) Received: from mail-bw0-f54.google.com (mail-bw0-f54.google.com [209.85.214.54]) by mx1.freebsd.org (Postfix) with ESMTP id 4C60C8FC14 for ; Thu, 30 Sep 2010 21:00:53 +0000 (UTC) Received: by bwz15 with SMTP id 15so2305919bwz.13 for ; Thu, 30 Sep 2010 14:00:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:sender:message-id:date:from :user-agent:mime-version:to:cc:subject:references:in-reply-to :x-enigmail-version:content-type:content-transfer-encoding; bh=1lbCyga7ngNI5Z/puTscKhiTTk9ayUj7ClQd5Mev/Ag=; b=LW++IxChhbdyiMKijyxI/w/PC6ozzHpfRzaHFp1EL0fn622JpU8bHUeGj+iodsWoJc rok4CDu/7bbwgncX6S/ym+W6MzHjWGutoTJFeYJmvrM1FGPsOJNQa8AA39gDZkmuXr4R CokXVlYbJHcdS6Tcr3GD+0R83MDow/NFGzL3o= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=sender:message-id:date:from:user-agent:mime-version:to:cc:subject :references:in-reply-to:x-enigmail-version:content-type :content-transfer-encoding; b=n1gIQkhAC+gHBTbhzQyXuz1L8YBZGgvI0n6sSvGQX7+qTi0E5dKyDq8D9p2aTUabbM Na1lMig7ypitx0TC8GV+L/LbbgUQF/hqWWeM1XLqO5JwiGzF9MBCvnovQYlnTziHRh9c mmHNJpvUUeRTge7WaiAwskDlAVe6W7zeOUskI= Received: by 10.204.70.211 with SMTP id e19mr3277653bkj.23.1285880453228; Thu, 30 Sep 2010 14:00:53 -0700 (PDT) Received: from mavbook2.mavhome.dp.ua (pc.mavhome.dp.ua [212.86.226.226]) by mx.google.com with ESMTPS id y19sm326176bkw.18.2010.09.30.14.00.51 (version=SSLv3 cipher=RC4-MD5); Thu, 30 Sep 2010 14:00:52 -0700 (PDT) Sender: Alexander Motin Message-ID: <4CA4FA74.8000708@FreeBSD.org> Date: Fri, 01 Oct 2010 00:00:36 +0300 From: Alexander Motin User-Agent: Thunderbird 2.0.0.23 (X11/20091212) MIME-Version: 1.0 To: Andriy Gapon References: <4CA3BD7C.9080306@feral.com> <4CA4CCE3.9060408@FreeBSD.org> <4CA4F6FF.5070402@icyb.net.ua> In-Reply-To: <4CA4F6FF.5070402@icyb.net.ua> X-Enigmail-Version: 0.96.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: FreeBSD-Current Subject: Re: letting glabel recognise a media change 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: Thu, 30 Sep 2010 21:00:54 -0000 Andriy Gapon wrote: > on 30/09/2010 20:46 Alexander Motin said the following: >> Andriy Gapon wrote: >>> on 30/09/2010 01:28 Matthew Jacob said the following: >>>> If something like that was in place, I assure you that things would start to use >>>> it very quickly. >>> I am not sure about this. >>> Because, e.g. I don't see an easy way to know that media is changed in scsi_cd >>> driver. That is, without polling. I don't consider polling to be an easy way for >>> a number of reasons. >> SATA specification defines concept of Asynchronous Notification. It is >> already used by port multipliers to report about PHY events. It is also >> supposed to be used by CD drives to report media change. I haven't seen >> such devices yet, but hope they may appear sometimes. > > Would this require some reverse-path from SIM driver to peripheral driver to > deliver a notification? Do we have one? Yes we do. SATA PMP driver (it looks like usual peripheral driver from this point) already receives and handles AC_SCSI_AEN messages sent to it via xpt_async() mechanism. -- Alexander Motin