From owner-freebsd-fs@FreeBSD.ORG Sat Sep 22 16:28:09 2012 Return-Path: Delivered-To: freebsd-fs@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 5194A106564A; Sat, 22 Sep 2012 16:28:09 +0000 (UTC) (envelope-from avg@FreeBSD.org) Received: from citadel.icyb.net.ua (citadel.icyb.net.ua [212.40.38.140]) by mx1.freebsd.org (Postfix) with ESMTP id 1B2998FC08; Sat, 22 Sep 2012 16:28:07 +0000 (UTC) Received: from porto.starpoint.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 TAA07410; Sat, 22 Sep 2012 19:28:06 +0300 (EEST) (envelope-from avg@FreeBSD.org) Received: from localhost ([127.0.0.1]) by porto.starpoint.kiev.ua with esmtp (Exim 4.34 (FreeBSD)) id 1TFSYo-000NTB-7M; Sat, 22 Sep 2012 19:28:06 +0300 Message-ID: <505DE715.8020806@FreeBSD.org> Date: Sat, 22 Sep 2012 19:28:05 +0300 From: Andriy Gapon User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:15.0) Gecko/20120913 Thunderbird/15.0.1 MIME-Version: 1.0 To: freebsd-fs@FreeBSD.org X-Enigmail-Version: 1.4.3 Content-Type: text/plain; charset=X-VIET-VPS Content-Transfer-Encoding: 7bit Cc: Subject: zfs: allow to mount root from a pool not in zpool.cache 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: Sat, 22 Sep 2012 16:28:09 -0000 Currently FreeBSD ZFS kernel code doesn't allow to mount root filesystem on a pool that is not listed in zpool.cache as only pools from the cache are known to ZFS at that time. This patch is an attempt to improve the behavior: http://people.freebsd.org/~avg/spa_import_rootpool.diff This could be useful when importing pools that were exported from other systems. There is a tunable vfs.zfs.rootpool.prefer_cached_config which is set to 1 by default. 1 means just use a cached pool config if it's found in the cache, 0 means to re-probe disks and read supposedly latest/actual config in any case. -- Andriy Gapon