Received: by 2002:a05:6a10:c604:0:0:0:0 with SMTP id y4csp2875136pxt; Mon, 9 Aug 2021 10:52:39 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyqEaPHavoqR4QexQbauJC4QX6c9DlhnoKUmPo6c5Xy1KWw8J/RhbmGelZWX3QWD8G8e9Tm X-Received: by 2002:a05:6402:348c:: with SMTP id v12mr31482266edc.159.1628531559081; Mon, 09 Aug 2021 10:52:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1628531559; cv=none; d=google.com; s=arc-20160816; b=uo5Sbpq9lYuiwkz2Y9YZH+GMX/LV1StTuekGjyPoZ9jwVapFjyI+UJsxpWLmtzjUhT TnF6SmqJcyEQur+dGvG2HKbv3vS7OXmvpuJGNNKR0BN+s2cp1IoIO/BDcutcNF6eDeil 1GU2BiariyIUMIby8lBbfJPxfvr/dtL5C3c2iDhs0pJze6cmTSVaewGAGxIEn4v2pwxe 0QU7Ah6n8N+LdNCdW4Ki65ZXob1QjZA3PtdqXN6D/CgDE0yOXRLlZX7EOdBsoLvQ2rbu kQM7AZmTz5071y3qwmS4uM50F4jBMyDPJ3d+9/CeJHBHTo9T9Q9R4HpA9kR2X0FLO90Q Rg5Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=igh93BzOn4ifUF81NuzsxpDW3CXTu4nJhkhrAM1UHj4=; b=zJREuKPwg77wnYIdazhPFQusUvs1BMIIBzDaFRb0+Kx7HpE5VZywsUHtNBYEsTfMgt fUuqDtpUzynjl7zOMM/NK6YPDyismvYxeZnZLGFJflTxE8yDZrQ32qQ1inpPfUk6ETm4 XKHU0f9c9qJ72bueyH5CrmvjawgCa5MItWomCl+NVnwsX3F0PIqo5zAQ/LwWh0yI7FRZ 3/L6OfGqIsw2s9rX0O4uqTI4H5F9gs/8yDzhEvqMOMli8dmFCOYWeirxWch+subZR+cb EroOs4I2Kb9v+E5OyLnkzY8d1Xw5Uf8JgsfK8QU4CWw0G22r2nWuHV7iceLTWdvNZc3i VfVA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=o9ciE2Ya; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id v23si1870127eds.259.2021.08.09.10.52.16; Mon, 09 Aug 2021 10:52:39 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=o9ciE2Ya; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232464AbhHIRsN (ORCPT + 99 others); Mon, 9 Aug 2021 13:48:13 -0400 Received: from mail.kernel.org ([198.145.29.99]:43446 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234667AbhHIRsF (ORCPT ); Mon, 9 Aug 2021 13:48:05 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 494F960F25; Mon, 9 Aug 2021 17:47:44 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1628531264; bh=/FzF4AX925VDrkN29pMet/SxwvAOYr7kHqZbB1ZleVs=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=o9ciE2Yankh6D9q5DwKQ3DzDVkkVquO3EdP/FHdqRHOd1fkIm3A+ST2OwIrrfulfy 3wC8MIN2AEvGiz8h1lXpYuw7XJVCS55Dr/EC9VvmuxURex858mhjJetQBp/Y6uVgFv dKCuLAG1WlNvfsRzwR1wWREwjzcDJHQuxRSiDexp01/24scKD500LJWlAyU0qh0WZ8 Qj1+NQtTiLSWB5tKCdrgD23W6lMhiEcUxUSHKnVNzJZlu+3gApUdPOdkgwMFERJ8+q Se++ZoKZg/xE3wIVbMTEc1fdpnWXII0aGLnAhn8+LCudGPWhxk6EiXOZbOM07sck1T PZPlv55ROfwLw== Received: by pali.im (Postfix) id E4EC4C7C; Mon, 9 Aug 2021 19:47:41 +0200 (CEST) Date: Mon, 9 Aug 2021 19:47:41 +0200 From: Pali =?utf-8?B?Um9ow6Fy?= To: Matthew Wilcox Cc: Viacheslav Dubeyko , Linux FS Devel , linux-ntfs-dev@lists.sourceforge.net, linux-cifs@vger.kernel.org, jfs-discussion@lists.sourceforge.net, LKML , Alexander Viro , Jan Kara , OGAWA Hirofumi , "Theodore Y . Ts'o" , Luis de Bethencourt , Salah Triki , Andrew Morton , Dave Kleikamp , Anton Altaparmakov , Pavel Machek , Marek =?utf-8?B?QmVow7pu?= , Christoph Hellwig Subject: Re: [RFC PATCH 11/20] hfs: Explicitly set hsb->nls_disk when hsb->nls_io is set Message-ID: <20210809174741.4wont2drya3rvpsr@pali> References: <20210808162453.1653-1-pali@kernel.org> <20210808162453.1653-12-pali@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: User-Agent: NeoMutt/20180716 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Monday 09 August 2021 18:37:19 Matthew Wilcox wrote: > On Mon, Aug 09, 2021 at 10:31:55AM -0700, Viacheslav Dubeyko wrote: > > > On Aug 8, 2021, at 9:24 AM, Pali Rohár wrote: > > > > > > It does not make any sense to set hsb->nls_io (NLS iocharset used between > > > VFS and hfs driver) when hsb->nls_disk (NLS codepage used between hfs > > > driver and disk) is not set. > > > > > > Reverse engineering driver code shown what is doing in this special case: > > > > > > When codepage was not defined but iocharset was then > > > hfs driver copied 8bit character from disk directly to > > > 16bit unicode wchar_t type. Which means it did conversion > > > from Latin1 (ISO-8859-1) to Unicode because first 256 > > > Unicode code points matches 8bit ISO-8859-1 codepage table. > > > So when iocharset was specified and codepage not, then > > > codepage used implicit value "iso8859-1". > > > > > > So when hsb->nls_disk is not set and hsb->nls_io is then explicitly set > > > hsb->nls_disk to "iso8859-1". > > > > > > Such setup is obviously incompatible with Mac OS systems as they do not > > > support iso8859-1 encoding for hfs. So print warning into dmesg about this > > > fact. > > > > > > After this change hsb->nls_disk is always set, so remove code paths for > > > case when hsb->nls_disk was not set as they are not needed anymore. > > > > > > Sounds reasonable. But it will be great to know that the change has been tested reasonably well. > > I don't think it's reasonable to ask Pali to test every single filesystem. > That's something the maintainer should do, as you're more likely to have > the infrastructure already set up to do testing of your filesystem and > be aware of fun corner cases and use cases than someone who's working > across all filesystems. This patch series is currently in RFC form, as stated in cover letter mostly untested. So they are not in form for merging or detailed reviewing. I just would like to know if this is the right direction with filesystems and if I should continue with this my effort or not. And I thought that sending RFC "incomplete" patches is better way than just describing what to do and how...