Received: by 2002:a05:6a10:413:0:0:0:0 with SMTP id 19csp905063pxp; Wed, 16 Mar 2022 20:48:28 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwDCunObCfCHHDqVevXUzxqZhFHmFIIuRjJYMZjwUZEdbsm+y3I8LQItREIUMI8O6xkjAlY X-Received: by 2002:a17:902:9348:b0:14f:c715:2a94 with SMTP id g8-20020a170902934800b0014fc7152a94mr2952586plp.66.1647488907857; Wed, 16 Mar 2022 20:48:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1647488907; cv=none; d=google.com; s=arc-20160816; b=el/S7sK/9Bjfvj1ZaN++iRotUo3dCFMk7jz8yIPbWKxGeDaw/EzrCWjB863zPqTlN6 03W4+RYIBooZcqdJcheXm7NGAbZZSMeXdOlyDaQninwD3QCFXt80ilxSNFpuyKrrNkBM pZSNKLaV6yx29vP/yg69igtcMsiI70VcslrGgXu+dQwuB5caucitxutqvg3Elh4QdYJw opV/VV7x1Wdv3KHaJTej2gWKpEKIc9yRIOlXCb2U1Lagwj7bdZxNllADqiLKvI2U7SC7 WSxImlMLZLMTGnMM+YHFKXALgutnMVzVaQZy+yuYdxmdAZV4JYC90sO+IHC7ApU4go85 1NFg== 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 :references:in-reply-to:message-id:subject:cc:to:from:date :dkim-signature:dkim-signature; bh=yscn5kD6MQtKQFswpK2eWv6RD7DA+7w1y9Ncb3yKw6Y=; b=vm4zHBKXzUonTUbFxPbTaDRNrj894m0RfpTcNOoTIUVwAYUK1DGsHYUS+hH5t9YpI5 B98HmWpYgjbpVcf0y7MO4g332Xn9wL+myIEzvOjQT93Wriqg68GASKE0ys0FJRRWH/YG 1coMMFogMaMixe+KcamFwHZHB9A9RGfRBMUV2XlAIBg3CZSjH2CdsyZLUazNyMWNH0ft ZfiMIYVGA/6/Ftye84HWe1xS8MtPKL0zXTrl1UCWtDfMwhaJmw7K3QP1NZsWYld0LAo6 5kX1MifIO0n3z9bVrjscQqbZ8OGMjuuP5uiX3gDKkjfudq97fzageUJPJxlhP/L9Cahv XPZg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@suse.de header.s=susede2_rsa header.b=RmfLDp0v; dkim=neutral (no key) header.i=@suse.de header.s=susede2_ed25519 header.b=vdWA+z91; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 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 lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id a9-20020a056a000c8900b004f77fae8711si4632519pfv.117.2022.03.16.20.48.27 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 16 Mar 2022 20:48:27 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; dkim=pass header.i=@suse.de header.s=susede2_rsa header.b=RmfLDp0v; dkim=neutral (no key) header.i=@suse.de header.s=susede2_ed25519 header.b=vdWA+z91; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=suse.de Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 8B25725E98; Wed, 16 Mar 2022 20:38:08 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1356050AbiCPSHd (ORCPT + 99 others); Wed, 16 Mar 2022 14:07:33 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49304 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236096AbiCPSHc (ORCPT ); Wed, 16 Mar 2022 14:07:32 -0400 Received: from smtp-out2.suse.de (smtp-out2.suse.de [195.135.220.29]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1B01F4D622; Wed, 16 Mar 2022 11:06:18 -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 C8F1A1F38A; Wed, 16 Mar 2022 18:06:16 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_rsa; t=1647453976; h=from:from:reply-to: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=yscn5kD6MQtKQFswpK2eWv6RD7DA+7w1y9Ncb3yKw6Y=; b=RmfLDp0vukQJBVBkTr+3Llb96gXwzHH6FuDP+CEUzpWugi/dj2l2YS6LNyMh8iYBtwTfrC P7GNPza+WWWp/KyrE+0vvLY4q/Qks4FFbDDFnDQX1QBkOey/UXZsTg3cDLpPE2vxzd7qRa Jz/GjNLPSku6hgVV7n+W29Gc6iCgldI= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_ed25519; t=1647453976; h=from:from:reply-to: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=yscn5kD6MQtKQFswpK2eWv6RD7DA+7w1y9Ncb3yKw6Y=; b=vdWA+z91JfuCjGBBswU6dKi7YmW7VRHRfmBbJu+V69wNUISkmIdfNBmLG+Sft6o63OA1Za M5/ZZ64nDGnq48BQ== 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 9732313B69; Wed, 16 Mar 2022 18:06:16 +0000 (UTC) Received: from dovecot-director2.suse.de ([192.168.254.65]) by imap2.suse-dmz.suse.de with ESMTPSA id 1c58IxgnMmJWaQAAMHmgww (envelope-from ); Wed, 16 Mar 2022 18:06:16 +0000 Date: Wed, 16 Mar 2022 19:06:15 +0100 From: David Disseldorp To: Vasant Karasulli Cc: Namjae Jeon , Sungjong Seo , linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org, Takashi Iwai Subject: Re: [PATCH v3 2/2] exfat: keep trailing dots in paths if keep_last_dots is Message-ID: <20220316190615.495163ae@suse.de> In-Reply-To: <20220311114746.7643-3-vkarasulli@suse.de> References: <20220311114746.7643-1-vkarasulli@suse.de> <20220311114746.7643-3-vkarasulli@suse.de> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RDNS_NONE,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=no 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 Vasant, A couple of things I missed in the previous round... On Fri, 11 Mar 2022 12:47:46 +0100, Vasant Karasulli wrote: > exfat currently unconditionally strips trailing > periods '.' when performing path lookup, but allows them in the filenames > during file creation. Trailing periods *are* currently stripped during creation, so that statement should be removed, e.g. The Linux kernel exfat driver currently unconditionally strips trailing periods '.' from path components. > This is done intentionally, loosely following Windows > behaviour and specifications which state: > > #exFAT > The concatenated file name has the same set of illegal characters as > other FAT-based file systems (see Table 31). > > #FAT > ... > Leading and trailing spaces in a long name are ignored. > Leading and embedded periods are allowed in a name and are stored in > the long name. Trailing periods are ignored. > > Note: Leading and trailing space ' ' characters are currently retained > by Linux kernel exfat, in conflict with the above specification. > On Windows 10, File Explore application retains leading and trailing > space characters. But on the commandline behavior was exactly the opposite. As mentioned earlier, my observations from Windows10 CopyFile() win32 API calls were that trailing spaces and periods are stripped. AFAICT that's also the case for Windows Explorer and cmd.exe paths. Cheers, David