From owner-freebsd-geom@FreeBSD.ORG Tue Apr 21 13:29:09 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 0CF54106566B for ; Tue, 21 Apr 2009 13:29:09 +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 316898FC14 for ; Tue, 21 Apr 2009 13:29:07 +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 QAA14519 for ; Tue, 21 Apr 2009 16:29:05 +0300 (EEST) (envelope-from avg@icyb.net.ua) Message-ID: <49EDCA21.70908@icyb.net.ua> Date: Tue, 21 Apr 2009 16:29:05 +0300 From: Andriy Gapon User-Agent: Thunderbird 2.0.0.21 (X11/20090406) MIME-Version: 1.0 To: freebsd-geom@freebsd.org X-Enigmail-Version: 0.95.7 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Subject: glabel for ufs: size check is overzealous? 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: Tue, 21 Apr 2009 13:29:09 -0000 glabel insists that for UFS2 the following must hold true: pp->mediasize / fs->fs_fsize == fs->fs_size But in reality it doesn't have to be this way, there can be valid reasons to make filesystem smaller than available raw media size. I understand that this is a good sanity check, but maybe there are other ways to extra-check that we see a proper superblock, without imposing the limitation in question. -- Andriy Gapon