From owner-svn-src-head@freebsd.org Wed Nov 15 21:13:41 2017 Return-Path: Delivered-To: svn-src-head@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 B2CE4DE774E; Wed, 15 Nov 2017 21:13:41 +0000 (UTC) (envelope-from freebsd@pdx.rh.CN85.dnsmgr.net) Received: from pdx.rh.CN85.dnsmgr.net (br1.CN84in.dnsmgr.net [69.59.192.140]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 76A367C23E; Wed, 15 Nov 2017 21:13:40 +0000 (UTC) (envelope-from freebsd@pdx.rh.CN85.dnsmgr.net) Received: from pdx.rh.CN85.dnsmgr.net (localhost [127.0.0.1]) by pdx.rh.CN85.dnsmgr.net (8.13.3/8.13.3) with ESMTP id vAFLDc0Z053120; Wed, 15 Nov 2017 13:13:38 -0800 (PST) (envelope-from freebsd@pdx.rh.CN85.dnsmgr.net) Received: (from freebsd@localhost) by pdx.rh.CN85.dnsmgr.net (8.13.3/8.13.3/Submit) id vAFLDcSJ053119; Wed, 15 Nov 2017 13:13:38 -0800 (PST) (envelope-from freebsd) From: "Rodney W. Grimes" Message-Id: <201711152113.vAFLDcSJ053119@pdx.rh.CN85.dnsmgr.net> Subject: Re: svn commit: r325860 - head/sbin/newfs In-Reply-To: To: Warner Losh Date: Wed, 15 Nov 2017 13:13:38 -0800 (PST) CC: "Rodney W. Grimes" , Ed Maste , src-committers , svn-src-all@freebsd.org, svn-src-head@freebsd.org Reply-To: rgrimes@freebsd.org X-Mailer: ELM [version 2.4ME+ PL121h (25)] MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=US-ASCII X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 15 Nov 2017 21:13:41 -0000 [ Charset UTF-8 unsupported, converting... ] > On Nov 15, 2017 1:51 PM, "Rodney W. Grimes" > wrote: > > [ Charset UTF-8 unsupported, converting... ] > > On Nov 15, 2017 11:47 AM, "Rodney W. Grimes" net> > > wrote: > > > > > Author: emaste > > > Date: Wed Nov 15 18:40:40 2017 > > > New Revision: 325860 > > > URL: https://svnweb.freebsd.org/changeset/base/325860 > > > > > > Log: > > > newfs: warn if newer than kernel > > > > > > Creating a UFS filesystem with a newfs newer than the running kernel, > > > and then mounting that filesystem, can lead to interesting failures. > > > > > > Add a safety belt to explicitly warn when newfs is newer than the > > > running kernel. > > > > You should probably make the warning if (newer || older) as > > either is likely to have interesting side effects, as are > > mounting ufs file systems on different versions. > > > > > > Not really. The cg stuff is really only a hassle for the case ed is > testing > > for. > > Its too late now, but if you take a newer ufs with the cg > stuff in them and mount it on an old system it politly well > corrupt the data that the newer kernel needs. So your right, > doing this check in newfs wont do anything, but I can tell > you this tiny little chain has been a PITA for people that > move HD around.... > > > Fsck automatically fixes issues like that. It recomputes the checksums. Yes, but you do not know that this is needed until AFTER you have mounted the "Clean" file system and started using it, and then you get some nasty messages (though they are a little better now than the original ones). So then you have to manually fire off a fsck on the volume... > > > *Sigh* why did not UFS grow a version number of its own > > when things started to change other than UFS1 vs UFS2. > > > > > > This isn't anything like those changes.. > > UFS changed in a way that makes it difficult to move > UFS drives accross systems that are at differing versions. > That IS bad no mater how you slice it. I now have to make > sure I fsck a drive when moving it from an old to new > system to get the cg checksum stuff fixed. > > > Except it isn't as bad as you say. It is a distracting PITA, you probably dont move a UFS formatted flash drive around between as many differing systems as I do. Oh, and can you please get a mail client that does proper quoting? > Rod Grimes > rgrimes@freebsd.org -- Rod Grimes rgrimes@freebsd.org