From mboxrd@z Thu Jan 1 00:00:00 1970 From: James Bottomley Subject: Re: [PATCH] sysfs: add filter function to groups Date: Mon, 29 Oct 2007 12:29:27 -0500 Message-ID: <1193678967.3383.81.camel@localhost.localdomain> References: <1193671019.3383.13.camel@localhost.localdomain> <1193676852.2655.21.camel@lov.site> <1193677071.3383.56.camel@localhost.localdomain> <20071029181814.25410e00@gondolin.boeblingen.de.ibm.com> <1193678646.3383.76.camel@localhost.localdomain> <4726180E.5030909@garzik.org> Mime-Version: 1.0 Content-Type: text/plain Content-Transfer-Encoding: 7bit Return-path: Received: from hancock.steeleye.com ([71.30.118.248]:56517 "EHLO hancock.sc.steeleye.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1752793AbXJ2R3c (ORCPT ); Mon, 29 Oct 2007 13:29:32 -0400 In-Reply-To: <4726180E.5030909@garzik.org> Sender: linux-scsi-owner@vger.kernel.org List-Id: linux-scsi@vger.kernel.org To: Jeff Garzik Cc: Cornelia Huck , Kay Sievers , Greg KH , linux-scsi , linux-kernel On Mon, 2007-10-29 at 13:27 -0400, Jeff Garzik wrote: > James Bottomley wrote: > > visibility and creation are the same thing, aren't they? An invisible > > attribute doesn't appear in the sysfs directory, so it's equivalent to > > the file for it not being created. > > > What about the case where it's visible at creation time, but then needs > to be made selectively invisible later on? > > That implies either a remove operation or dentry checks on each lookup? Yes, that comes with the bitmap manipulation code. There will be a way to add and remove runtime visibility. I just wanted to get the basic concept agreed to first. James