Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp499551pxb; Thu, 21 Jan 2021 12:11:45 -0800 (PST) X-Google-Smtp-Source: ABdhPJyHf9XCW88BJ9infVrf+S7arOK3tl1nx/tNASZaoNK5z0X9gWQ3WII0x5NlZVe66BYmkuna X-Received: by 2002:a17:907:16a2:: with SMTP id hc34mr794835ejc.9.1611259904843; Thu, 21 Jan 2021 12:11:44 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1611259904; cv=none; d=google.com; s=arc-20160816; b=D9aCBq4cEBUSOLyfciQtjujkdtA0QeoCGdYDl0kihwND0H8lCtIXMWw8WCAz9OOn56 VtQTyOxjO8Ap9f+s6a0+EVgO9omCILhyz2B73snYa8+0ZVuuFEyf6NYPW3ZalzAUdChI FN8iDujFZ5d5fe9ozKxMH6hwFqhtOaxfD5HPR6aXFkOGDtJT38uq2JoaxqVvrCGxjBMS JyBsP5xxlr04s4qLdl+Ai3F1Az58lMQ/0Squ0mkMeqEKdkGiA5q9zJg/m4iGUKcslyPR H5mIRnbjGF02EBtEYzg9pefqvLW6Kdc5N4h1Q2uXADzRoA4yJhlgaF4Ge+6jYADiYxtU oQ7g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:message-id:date:content-transfer-encoding :content-id:mime-version:subject:cc:to:references:in-reply-to:from :organization:dkim-signature; bh=gVx+gkEsYNOgT30sFBYpj+A2NREDHbQJA4mbAzV8q/8=; b=dp4hOtjMf5sJM8bPIMZE5UPU8Crd5UKJVT601hVOYGP5AwsQsUiACjSSU5flCPpHT/ igMda/oKC/AjjGFZsWDTgLA7wPNzCn+YHO7cq+WrqjPYbGFRCQ2qnuNMeA8k6/lhrhRn 8Gx/Pw3foPjgyTlOclxaTrCZT5HFaSGVjnWkFEIJQY8uURb2/X/lCGfU5YJ9ixW0CJOT wC0Y9zhqH6q8lsnZ92b9o022SKRPpyclFrAVWmc7854vQ2CUccB5c/cNk/pRNkjhP1yK jZPzO3bxeKWV4bAht+dnZtz4dSgdt9X6vPY4WQI39tjHjm+B2HnJnMRGCXBl6ZIjeqOz BvWw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=U0BBYId+; spf=pass (google.com: domain of linux-nfs-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-nfs-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id e5si2746771edy.556.2021.01.21.12.11.21; Thu, 21 Jan 2021 12:11:44 -0800 (PST) Received-SPF: pass (google.com: domain of linux-nfs-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=U0BBYId+; spf=pass (google.com: domain of linux-nfs-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-nfs-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727064AbhAUULA (ORCPT + 99 others); Thu, 21 Jan 2021 15:11:00 -0500 Received: from us-smtp-delivery-124.mimecast.com ([63.128.21.124]:56657 "EHLO us-smtp-delivery-124.mimecast.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726998AbhAUUKD (ORCPT ); Thu, 21 Jan 2021 15:10:03 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1611259716; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=gVx+gkEsYNOgT30sFBYpj+A2NREDHbQJA4mbAzV8q/8=; b=U0BBYId+6evNhWZ7QaWUJNEGzdpwlA8v34/S/fRvGfdD61dSbSSamwfN9TtcJOgHbqZdBD jSSIyQ2i3UOHRetPxp8dgjMCApi3S4grks0th9KSARgFrH9rkdhDpeuSPY4QkezwwChzzc OrymBGoIDyUia2Sq8nh1KCA/FgTuWWc= Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-150-4DhkOkagMbGcw0RHcFnQ4g-1; Thu, 21 Jan 2021 15:08:34 -0500 X-MC-Unique: 4DhkOkagMbGcw0RHcFnQ4g-1 Received: from smtp.corp.redhat.com (int-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.11]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 4E3B6180A094; Thu, 21 Jan 2021 20:08:32 +0000 (UTC) Received: from warthog.procyon.org.uk (ovpn-115-23.rdu2.redhat.com [10.10.115.23]) by smtp.corp.redhat.com (Postfix) with ESMTP id D670150DD2; Thu, 21 Jan 2021 20:08:24 +0000 (UTC) Organization: Red Hat UK Ltd. Registered Address: Red Hat UK Ltd, Amberley Place, 107-111 Peascod Street, Windsor, Berkshire, SI4 1TE, United Kingdom. Registered in England and Wales under Company Registration No. 3798903 From: David Howells In-Reply-To: <20210121190937.GE20964@fieldses.org> References: <20210121190937.GE20964@fieldses.org> <20210121174306.GB20964@fieldses.org> <20210121164645.GA20964@fieldses.org> <161118128472.1232039.11746799833066425131.stgit@warthog.procyon.org.uk> <1794286.1611248577@warthog.procyon.org.uk> <1851804.1611255313@warthog.procyon.org.uk> To: "J. Bruce Fields" Cc: dhowells@redhat.com, Trond Myklebust , Anna Schumaker , Steve French , Dominique Martinet , Takashi Iwai , Matthew Wilcox , linux-afs@lists.infradead.org, Jeff Layton , David Wysochanski , Alexander Viro , linux-cachefs@redhat.com, linux-nfs@vger.kernel.org, linux-cifs@vger.kernel.org, ceph-devel@vger.kernel.org, v9fs-developer@lists.sourceforge.net, linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [RFC][PATCH 00/25] Network fs helper library & fscache kiocb API MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <1856290.1611259704.1@warthog.procyon.org.uk> Content-Transfer-Encoding: quoted-printable Date: Thu, 21 Jan 2021 20:08:24 +0000 Message-ID: <1856291.1611259704@warthog.procyon.org.uk> X-Scanned-By: MIMEDefang 2.79 on 10.5.11.11 Precedence: bulk List-ID: X-Mailing-List: linux-nfs@vger.kernel.org J. Bruce Fields wrote: > > J. Bruce Fields wrote: > > = > > > > Fixing this requires a much bigger overhaul of cachefiles than thi= s patchset > > > > performs. > > > = > > > That sounds like "sometimes you may get file corruption and there's > > > nothing you can do about it". But I know people actually use fscach= e, > > > so it must be reliable at least for some use cases. > > = > > Yes. That's true for the upstream code because that uses bmap. > = > Sorry, when you say "that's true", what part are you referring to? Sometimes, theoretically, you may get file corruption due to this. > > I'm switching > > to use SEEK_HOLE/SEEK_DATA to get rid of the bmap usage, but it doesn'= t change > > the issue. > > = > > > Is it that those "bridging" blocks only show up in certain corner ca= ses > > > that users can arrange to avoid? Or that it's OK as long as you use > > > certain specific file systems whose behavior goes beyond what's > > > technically required by the bamp or seek interfaces? > > = > > That's a question for the xfs, ext4 and btrfs maintainers, and may var= y > > between kernel versions and fsck or filesystem packing utility version= s. > = > So, I'm still confused: there must be some case where we know fscache > actually works reliably and doesn't corrupt your data, right? Using ext2/3, for example. I don't know under what circumstances xfs, ext= 4 and btrfs might insert/remove blocks of zeros, but I'm told it can happen. David