Received: by 2002:ac0:e34a:0:0:0:0:0 with SMTP id g10csp507155imn; Tue, 26 Jul 2022 01:41:23 -0700 (PDT) X-Google-Smtp-Source: AGRyM1tSeMGKcVBhXMjNcGtwVBBnxDnDA7G7f+J/jNHtgSpNecQYFThkstOXX7Bzq7GRxkUUtzbV X-Received: by 2002:a17:907:c27:b0:72b:8118:b899 with SMTP id ga39-20020a1709070c2700b0072b8118b899mr13026588ejc.739.1658824883021; Tue, 26 Jul 2022 01:41:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1658824883; cv=none; d=google.com; s=arc-20160816; b=YL8J5ILZBk2Mp8XyKMlxCkUSexfsyigsXvoYJfjf+GOYUhgs13HZQPCj15BA23TnEX mMgWijWXJi6iMIKPlRhv+8Uek1C7UOaX/ZOHudZE2XmrR8CcOIaeWjqYEc8gL9tLByeN dkkXMkDYnfjepxilG5ZapS45JPPDDDTkk1IISBQ+YVhO7a7TofkccnBj1MBkOG6plGWZ SmZcG2mARMzXhkTSy7lRvs6GthW+eDlogp+eDOYyozddV3I/lzdWXzp04lyqnjyUOFns aZVinQ+xq32ohnof5NI8H99eKsjktXqjXBg9J8DxzFlhBvX6/nAMm096l3dEo+XDvsNt w8Cg== 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=Vx26rEKV7MqSSzbR7MBXXd4/9NX9efq6khCfCJWSLgk=; b=oTJDXbZAiLyfQTzZZzjIsmwg/jjf6ItTSoiLa3ctSZJeV5aC2wDinaKVgZW7j3tb0x sRnxYdJOl4Ypx1X/TRR27fLLtL0JoZHf3qw+Sj64MF3IpMjnV6uoH1TbAXJvzMQ+FtoQ OENhVPaKhjUt9ht3WbZoTZh325LIfa2PZ+5Ot6RTvYmrObXIBAU3GbEfRFSff3AwAOsX pV5KCcu6JUxvxtRZsGjayWBRsbiAxbylIQC67CujJzfqrpVH/g8sf3UZNY8jA5DhVEwC T5vVAtWWc/Fc6q4MUU9ayRKkNHVfIS+Ro/E3zTX7N5Xh7e+n2d670EGU/I96VfuCRp/g ZkZQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@suse.de header.s=susede2_rsa header.b=Fz97wcTw; dkim=neutral (no key) header.i=@suse.de header.s=susede2_ed25519 header.b=QTbU84lv; 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 sb41-20020a1709076da900b006fe9e9ed643si12938091ejc.48.2022.07.26.01.40.54; Tue, 26 Jul 2022 01:41:23 -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=Fz97wcTw; dkim=neutral (no key) header.i=@suse.de header.s=susede2_ed25519 header.b=QTbU84lv; 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 S238611AbiGZIji (ORCPT + 99 others); Tue, 26 Jul 2022 04:39:38 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54816 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230254AbiGZIje (ORCPT ); Tue, 26 Jul 2022 04:39:34 -0400 Received: from smtp-out1.suse.de (smtp-out1.suse.de [IPv6:2001:67c:2178:6::1c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 30B582F3B2; Tue, 26 Jul 2022 01:39:33 -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-out1.suse.de (Postfix) with ESMTPS id B4A00374C5; Tue, 26 Jul 2022 08:39:31 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_rsa; t=1658824771; 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=Vx26rEKV7MqSSzbR7MBXXd4/9NX9efq6khCfCJWSLgk=; b=Fz97wcTwZHidHvSwZP5uCrWGjuqrqNngLKF8PBdUBUiq+WF28xyNCYeqKtLAi5XAf+Y+Kv Hgz1g4hv7Yop/Ic6+Jl4waRgCjY6c3g3NJQNmuTWFR24ROVG5REUbQKNLdLS9QMXzCw5ko 7gSw57vOyMVN3/KuWm1PzCTVxEeJ+Fw= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_ed25519; t=1658824771; 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=Vx26rEKV7MqSSzbR7MBXXd4/9NX9efq6khCfCJWSLgk=; b=QTbU84lvBp5BkLJWRfSf7NFJE6lHyts9tMKzKN+2GUUD+r6GJHh4v7ZAKyk8mNrKmyvBp6 uZC5JuemPbVwJNDQ== 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 874F313A7C; Tue, 26 Jul 2022 08:39:31 +0000 (UTC) Received: from dovecot-director2.suse.de ([192.168.254.65]) by imap2.suse-dmz.suse.de with ESMTPSA id SLlAIEOo32LYDQAAMHmgww (envelope-from ); Tue, 26 Jul 2022 08:39:31 +0000 From: Takashi Iwai To: linux-fsdevel@vger.kernel.org Cc: Namjae Jeon , Sungjong Seo , Petr Vorel , Joe Perches , linux-kernel@vger.kernel.org Subject: [PATCH v2 0/5] exfat: Fixes for ENAMETOOLONG error handling Date: Tue, 26 Jul 2022 10:39:24 +0200 Message-Id: <20220726083929.1684-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 revised 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 === v1: https://lore.kernel.org/r/20220722142916.29435-1-tiwai@suse.de v1->v2: * Expand to pr_*() directly in exfat_*() macros * Add a patch to drop superfluous newlines in error messages === Takashi Iwai (5): 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 exfat: Drop superfluous new line for error messages fs/exfat/exfat_fs.h | 18 ++++++++++-------- fs/exfat/fatent.c | 2 +- fs/exfat/misc.c | 17 ----------------- fs/exfat/namei.c | 2 +- fs/exfat/nls.c | 4 ++-- fs/exfat/super.c | 4 ++-- 6 files changed, 16 insertions(+), 31 deletions(-) -- 2.35.3