From owner-freebsd-fs@freebsd.org Sat Apr 9 13:28:36 2016 Return-Path: Delivered-To: freebsd-fs@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id B21D5B09CBC for ; Sat, 9 Apr 2016 13:28:36 +0000 (UTC) (envelope-from avg@FreeBSD.org) Received: from citapm.icyb.net.ua (citapm.icyb.net.ua [212.40.38.140]) by mx1.freebsd.org (Postfix) with ESMTP id 19A471278; Sat, 9 Apr 2016 13:28:34 +0000 (UTC) (envelope-from avg@FreeBSD.org) Received: from porto.starpoint.kiev.ua (porto-e.starpoint.kiev.ua [212.40.38.100]) by citapm.icyb.net.ua (8.8.8p3/ICyb-2.3exp) with ESMTP id QAA12677; Sat, 09 Apr 2016 16:28:33 +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 1aoswD-000FBZ-4r; Sat, 09 Apr 2016 16:28:33 +0300 To: freebsd-fs Cc: Will Andrews , Pawel Jakub Dawidek , Alexander Motin From: Andriy Gapon Subject: zfs: re-use of geom consumer in vdev_geom Message-ID: <57090349.6040206@FreeBSD.org> Date: Sat, 9 Apr 2016 16:27:37 +0300 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:38.0) Gecko/20100101 Thunderbird/38.7.1 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-fs@freebsd.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: Filesystems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 09 Apr 2016 13:28:36 -0000 Does anyone know why we re-use GEOM consumers in vdev_geom? I mean, it seems that multiple ZFS vdevs could be using the same consumer attached to a particular provider. When is this needed? Couldn't every vdev have its won consumer? Do we have situations where more than vdev would use the same provider in the read-write mode? Or one vdev would want the read-write mode while another would have it in read-only mode? Thank you. -- Andriy Gapon