From owner-freebsd-geom@FreeBSD.ORG Mon Apr 27 16:33:17 2009 Return-Path: Delivered-To: freebsd-geom@FreeBSD.ORG Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id DA2B8106564A; Mon, 27 Apr 2009 16:33:17 +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 ECF3F8FC22; Mon, 27 Apr 2009 16:33:16 +0000 (UTC) (envelope-from avg@icyb.net.ua) Received: from odyssey.starpoint.kiev.ua (alpha-e.starpoint.kiev.ua [212.40.38.101]) by citadel.icyb.net.ua (8.8.8p3/ICyb-2.3exp) with ESMTP id TAA14162; Mon, 27 Apr 2009 19:33:15 +0300 (EEST) (envelope-from avg@icyb.net.ua) Message-ID: <49F5DE4B.2070702@icyb.net.ua> Date: Mon, 27 Apr 2009 19:33:15 +0300 From: Andriy Gapon User-Agent: Thunderbird 2.0.0.21 (X11/20090406) MIME-Version: 1.0 To: freebsd-stable@FreeBSD.ORG, freebsd-geom@FreeBSD.ORG X-Enigmail-Version: 0.95.7 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Cc: Subject: fsck, glabel and sudden paralellism X-BeenThere: freebsd-geom@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: GEOM-specific discussions and implementations List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 27 Apr 2009 16:33:18 -0000 So I recently switched one system to have only (g)labels instead of "raw" device names in fstab and noticed that now initial (preen) fsck is performed in parallel on couple of filesystems where before it used to be sequential. Here is a lengthy quote from fsck(8): > In preen mode, after pass 1 completes, all remaining file systems are > checked, in pass number order running one process per disk drive in par- > allel for each pass number in increasing order. > > In other words: In preen mode all pass 1 partitions are checked sequen- > tially. Next all pass 2 partitions are checked in parallel, one process > per disk drive. Next all pass 3 partitions are checked in parallel, one > process per disk drive. etc. > > The disk drive containing each file system is inferred from the shortest > prefix of the device name that ends in a digit; the remaining characters > are assumed to be the partition and slice designators. I think it is highly desirable that fsck knows which filesystems reside on the same disk regardless of how they are referred to. I think that the simple string matching described above is not sufficient these days. Is there an easy geom way to query this info? -- Andriy Gapon