From owner-freebsd-fs@FreeBSD.ORG Mon Sep 24 20:39:37 2012 Return-Path: Delivered-To: freebsd-fs@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id A2B5B106564A; Mon, 24 Sep 2012 20:39:37 +0000 (UTC) (envelope-from Devin.Teske@fisglobal.com) Received: from mx1.fisglobal.com (mx1.fisglobal.com [199.200.24.190]) by mx1.freebsd.org (Postfix) with ESMTP id 67E508FC12; Mon, 24 Sep 2012 20:39:36 +0000 (UTC) Received: from smtp.fisglobal.com ([10.132.206.16]) by ltcfislmsgpa06.fnfis.com (8.14.4/8.14.4) with ESMTP id q8OKdXG8018302 (version=TLSv1/SSLv3 cipher=AES128-SHA bits=128 verify=NOT); Mon, 24 Sep 2012 15:39:35 -0500 Received: from dtwin (10.14.152.52) by smtp.fisglobal.com (10.132.206.16) with Microsoft SMTP Server (TLS) id 14.2.309.2; Mon, 24 Sep 2012 15:39:04 -0500 From: Sender: Devin Teske To: "'Alexander Motin'" , "'Andriy Gapon'" References: <505DE566.2080307@FreeBSD.org> <505F01B2.3080709@FreeBSD.org> In-Reply-To: <505F01B2.3080709@FreeBSD.org> Date: Mon, 24 Sep 2012 13:39:06 -0700 Message-ID: <187201cd9a94$a4f0e360$eed2aa20$@freebsd.org> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Mailer: Microsoft Outlook 14.0 Thread-Index: AQImCUAFrw21aQP/w38sDIsucXrxhAKCRju4ltUDHTA= Content-Language: en-us X-Originating-IP: [10.14.152.52] X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10432:5.7.7855, 1.0.431, 0.0.0000 definitions=2012-09-24_04:2012-09-24, 2012-09-24, 1970-01-01 signatures=0 Cc: freebsd-fs@FreeBSD.org, Devin Teske Subject: RE: lszfs command for loader X-BeenThere: freebsd-fs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Filesystems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 24 Sep 2012 20:39:37 -0000 > -----Original Message----- > From: owner-freebsd-fs@freebsd.org [mailto:owner-freebsd-fs@freebsd.org] > On Behalf Of Alexander Motin > Sent: Sunday, September 23, 2012 5:34 AM > To: Andriy Gapon > Cc: freebsd-fs@FreeBSD.org > Subject: Re: lszfs command for loader > > On 22.09.2012 19:20, Andriy Gapon wrote: > > Please find a patch that implements lszfs loader command. > > The command can list child filesystems of a specified filesystem (including root > > dataset). > > The command is really simplistic, a list goes directly to console, so there is > > no filtering of hidden filesystem names etc. > > > > The command is intended to facilitate recovery on systems that use "Boot > > Environments" approach for boot/root filesystem. > > > > http://people.freebsd.org/~avg/lszfs.diff > > That is good for the beginning, but I believe it is not right to add > ZFS-specific commands when it is possible to avoid it. I would prefer to > see lsdev report ZFS file systems same as it reports disk partitions or > ZFS pools. I am going to work in that part. Also I would like to see > lsdev output refactored to be formal enough to use these data in loader > menu. After some look on forth code I see no big problem to pass data > there. All we need to do is to extend device API of libstand with some > method replacing dv_print() with something more alike to readdir(). > As avg and mav already know, I'm working on my next major enhancement to the aforementioned Forth code, this time adding support for submenus and dynamically initializing menuitems. I'm slowly feeding test-code to avg for these enhancements. Please note that I am not on -fs so any work in this area, I would appreciate a CC so that I'm kept in the loop. -- Devin _____________ The information contained in this message is proprietary and/or confidential. If you are not the intended recipient, please: (i) delete the message and all copies; (ii) do not disclose, distribute or use the message in any manner; and (iii) notify the sender immediately. In addition, please be aware that any message addressed to our domain is subject to archiving and review by persons other than the intended recipient. Thank you.