From owner-freebsd-stable@freebsd.org Thu Apr 11 04:51:45 2019 Return-Path: Delivered-To: freebsd-stable@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 7AD2C1578FB8 for ; Thu, 11 Apr 2019 04:51:45 +0000 (UTC) (envelope-from wlosh@bsdimp.com) Received: from mail-qt1-x82c.google.com (mail-qt1-x82c.google.com [IPv6:2607:f8b0:4864:20::82c]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "GTS CA 1O1" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 0AA457536B for ; Thu, 11 Apr 2019 04:51:44 +0000 (UTC) (envelope-from wlosh@bsdimp.com) Received: by mail-qt1-x82c.google.com with SMTP id z17so5596752qts.13 for ; Wed, 10 Apr 2019 21:51:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bsdimp-com.20150623.gappssmtp.com; s=20150623; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=pZiIsZvM1IuWmdSwoRf/+2NbbMbkn1ZNHH+KV7m7oiU=; b=ANOsedlzLJdgsatRPtuUlXNczMP7uoOa9nc1W2iW9m6k/UTXWW8q0T78taJpDzZ8fI WAvILcGNwC3KdvB92BYGArEoayCdaGmlRZeKKElQ/WqeZC6bp0IHoBKf4MMh59IMGmKh v4eEXjxaDi83Va6/t68QVCS/1mjeKpCcLCgTXjwtNZNlxxtNhnUbrS/s60ucH4OQavdq 7+500YuFG5y0SBiYU0kqLfYR1U1bi1UbE8ry98aswucaQDieYgoZ7chSJPpbAOUmGP2Z +oLaweI+i3cJTGGHC200/8dLc1v+QJ064/UHa85IyRR3FDRvXWjuZqM4E+6AjdyM2ajd yuiA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=pZiIsZvM1IuWmdSwoRf/+2NbbMbkn1ZNHH+KV7m7oiU=; b=YelMR2UyITchsFXw+C6DuzCVMi8IzVaHBbXQYnWe5J3renq72h6OxTXqYrsxPrx6ZW xhggAboEA3n4kbI4i1Hz2mxFFM7S3blwDjMVIXUAs/1mAl30jWgXyytlbRwBjhCguPwO DNyolH2s3QU4d5LY+tkeJLP43zMc57NzB2tljBnQI6+ao1JhHlnb+1epNYHOcecPloRW lBJNMHPBCmTnTyFCwPibMS0KQ0Vd2VV+qqg9H8PGEo//zWm4Dk7FpvdzOmtzzLlX8ZSB Z6RRqtt6iif94RKJL3bO4UB/xdbYToKMqlRUbwN0X/wQ/VCAXtK1T9ryyOO/Vgt8jFAA ntzA== X-Gm-Message-State: APjAAAUAVkLCDtKM3u6uYYVgB7wr461b7Yv/SJ3yHXEwCZLtWILpeA61 BoL82oDUobeVoHYqU+EcE4+a7sHtWhtZ2RcXKZqtXTo7 X-Google-Smtp-Source: APXvYqwdi1/CAhIj0J9DmnPI7LGZidyG2sSOSNSlrrc3X3VMYzyMronRSZrCjwATvmgozKBFp+Mi6sh34VVyexnKl74= X-Received: by 2002:aed:3f51:: with SMTP id q17mr38036680qtf.346.1554958304399; Wed, 10 Apr 2019 21:51:44 -0700 (PDT) MIME-Version: 1.0 References: <201904110347.x3B3lhpA034197@donotpassgo.dyslexicfish.net> <20190411043620.GA87473@x2.osted.lan> <5caec650.75986.3515f2a1@catflap.dyslexicfish.net> In-Reply-To: <5caec650.75986.3515f2a1@catflap.dyslexicfish.net> From: Warner Losh Date: Wed, 10 Apr 2019 22:51:32 -0600 Message-ID: Subject: Re: Replicable file-system corruption due to fsck/ufs To: jamie@catflap.dyslexicfish.net Cc: Peter Holm , jamie@catflap.org, Kirk McKusick , FreeBSD-STABLE Mailing List X-Rspamd-Queue-Id: 0AA457536B X-Spamd-Bar: ------ Authentication-Results: mx1.freebsd.org X-Spamd-Result: default: False [-6.96 / 15.00]; NEURAL_HAM_MEDIUM(-1.00)[-0.999,0]; NEURAL_HAM_SHORT(-0.96)[-0.961,0]; REPLY(-4.00)[]; NEURAL_HAM_LONG(-1.00)[-1.000,0] Content-Type: text/plain; charset="UTF-8" X-Content-Filtered-By: Mailman/MimeDel 2.1.29 X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 11 Apr 2019 04:51:45 -0000 On Wed, Apr 10, 2019 at 10:46 PM wrote: > Peter Holm wrote: > > > I see this even with a single truncate on HEAD. > > > > $ ./truncate10.sh > > 96 -rw-r--r-- 1 root wheel 1073741824 11 apr. 06:33 test > > ** /dev/md10a > > ** Last Mounted on /mnt > > ** Phase 1 - Check Blocks and Sizes > > INODE 3: FILE SIZE 1073741824 BEYOND END OF ALLOCATED FILE, SIZE SHOULD > BE 268435456 > > ADJUST? yes > > Thanks.. I should have tested that myself.. doh! I was trying to closer > replicate > my real file that triggered the problem which contained a number of sparse > areas. > > And thanks for adding Kirk to the discussion. I wanted to first be sure it > wasn't > just me :-) > I believe that this was added recently to detect corruption that happens when a file is being appended when the system crashes. Warner