From owner-freebsd-fs@FreeBSD.ORG Wed Apr 22 13:42:07 2009 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 E3A611065670 for ; Wed, 22 Apr 2009 13:42:07 +0000 (UTC) (envelope-from ivoras@gmail.com) Received: from ey-out-2122.google.com (ey-out-2122.google.com [74.125.78.24]) by mx1.freebsd.org (Postfix) with ESMTP id 70BA68FC0C for ; Wed, 22 Apr 2009 13:42:07 +0000 (UTC) (envelope-from ivoras@gmail.com) Received: by ey-out-2122.google.com with SMTP id 9so303319eyd.7 for ; Wed, 22 Apr 2009 06:42:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:sender:received:in-reply-to :references:from:date:x-google-sender-auth:message-id:subject:to:cc :content-type:content-transfer-encoding; bh=xpPRKSITVOHFx5Gg9bDt58FNZRWGTKOTE3c8klchZL8=; b=A6ulE6GMtWGhxHivqBd6ESsSjqP2zFIFwcOgw2vrm7jyeDXgWhSXxFJOjKWvxsfWiu meB6XS7bag9bduS3QQ1qzCC9TkLxAqRKF72fldMa8gDJ1ZTpwNKVF271FYmp6Xc87vIi K5YbVRiAJZ8DLDcByVFEClbL/Mp4A9cGbL+Wk= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:sender:in-reply-to:references:from:date :x-google-sender-auth:message-id:subject:to:cc:content-type :content-transfer-encoding; b=HvzJpXRLMNNX4I4ToswzW+aRUPFYDZZH7edtZnrl0aTtvqQ2xewG6mq0/E3ZbXB1HS ht5lvKUFBDKSz3hWZZEGHOxeFGHGIED5TWdexwiYLWAhH5ygRjYa/JT7co0Syop8cep1 at45R+wCO1iJgfT0NHZsFT2v7/4w3dXDitGWc= MIME-Version: 1.0 Sender: ivoras@gmail.com Received: by 10.210.41.14 with SMTP id o14mr6284413ebo.8.1240405958172; Wed, 22 Apr 2009 06:12:38 -0700 (PDT) In-Reply-To: <49EF1766.7030401@icyb.net.ua> References: <49EDCA21.70908@icyb.net.ua> <49EDF80F.3070105@icyb.net.ua> <49EF1645.70704@icyb.net.ua> <9bbcef730904220608y73cbf2d2s6921b05c1978a121@mail.gmail.com> <49EF1766.7030401@icyb.net.ua> From: Ivan Voras Date: Wed, 22 Apr 2009 15:12:23 +0200 X-Google-Sender-Auth: 577018fd55468fc8 Message-ID: <9bbcef730904220612s3ff4308fpc1d18e216a5c7773@mail.gmail.com> To: Andriy Gapon Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Cc: freebsd-fs@freebsd.org, freebsd-geom@freebsd.org Subject: Re: glabel for ufs: size check is overzealous? 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: Wed, 22 Apr 2009 13:42:08 -0000 2009/4/22 Andriy Gapon : > on 22/04/2009 16:08 Ivan Voras said the following: >> 2009/4/22 Andriy Gapon : >>> on 21/04/2009 21:43 Ivan Voras said the following: >>>> Andriy Gapon wrote: >>>>> I don't see why it should and - no, it actually does not. >>>>> fsck checks only filesystem's internal consistency, it doesn't check media size, etc. >>>> Well yes, if the number of blocks is really incorrect it should be >>>> visible from the arrangement of the metadata but still - that makes the >>>> field almost useless doesn't it? >>> How do you mean? >>> The field tells the filesystem size, how it can be useless? >> >> If nothing checks it and everything works, I'd say it's usefulness is >> a bit limited... > > ufs driver doesn't check it, the driver *uses* it, so... :-) But as you said, fsck will not fix an invalid value?