Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp755250rwd; Thu, 25 May 2023 03:33:52 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ79NtDXfWFv2LF8SG9DJerFYJ7ldVdF5KvC1WoXZsmL3ABlyiSlOTZUBofE0aFzvADKeMpk X-Received: by 2002:a05:6a20:9f4f:b0:ff:1df3:51dd with SMTP id ml15-20020a056a209f4f00b000ff1df351ddmr18876452pzb.37.1685010831977; Thu, 25 May 2023 03:33:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1685010831; cv=none; d=google.com; s=arc-20160816; b=SHs25OFkPZYKXvYYMy9OoCppzW1/U2dc/DjxwI5xjtqupM/ldYw2mXROeC9RM//iEr Ad5ptf6NWID6B8gWNi/ppgd2oqhlvqLuyPW51NPaG1pFps0i9ODksQOgL/beac7U5FQ+ aPPPW1xIlhBau4OS00HeIupQPcasAgK4mdpRMshr6OcBmdN2kBF0N+fTclJ1XQqokEvU FCcOcTPctLyit0a6tkGSTbXfbbUDqfNpQlT/MRHTxYocDSTgF5Kbc5HhP+Umr1JlWvVW faNGQB7EZHPcMfFkYblvo7uisAII5948KfsDNyCqnsZWZz6HuAxgJk7jRK9WLPrHvfmO faHw== 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 :dkim-signature; bh=3hIZtE4x1k8MYWVrcf4QjNdzuAbiDSyu0f/OEGIARH4=; b=qD1btv97mtF9CKJDIORiYvhqbAlLIxawST8B9M/KtYDKoKnea/Ur8rFGE7SGuyo1im NmrmcMMyu7jQkrvmAKMHSCyU78dAHPhiNr7AMx0ZdfX93Yxgk+pMIhfRA31GEHb+Dc7e eIoh6ou+BlPjPSYbPBH2hMERWIDMb1oD1Rija/AeCNK3YkinRGTi/0NxWlxw0IIl/sip lk4fL9X8Sjo/ZbCZNUKs1AlPXRiAFS1A5s2rQ+zzVNKloltz9UILWRQAoXRvQLRvhEny 4iqEYGGUFLBm8sKaerLHWQBp0wLuouvcvpBuurGBr2NeCyC4R3H1X1V5UO8BBI4LfL+1 I3Fw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@suse.cz header.s=susede2_rsa header.b=xoLm0zYE; dkim=neutral (no key) header.i=@suse.cz header.s=susede2_ed25519 header.b=HEjQcVcp; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id p6-20020a639506000000b005304a8af2a2si800272pgd.404.2023.05.25.03.33.37; Thu, 25 May 2023 03:33:51 -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=@suse.cz header.s=susede2_rsa header.b=xoLm0zYE; dkim=neutral (no key) header.i=@suse.cz header.s=susede2_ed25519 header.b=HEjQcVcp; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S240515AbjEYKXy (ORCPT + 99 others); Thu, 25 May 2023 06:23:54 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56856 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234582AbjEYKXy (ORCPT ); Thu, 25 May 2023 06:23:54 -0400 Received: from smtp-out2.suse.de (smtp-out2.suse.de [IPv6:2001:67c:2178:6::1d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2B0B410B; Thu, 25 May 2023 03:23:53 -0700 (PDT) Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by smtp-out2.suse.de (Postfix) with ESMTPS id C61151FDA6; Thu, 25 May 2023 10:23:51 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.cz; s=susede2_rsa; t=1685010231; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=3hIZtE4x1k8MYWVrcf4QjNdzuAbiDSyu0f/OEGIARH4=; b=xoLm0zYEA80hsPEgqYGIP98R/Ve+K027+RCyGAoRoQdIl0RQH8AzxjR7KH6YcA6lveVFDW Inry46vUo1ZLY3hm+71Juq8yKbqSR1sgfmRcht2tR0nh334Hib4bDVrc1q2lTRsuemKzuk G87Y1HY/UGPJWhQUDbEdKwV75JQyKbw= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.cz; s=susede2_ed25519; t=1685010231; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=3hIZtE4x1k8MYWVrcf4QjNdzuAbiDSyu0f/OEGIARH4=; b=HEjQcVcpkomuBFVLKuqLCiQGqEqd4ocBlPzXgiwBDaQaFKkwuLVfp4sjIL0GKNsXGIQgNJ ZS5kkg+CP33EeMDg== Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by imap2.suse-dmz.suse.de (Postfix) with ESMTPS id 4379D134B2; Thu, 25 May 2023 10:23:51 +0000 (UTC) Received: from dovecot-director2.suse.de ([192.168.254.65]) by imap2.suse-dmz.suse.de with ESMTPSA id BlF1EDc3b2SFegAAMHmgww (envelope-from ); Thu, 25 May 2023 10:23:51 +0000 Received: by quack3.suse.cz (Postfix, from userid 1000) id BA989A075C; Thu, 25 May 2023 12:23:50 +0200 (CEST) Date: Thu, 25 May 2023 12:23:50 +0200 From: Jan Kara To: Dan Carpenter Cc: Jan Kara , Amir Goldstein , Jeff Layton , linux-fsdevel@vger.kernel.org, Chuck Lever , Linux NFS Mailing List Subject: Re: [bug report] fanotify: support reporting non-decodeable file handles Message-ID: <20230525102350.wb5nc6lqv56nyona@quack3> References: <20230524140648.u6pexxspze7pz63z@quack3> <080107ac-873c-41dc-b7c7-208970181c40@kili.mountain> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <080107ac-873c-41dc-b7c7-208970181c40@kili.mountain> X-Spam-Status: No, score=-3.7 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_NONE, SPF_SOFTFAIL,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED 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 25-05-23 07:46:22, Dan Carpenter wrote: > On Wed, May 24, 2023 at 04:06:48PM +0200, Jan Kara wrote: > > Yes, I've checked and all ->encode_fh() implementations return > > FILEID_INVALID in case of problems (which are basically always only > > problems with not enough space in the handle buffer). > > ceph_encode_fh() can return -EINVAL > > $ smdb.py functions encode_fh > where > $ for i in $(cut -d '|' -f 3 where | sort -u) ; do smdb.py return_states $i ; done | grep INTER | tee out Ah, I've missed that return hidden in ceph_encode_snapfh(). This is indeed cool use of static analysis ;) Thanks for noticing! Honza -- Jan Kara SUSE Labs, CR