From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754730AbYILNUl (ORCPT ); Fri, 12 Sep 2008 09:20:41 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1752093AbYILNUc (ORCPT ); Fri, 12 Sep 2008 09:20:32 -0400 Received: from mail-in-16.arcor-online.net ([151.189.21.56]:55770 "EHLO mail-in-16.arcor-online.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751676AbYILNUb (ORCPT ); Fri, 12 Sep 2008 09:20:31 -0400 From: Bodo Eggert <7eggert@gmx.de> Subject: Re: Laptop shock detection and harddisk protection To: Tejun Heo , multinymous@gmail.com, Elias Oltmanns , Thomas Renninger , Linux Kernel Mailing List , IDE/ATA development list , Linux Kernel Mailing List , IDE/ATA development list Reply-To: 7eggert@gmx.de Date: Fri, 12 Sep 2008 15:28:49 +0200 References: User-Agent: KNode/0.10.4 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7Bit Message-Id: X-be10.7eggert.dyndns.org-MailScanner-Information: See www.mailscanner.info for information X-be10.7eggert.dyndns.org-MailScanner: Found to be clean X-be10.7eggert.dyndns.org-MailScanner-From: 7eggert@gmx.de Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Tejun Heo wrote: > 1. How should the shock interface look like? As we're gonna need > userland daemon one way or the other, we can use the userland > daemon to glue all the interfaces but it would be much better to > have a unified interface. Although there seem to be several > different variants, they don't differ all that much and creating a > new interface every time is painful. I think we can get by with a > sysfs interface with notification. It should provide a connection to the corresponding device. Imagine an USB case having a sensor, being connected to a desktop system. You would want to exactly protect the enclosed USB device, and possibly non-protected USB devices, too, but not halt the internal disks.