Return-Path: Received: from mail-pg0-f65.google.com ([74.125.83.65]:32848 "EHLO mail-pg0-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751729AbdFJAJU (ORCPT ); Fri, 9 Jun 2017 20:09:20 -0400 Received: by mail-pg0-f65.google.com with SMTP id a70so8925490pge.0 for ; Fri, 09 Jun 2017 17:09:20 -0700 (PDT) Date: Fri, 9 Jun 2017 17:09:14 -0700 (PDT) From: Richard Narron To: Al Viro cc: Linus Torvalds , Will B , linux-fsdevel , Evgeniy Dushistov Subject: Re: UFS s_maxbytes bogosity In-Reply-To: <20170609033526.GZ6365@ZenIV.linux.org.uk> Message-ID: References: <20170604215838.GA24416@ZenIV.linux.org.uk> <20170604220602.GN6365@ZenIV.linux.org.uk> <20170605001142.GP6365@ZenIV.linux.org.uk> <20170605034936.GQ6365@ZenIV.linux.org.uk> <20170607234837.GA20362@ZenIV.linux.org.uk> <20170608022057.GX6365@ZenIV.linux.org.uk> <20170609033526.GZ6365@ZenIV.linux.org.uk> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII; format=flowed Sender: linux-fsdevel-owner@vger.kernel.org List-ID: On Fri, 9 Jun 2017, Al Viro wrote: > On Thu, Jun 08, 2017 at 05:11:39PM -0700, Richard Narron wrote: > >> Test results don't look pretty on FreeBSD. (I will also test OpenBSD and >> NetBSD.) > > OK, here's the cumulative diff so far - easy-to-backport parts only; that'll > be split into 6 commits (plus whatever else gets added). It really needs > beating... On OpenBSD 6.1 (UFS-1) the "df ." test did not look so good before applying the cumulative diff: Linux 4.12-rc4: #mount -t ufs -o rw,ufstype=44bsd /dev/sda19 /diske #df . Filesystem 1K-blocks Used Available Use% Mounted on /dev/sda19 16511214 2 15685652 1% /diske #mkdir a #rmdir a #df . Filesystem 1K-blocks Used Available Use% Mounted on /dev/sda19 16511214 18 15685636 1% /diske OpenBSD 6.1: #fsck -f sd0e ** /dev/rsd0e (NO WRITE) ** File system is already clean ** Last Mounted on ** Phase 1 - Check Blocks and Sizes ** Phase 2 - Check Pathnames ** Phase 3 - Check Connectivity ** Phase 4 - Check Reference Counts ** Phase 5 - Check Cyl groups FREE BLK COUNT(S) WRONG IN SUPERBLK SALVAGE? no SUMMARY INFORMATION BAD SALVAGE? no BLK(S) MISSING IN BIT MAPS SALVAGE? no 1 files, 1 used, 8255598 free (14 frags, 1031948 blocks, 0.0% fragmentation) But after applying the accumulative diff patch set it looks great: Linux 4.12-rc4-viro-1: #mount -t ufs -o rw,ufstype=44bsd /dev/sda19 /diske #cd /diske #df . Filesystem 1K-blocks Used Available Use% Mounted on /dev/sda19 16511214 2 15685652 1% /diske #mkdir a #df . Filesystem 1K-blocks Used Available Use% Mounted on /dev/sda19 16511214 4 15685650 1% /diske #rmdir a #df . Filesystem 1K-blocks Used Available Use% Mounted on /dev/sda19 16511214 2 15685652 1% /diske OpenBSD 6.1: #fsck -f sd0e ** /dev/rsd0e ** File system is already clean ** Last Mounted on ** Phase 1 - Check Blocks and Sizes ** Phase 2 - Check Pathnames ** Phase 3 - Check Connectivity ** Phase 4 - Check Reference Counts ** Phase 5 - Check Cyl groups 1 files, 1 used, 8255606 free (14 frags, 1031949 blocks, 0.0% fragmentation)