Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751174AbVK1U6k (ORCPT ); Mon, 28 Nov 2005 15:58:40 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1751241AbVK1U6j (ORCPT ); Mon, 28 Nov 2005 15:58:39 -0500 Received: from mail.kroah.org ([69.55.234.183]:33747 "EHLO perch.kroah.org") by vger.kernel.org with ESMTP id S1751174AbVK1U6j (ORCPT ); Mon, 28 Nov 2005 15:58:39 -0500 Date: Mon, 28 Nov 2005 12:49:50 -0800 From: Greg KH To: Patrick Mochel Cc: linux-kernel@vger.kernel.org Subject: Re: [RFC] Updates to sysfs_create_subdir() Message-ID: <20051128204950.GC17740@kroah.com> References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.11 Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 849 Lines: 22 On Wed, Nov 23, 2005 at 01:56:29PM -0800, Patrick Mochel wrote: > > The patch below addresses this issue by parsing the subdirectory name and > creating any parent directories delineated by a '/'. Generally I never liked parsing stuff like this in the kernel (proc and devfs both do this). That being said, I do see the need to make subdirs like this easier. But what about cleanups? If I create an attribute group "foo/baz/x/" and then remove it, will the subdirectories get cleaned up too? What about if I had created a group "foo/baz/y/" after the "x" one? Or just "foo/baz"? thanks, greg k-h - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/