From owner-freebsd-fs@FreeBSD.ORG Sun Jul 25 17:49:47 2010 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 4A40F106566C for ; Sun, 25 Jul 2010 17:49:47 +0000 (UTC) (envelope-from avg@icyb.net.ua) Received: from citadel.icyb.net.ua (citadel.icyb.net.ua [212.40.38.140]) by mx1.freebsd.org (Postfix) with ESMTP id 9E4EE8FC0A for ; Sun, 25 Jul 2010 17:49:46 +0000 (UTC) Received: from porto.topspin.kiev.ua (porto-e.starpoint.kiev.ua [212.40.38.100]) by citadel.icyb.net.ua (8.8.8p3/ICyb-2.3exp) with ESMTP id UAA07248; Sun, 25 Jul 2010 20:49:43 +0300 (EEST) (envelope-from avg@icyb.net.ua) Received: from localhost.topspin.kiev.ua ([127.0.0.1]) by porto.topspin.kiev.ua with esmtp (Exim 4.34 (FreeBSD)) id 1Od5KZ-000DPR-5e; Sun, 25 Jul 2010 20:49:43 +0300 Message-ID: <4C4C7936.4040109@icyb.net.ua> Date: Sun, 25 Jul 2010 20:49:42 +0300 From: Andriy Gapon User-Agent: Thunderbird 2.0.0.24 (X11/20100603) MIME-Version: 1.0 To: Olivier Smedts References: <4C4C15DE.1030802@icyb.net.ua> In-Reply-To: X-Enigmail-Version: 0.96.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: freebsd-fs@freebsd.org Subject: Re: zfs loader: allow access to any filesystem in a pool 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: Sun, 25 Jul 2010 17:49:47 -0000 on 25/07/2010 19:51 Olivier Smedts said the following: > 2010/7/25 Andriy Gapon : >> This is a ZFS boot patch that I would like to present you for review and testing: >> http://people.freebsd.org/~avg/zfsboot.diff >> >> Currently in zfsloader you can only switch between pools, but you can only >> access one predetermined filesystem within a pool - wither root dataset of a >> pool or a filesystem pointed to by bootfs pool property. >> With this patch it is possible to access any filesystem in a pool and, thus, to >> boot kernel and modules from an alternative filesystem. This is another >> stepping stone in so called Boot Environments support. >> >> An example. >> You can boot kernel from a different filesystem by doing the following at the >> loader prompt: >> set currdev=zfs:tank/some/fs: > > Can you specify a snapshot ? For example > set currdev=zfs:tank/rootfs@20100722: > > I never tried this, but it would be really great in case of a broken > kernel/world. Potentially there is nothing preventing a snapshot to be used as a boot dataset. But I have not implemented this. -- Andriy Gapon