Date: Sun, 23 Sep 2012 15:33:54 +0300 From: Alexander Motin <mav@FreeBSD.org> To: Andriy Gapon <avg@FreeBSD.org> Cc: freebsd-fs@FreeBSD.org Subject: Re: lszfs command for loader Message-ID: <505F01B2.3080709@FreeBSD.org> In-Reply-To: <505DE566.2080307@FreeBSD.org> References: <505DE566.2080307@FreeBSD.org>
next in thread | previous in thread | raw e-mail | index | archive | help
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(). -- Alexander Motin
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?505F01B2.3080709>