From owner-freebsd-geom@FreeBSD.ORG Thu May 20 03:42:40 2004 Return-Path: Delivered-To: freebsd-geom@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id E1C3316A4CE for ; Thu, 20 May 2004 03:42:40 -0700 (PDT) Received: from critter.freebsd.dk (critter.freebsd.dk [212.242.86.163]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4F8A643D45 for ; Thu, 20 May 2004 03:42:40 -0700 (PDT) (envelope-from phk@phk.freebsd.dk) Received: from critter.freebsd.dk (localhost [127.0.0.1]) by critter.freebsd.dk (8.12.11/8.12.11) with ESMTP id i4KAgGlb025149 for ; Thu, 20 May 2004 12:42:16 +0200 (CEST) (envelope-from phk@phk.freebsd.dk) To: geom@freebsd.org From: Poul-Henning Kamp Date: Thu, 20 May 2004 12:42:16 +0200 Message-ID: <25148.1085049736@critter.freebsd.dk> Subject: some comments on geom(8) X-BeenThere: freebsd-geom@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: GEOM-specific discussions and implementations List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 20 May 2004 10:42:41 -0000 These are merely comments and not binding in any way. The idea behind the gctl_*(9) api was to avoid class specific code in userland to the extent possible and to converge on a common command set for geom classes to make life easier and more intuitive for administrators. For a simple operation like "create", I have a hard time seeing why we need class specific code in userland. I would expect to be able to type: create stripe ad0s1 ad1s1 into geom(8) and see it construct a g_ctl containing: verb "create" class "stripe" nprovider "2" provider0 "ad0s1" provider1 "ad1s1" which I would expect the geom_stripe class in the kernel to understand. If I had typed create stripe -stripe 64 ad0s1 ad1s1 It would be: verb "create" class "stripe" nprovider "2" provider0 "ad0s1" provider1 "ad1s1" stripe "64" Similar destroy foobar should examine the XML status to find the class of the "foobar" generate something like: verb "destroy" class "foo" target "foobar" But as I said: these are non-binding comments, do it which ever way makes sense to you guys. Poul-Henning -- Poul-Henning Kamp | UNIX since Zilog Zeus 3.20 phk@FreeBSD.ORG | TCP/IP since RFC 956 FreeBSD committer | BSD since 4.3-tahoe Never attribute to malice what can adequately be explained by incompetence.