Received: by 2002:a05:6358:45e:b0:b5:b6eb:e1f9 with SMTP id 30csp1117612rwe; Sat, 27 Aug 2022 00:47:00 -0700 (PDT) X-Google-Smtp-Source: AA6agR45VQYmLRDhcQ/XNIIPsmP2btr5quNhJ8a+CcZ1VJlLsUKwLYaQkqwTvFqlGIMKi0WObMiQ X-Received: by 2002:a05:6402:1c95:b0:447:ee9d:ef3d with SMTP id cy21-20020a0564021c9500b00447ee9def3dmr4476207edb.88.1661586420209; Sat, 27 Aug 2022 00:47:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1661586420; cv=none; d=google.com; s=arc-20160816; b=sYfB782NYRNQDC/R99ctZMFyvyAoWjCskcRNvSIwqSXkau9ydAMD/3Og7F/giORySy it5JVWaRBiJb+31CyGj4DHkrQZZhUSTE8jkiK2xxmkCZoGuDSKSX13Onavvz+cgFd5+T 33GUkMDn4BSlXsg2xAq6eqSEtx/+ADtf4/h1Nc8LMoRlXdyE/2lTWVBouCsPwSMA86BY W514Cyh/EejGOXewS7bkEaE9LOuAqNWRAN06jqKg2m7CJavg1tCCQp6+BNhzcvmsnGK2 RWY+L7tPI1biDjoTSkHeLxk4OjW/K7Vtcs05kVxNHBji5wLAjGwoh3BGHoYHp381l4Xs 4B9A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=Vljux/uUXFCMrLchDFA4Fs2NnumTaEG6Ppk5LIvnYh8=; b=G0757q3JDbSnTo42BB/DvQ82RCGtK/KVmxHnm/TBflBMned2FCj7StrVPRR+uO8/1o sDyGMXInEiGsAza1+pJ6n/1HvQInleE0ijrJnP2wI3yhhn84MG7Bu6bYB/Z1hBnHgdjj Lq/smWWL1BY9Ehpb7VQiWDfRLiA8GnImquQ8WELgiVfmL/UmrVmI+9DLoy2TFQhKOMwd abUhCG4eDdFnSNT63T8MShWnjYf9cTESMnKNEhQ09NyErADqpY/E27E1zgmaus3tEckj tX7YMQIbXVgk+z1jqF3+6F2iC3ZzzBqkgi5PCCeKWSAgL0JfRkscxHlCDRUZejLBwttE AbuQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=N8Y9W1Ie; spf=pass (google.com: domain of linux-nfs-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-nfs-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id g2-20020a1709061e0200b0072ab4e654basi2319122ejj.707.2022.08.27.00.46.35; Sat, 27 Aug 2022 00:47:00 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-nfs-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=N8Y9W1Ie; spf=pass (google.com: domain of linux-nfs-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-nfs-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234579AbiH0HiI (ORCPT + 99 others); Sat, 27 Aug 2022 03:38:08 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43316 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233059AbiH0HiH (ORCPT ); Sat, 27 Aug 2022 03:38:07 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id EB866BE4F9; Sat, 27 Aug 2022 00:38:05 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 919FE6124B; Sat, 27 Aug 2022 07:38:05 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 7E3BFC433D6; Sat, 27 Aug 2022 07:38:04 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1661585885; bh=GrLWDELw8iNQBvqWXRuHF3mbjI0n7VONQg20yLpPTJQ=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=N8Y9W1IeIRXUWuiRhDe4zsq0+Lx90n+UBgJaf5l/k6EqIHLSaHo3X5w33v8O50NKQ uGYClNDLZB3iFyzjkcmSIYsULUIcmUqlkUYqGMn7g3nia+uPEmABSzOXSkrcx7NlA4 5EEbKGiH+z9twqLKry4/Z8ds3s0wlNs+/oEw1AHc= Date: Sat, 27 Aug 2022 09:38:18 +0200 From: Greg KH To: Colin Walters Cc: Dave Chinner , Jeff Layton , Al Viro , linux-api@vger.kernel.org, linux-fsdevel@vger.kernel.org, linux-nfs@vger.kernel.org, Jeff Layton , David Howells , Frank Filz Subject: Re: [PATCH] vfs: report an inode version in statx for IS_I_VERSION inodes Message-ID: References: <20220819115641.14744-1-jlayton@kernel.org> <20220823215333.GC3144495@dread.disaster.area> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-nfs@vger.kernel.org On Thu, Aug 25, 2022 at 02:48:02PM -0400, Colin Walters wrote: > > > On Tue, Aug 23, 2022, at 5:53 PM, Dave Chinner wrote: > > > > THere's no definition of what consitutes an "inode change" and this > > exposes internal filesystem implementation details (i.e. on disk > > format behaviour) directly to userspace. That means when the > > internal filesystem behaviour changes, userspace applications will > > see changes in stat->ino_version changes and potentially break them. > > As a userspace developer (ostree, etc. who is definitely interested in this functionality) I do agree with this concern; but a random drive by comment: would it be helpful to expose iversion (or other bits like this from the vfs) via e.g. debugfs to start? I think that'd unblock writing fstests in the short term right? > > This would not work at all for "virtual" filesystems like debugfs and sysfs which only create the data when the file is read, and there's no way to know if the data is going to be different than the last time it was read, sorry. greg k-h