Received: by 2002:a05:6358:c692:b0:131:369:b2a3 with SMTP id fe18csp4533004rwb; Mon, 31 Jul 2023 08:14:53 -0700 (PDT) X-Google-Smtp-Source: APBJJlHYce9JpIoRvpoK3q38/lHzbny9Ksff9zNNNNGxh2YN4O4w9MdNQhrHHwmrYh7CQ0V1rgzI X-Received: by 2002:a17:902:9045:b0:1b8:954c:1f6 with SMTP id w5-20020a170902904500b001b8954c01f6mr9064247plz.36.1690816492651; Mon, 31 Jul 2023 08:14:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1690816492; cv=none; d=google.com; s=arc-20160816; b=cl0H0xKyMLewMBl4m3n8LMFCzP/502o4ceDapyrIDwYrq8t5sjljSxUH5OjMzvp+IQ a97GzAKaduRLPaC8xykky7OZ7ablIN1C2vOYSCah0B7AD2gQagR3JDCEUTw+2Ww1EYIW ozrD0Q/H7cJpt5Jk5DbIklMdRNkuUFVJ1Sht7VkVb3YbqZUODgCI1Ux45U9ZJvzDwGPQ jO3cIQlLyLi1Z3T9tYI5lS70OiJL7HTms2XyT2fHkqqlKqLyuPvJ0HnDufsIXdqNFvRH JMO0Bm4HhJ8HDaL78jPb5GLXBFAnnCLCWXP0ZChgoFMOPYsUU4Jl85KUJNoXNoBOQEId OVHQ== 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-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=PTB+zTOglEGcpDuJkH1oIlACcE/4uJ8LKymuEGrBhyE=; fh=L624ykWxmi4neyzHwXkRXTv3MhWsvEAP/V5Ox+nhqQc=; b=NRAUM0qF5eYobaktPsCAP5CmPy9Yptfto4HTq4JyH+kCcYZA0h/qIKge6vLFZpWZ6u 1JJmBQeURAMCWDuEwUAhvEQTGYbQiPA5bNFXcJ1aC1XGPoEBO0HVkvBLwS+xcwZjWBvV h34FRuFF9wPeLBvbdcBuoiJl/0NzOXfXYzSvFH2eETv0TWVQfWXSzJUdKb4wCxTqwH/0 wEkXPzWDI0MNFumy45I00hNf6tI6wJLdZLcs79k4ZI6JfkZqwwHjfAGkgm8WuuR4V0Mq TjL2XDIq1BffUPMIvYM3iQLa7vLeVuequIbXfHEZ7fhUi/m4f4O10hPhRpYHP9OfvL7G 5fYQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mit.edu header.s=outgoing header.b=dLJycWW2; 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=mit.edu Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id jf12-20020a170903268c00b001b8a70d11e4si7299546plb.529.2023.07.31.08.14.40; Mon, 31 Jul 2023 08:14:52 -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=@mit.edu header.s=outgoing header.b=dLJycWW2; 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=mit.edu Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229763AbjGaO1F (ORCPT + 99 others); Mon, 31 Jul 2023 10:27:05 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39312 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229770AbjGaO0k (ORCPT ); Mon, 31 Jul 2023 10:26:40 -0400 Received: from outgoing.mit.edu (outgoing-auth-1.mit.edu [18.9.28.11]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5CB9DB3 for ; Mon, 31 Jul 2023 07:26:39 -0700 (PDT) Received: from cwcc.thunk.org (pool-173-48-113-23.bstnma.fios.verizon.net [173.48.113.23]) (authenticated bits=0) (User authenticated as tytso@ATHENA.MIT.EDU) by outgoing.mit.edu (8.14.7/8.12.4) with ESMTP id 36VEQ1cn023734 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Mon, 31 Jul 2023 10:26:02 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mit.edu; s=outgoing; t=1690813563; bh=PTB+zTOglEGcpDuJkH1oIlACcE/4uJ8LKymuEGrBhyE=; h=Date:From:Subject:Message-ID:MIME-Version:Content-Type; b=dLJycWW2cI9QngrH0N5NBkecfzJoxlN/oeSUmvHK0Dk5Z15pz8QMBbV1TqCUx8Ng4 dO81MKpBvxKbfoYWZ/iugt+zhlo6nxE5ROapFTDQeqMVDmXJbaxk4nCNSzL2aarHMd idY5MGWh8vRYalsejIVNn+Q/uf6w78s3eizchral9RI+NI0aEAXEtpX1ZGgs4c/PZv kOJa+Eu05GEog3uSScBF23oqb8/TugKPqWIpJLXe/6eTO0srDiKtfwwVtgzZKglxdt Uk4kihyD+QxxEE6uEnkIbUbAV5gH3nvslIYbIxdXTxdK6SfrKClnjBe7xgBhdQN1do GBVr76cuKqv7Q== Received: by cwcc.thunk.org (Postfix, from userid 15806) id 3490715C04F1; Mon, 31 Jul 2023 10:26:01 -0400 (EDT) Date: Mon, 31 Jul 2023 10:26:01 -0400 From: "Theodore Ts'o" To: Thomas =?iso-8859-1?Q?Wei=DFschuh?= Cc: tjcw@cantab.net, linux-kernel@vger.kernel.org Subject: Re: vfat file system does not allow a space at the end of a directory name Message-ID: <20230731142601.GA903325@mit.edu> References: <196f7191-5820-4480-99d3-e7ffc66e9c98@t-8ch.de> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <196f7191-5820-4480-99d3-e7ffc66e9c98@t-8ch.de> X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_BLOCKED, SPF_HELO_NONE,SPF_NONE,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-kernel@vger.kernel.org On Mon, Jul 31, 2023 at 07:55:39AM +0200, Thomas Wei?schuh wrote: > On 2023-07-30 23:33:03+0100, Chris Ward wrote: > > I had a zip file (from downloading pictures from Google Photos) where > > some of the directory names had a space at the end. This unzipped fine > > on an ext4 file system, but gave errors when unpacking onto a USB key > > which had a FAT file system. > > AFAIK this is a limitation in the FAT filesystem itself. > > The problem is that FAT stores filenames in fixed width fields. > Unused space in these fields is filled with ' '. > This means that storing "foo", "foo " or "foo ". would all result in the > exact same result and it will be impossible to figure out the correct > one afterwards. Yeah, I'd argue that this is a misfeature in Google Photos; its product manager should strongly consider stripping trailing spaces from picture titles. Disclosure: I work for Google but not anywhere near the Google Photos product team, and this is my own opinion not Google's. Feel free to file product feedback in the Google Photos app, though. :-) - Ted