Received: by 2002:ac0:da4c:0:0:0:0:0 with SMTP id a12csp695962imi; Fri, 22 Jul 2022 07:31:51 -0700 (PDT) X-Google-Smtp-Source: AGRyM1sOmCV3YCgg6trk+8JtLLMdNGM6kE73VfrhS3MPsdPCyNQ/UqV69uz1gZz2oz/dbRIAwtqT X-Received: by 2002:a05:6808:1687:b0:32c:3e3e:89b1 with SMTP id bb7-20020a056808168700b0032c3e3e89b1mr26942oib.60.1658500310581; Fri, 22 Jul 2022 07:31:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1658500310; cv=none; d=google.com; s=arc-20160816; b=TmlOhFdb5WV6aWT0DzSWNg8uU7l867LmEGaBgPec6INhRMi9lkeBXCL1GaPc+9SUSb 42abOSuiE+w71fmFbyAfq0OPTqp2iWALSsVK58SlqXkWg6TNnjL2i3vDu8q1SEO1KJU3 iV9nIylOKD6NYUtH5DuHs1DnAEIN6PLEJGEl/nQNsknWmGVdDMV+I8iiENmJrp4DLmnL joARw5ZUPJDf+oCqGjJgVvNOhjnkPZcgjJQs5dwY5DY7/h0+JKxdMJB9O4KM2D9zvy9p 4BiqdEHiJX5tjIn72epRXXGzR4PXNpd0vUX8XRRA/y50x2TuLGLrt/6NdPCb9BcPPwsR g8Qw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature:dkim-signature; bh=0G4xjEaairc/ku3Vspm2RXTqyzglibQcxUIE7phU3hY=; b=y+OQ14sOXxDnxW8W9YBULFFC8LyF9OHlH9n6jACLoDRdIodUgbSDkiW5xwKA/0bY2r us+f9JuMi3sc+0R9nm3IvqsS+/bk5fTkQnTXlkX1LWO3zlGyO8HCyUW3nwEaddrfT72B Pz4n8l8gcB95kh4NB6pZxvGo/Ts4pe+E+6U8+8PXlvMby7c7YclLctuNAB5ACHrIEVUK ZJMwEHmEPUOQtf8NQf62OSs5bp0qd5e5OIBmznu/qRjIeE+rFBGqbqNE+Kwwd5r3ak/J HNirYFD9sxR6LYXTZw8zdw4HhKXBtKGBKtIOl7yV/YWD1z/3ptov6ox+N6WPrCydAUrT MAuQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@suse.de header.s=susede2_rsa header.b=GQOaFwj0; dkim=neutral (no key) header.i=@suse.de; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=suse.de Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id bq2-20020a05680823c200b0033a10751b84si4621278oib.293.2022.07.22.07.31.34; Fri, 22 Jul 2022 07:31:50 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-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.de header.s=susede2_rsa header.b=GQOaFwj0; dkim=neutral (no key) header.i=@suse.de; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=suse.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235233AbiGVO3i (ORCPT + 99 others); Fri, 22 Jul 2022 10:29:38 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56950 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235094AbiGVO30 (ORCPT ); Fri, 22 Jul 2022 10:29:26 -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 B63689D511; Fri, 22 Jul 2022 07:29:24 -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 018B3204D9; Fri, 22 Jul 2022 14:29:21 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_rsa; t=1658500161; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=0G4xjEaairc/ku3Vspm2RXTqyzglibQcxUIE7phU3hY=; b=GQOaFwj0xtXpIVAUjObSSc4rnj0D6xZK8c1R001x+NYiw3eFBm1yJ55bgMLrR8t8A3CAnS pNIWBLCI/3F1BQnLU+5Z0fPrYBhIKdTpNPgmcvBdykxf5WjMUxWiGDPnarVOh4kp6p7IKl RjyIfBt1kyh8HT71LHw2DrGAvJrevzw= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_ed25519; t=1658500161; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=0G4xjEaairc/ku3Vspm2RXTqyzglibQcxUIE7phU3hY=; b=/aTy/zr3aHiqxnsdvFtiav8pcObFFEf/eJ1Ucsyltf0fGsPkX/yOhGfNidzhootSMoMnRT SECUlVyKl7AymgCg== 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 D0B8F134A9; Fri, 22 Jul 2022 14:29:20 +0000 (UTC) Received: from dovecot-director2.suse.de ([192.168.254.65]) by imap2.suse-dmz.suse.de with ESMTPSA id BBwQMkC02mJ7bwAAMHmgww (envelope-from ); Fri, 22 Jul 2022 14:29:20 +0000 From: Takashi Iwai To: linux-fsdevel@vger.kernel.org Cc: Namjae Jeon , Sungjong Seo , linux-kernel@vger.kernel.org Subject: [PATCH 0/4] exfat: Fixes for ENAMETOOLONG error handling Date: Fri, 22 Jul 2022 16:29:12 +0200 Message-Id: <20220722142916.29435-1-tiwai@suse.de> X-Mailer: git-send-email 2.35.3 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,SPF_PASS 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-kernel@vger.kernel.org Hi, this is a series for fixing the error code of rename syscall as well as cleanup / suppress the superfluous error messages. As an LTP test case reported, exfat returns the inconsistent error code for the case of renaming oversized file names: https://bugzilla.suse.com/show_bug.cgi?id=1201725 The first patch fixes this inconsistency. The second patch is just for correcting the definitions as bit flags, and the remaining two patches are for suppressing the error message that can be triggered too easily to debug messages. thanks, Takashi === Takashi Iwai (4): exfat: Return ENAMETOOLONG consistently for oversized paths exfat: Define NLS_NAME_* as bit flags explicitly exfat: Expand exfat_err() and co directly to pr_*() macro exfat: Downgrade ENAMETOOLONG error message to debug messages fs/exfat/exfat_fs.h | 21 +++++++++++++-------- fs/exfat/misc.c | 17 ----------------- fs/exfat/namei.c | 2 +- fs/exfat/nls.c | 2 +- 4 files changed, 15 insertions(+), 27 deletions(-) -- 2.35.3