From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from zeniv.linux.org.uk ([195.92.253.2]:55698 "EHLO ZenIV.linux.org.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751433AbdFHCVA (ORCPT ); Wed, 7 Jun 2017 22:21:00 -0400 Date: Thu, 8 Jun 2017 03:20:57 +0100 From: Al Viro To: Richard Narron Cc: Linus Torvalds , Will B , linux-fsdevel , Evgeniy Dushistov Subject: Re: UFS s_maxbytes bogosity Message-ID: <20170608022057.GX6365@ZenIV.linux.org.uk> References: <20170604213736.GM6365@ZenIV.linux.org.uk> <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> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Sender: linux-fsdevel-owner@vger.kernel.org List-ID: On Wed, Jun 07, 2017 at 05:35:31PM -0700, Richard Narron wrote: > I am willing to test. I just turned on UFS_FS_WRITE for the very first time > running 4.12-rc4 and was able to copy a file of more than 2GB from one r/o > FreeBSD subpartition to another r/w FreeBSD subpartition. > > So it is already looking pretty good. The nasty cases are around short files, especially short files with holes. Linear writes as done by cp(1) will do nothing worse than bogus i_blocks (and possibly mangled counters in cylinder groups). Random write access to short files, OTOH, steps into a lot more codepaths... As for ->i_blocks, it triggers this: root@kvm1:/mnt# df .; mkdir a; rmdir a; df . Filesystem 1K-blocks Used Available Use% Mounted on /dev/loop0 507420 4504 462340 1% /mnt Filesystem 1K-blocks Used Available Use% Mounted on /dev/loop0 507420 4536 462308 1% /mnt Note the 32Kb (== one block on that ufs2) leaked here. Every iteration will leak another one. Similar for long symlinks...