Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp246292ybl; Tue, 7 Jan 2020 05:35:19 -0800 (PST) X-Google-Smtp-Source: APXvYqyGm3ADgy64m+W5JAZ9gYJ1DLZ0dVmV0f/CjIb3UU910RJ1wxRXNe9Nqmtt+hd/hiMmSzGT X-Received: by 2002:a9d:7d85:: with SMTP id j5mr105466475otn.86.1578404119315; Tue, 07 Jan 2020 05:35:19 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1578404119; cv=none; d=google.com; s=arc-20160816; b=xuhK/yXh7TctXGlDk9AU46j7ig7ZO+SUY7bPzr+6ZOnR8vVOuToN0p3f+rRPrALe4Z t7CT9Deyn/iFZYtjavRkirr06v5VD8GiHw4ffASgKoaxB1oyxEigJWN7IPFoWa4B674v MPjVAJs8+GA8xdpRP4zsYe2Hukyu46K+wAPKNfXvyvCH1e2CVcBqVu6jOylUJR49GZ/7 ekCoPxFrKeOXDaPl02YaCUuHbaYh7Wg7+jiGx4ZdfqTEjIJ6a4DMLBCY1veX7pfOcVki qxjvowPBDZkF8tYLMHDs3Slqy6k/MGf4RUXU547+7Ig4NdZxedIqrjuuca9ZNAnw+ciu qwSw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-transfer-encoding:content-disposition:mime-version :references:message-id:subject:cc:to:from:date; bh=s9C9iT2IMxEesmzxHQrRVK7dB+nej87MRUBixjhctNk=; b=QTuGKSBUyfGSPep70UMJ8N3qKkb8iy7TfoWZQw+Okq0HVLbNNvr9dY9WSl5cW19X3e oAR0kcc+TAUu7TXD4orzl7jJf03WAgSIogGA7zhUANRDnaTHttuNJQLSkZPVDvumUATs b0qhUrEE4YnNevdDDIm+n2NkLX9NRmMzs0ejECXRFQGy5Gj1ffs7E81I/iqMuFnKTB4Q Hqj9ShjDgu9IfFpIJLhJLrNLE450I369sNkKSDH0WtMAUoEDTT9Oc/kQx7NYvVL4JhJJ GAxSisF9et050f9qy+CmJvaANIk8xeezCNFyelRqeFwAAczmAyu6JdW4Npun5D/toAYe 9lXg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id z194si35315714oia.50.2020.01.07.05.35.06; Tue, 07 Jan 2020 05:35:19 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728175AbgAGNch (ORCPT + 99 others); Tue, 7 Jan 2020 08:32:37 -0500 Received: from mx2.suse.de ([195.135.220.15]:49894 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727658AbgAGNcg (ORCPT ); Tue, 7 Jan 2020 08:32:36 -0500 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (unknown [195.135.220.254]) by mx2.suse.de (Postfix) with ESMTP id 83530AF05; Tue, 7 Jan 2020 13:32:34 +0000 (UTC) Received: by quack2.suse.cz (Postfix, from userid 1000) id 7E02D1E0B47; Tue, 7 Jan 2020 14:32:33 +0100 (CET) Date: Tue, 7 Jan 2020 14:32:33 +0100 From: Jan Kara To: Pali =?iso-8859-1?Q?Roh=E1r?= Cc: linux-kernel@vger.kernel.org, linux-fsdevel@vger.kernel.org, linux-ntfs-dev@lists.sourceforge.net, linux-cifs@vger.kernel.org, Alexander Viro , Luis de Bethencourt , Salah Triki , Steve French , OGAWA Hirofumi , Greg Kroah-Hartman , Thomas Gleixner , David Sterba , Dave Kleikamp , Anton Altaparmakov , Jan Kara , "Theodore Y. Ts'o" , Eric Sandeen , Namjae Jeon , Pavel Machek , Christoph Hellwig Subject: Re: Unification of filesystem encoding options Message-ID: <20200107133233.GC25547@quack2.suse.cz> References: <20200102211855.gg62r7jshp742d6i@pali> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20200102211855.gg62r7jshp742d6i@pali> User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu 02-01-20 22:18:55, Pali Roh?r wrote: > 1) Unify mount options for specifying charset. > > Currently all filesystems except msdos and hfsplus have mount option > iocharset=. hfsplus has nls= and msdos does not > implement re-encoding support. Plus vfat, udf and isofs have broken > iocharset=utf8 option (but working utf8 option) And ntfs has deprecated > iocharset= option. > > I would suggest following changes for unification: > > * Add a new alias iocharset= for hfsplus which would do same as nls= > * Make iocharset=utf8 option for vfat, udf and isofs to do same as utf8 > * Un-deprecate iocharset= option for ntfs > > This would cause that all filesystems would have iocharset= > option which would work for any charset, including iocharset=utf8. > And it would fix also broken iocharset=utf8 for vfat, udf and isofs. Makes sense to me. > 2) Add support for Unicode code points above U+FFFF for filesystems > befs, hfs, hfsplus, jfs and ntfs, so iocharset=utf8 option would work > also with filenames in userspace which would be 4 bytes long UTF-8. Also looks good but when doing this, I'd suggest we extend NLS to support full UTF-8 rather than implementing it by hand like e.g. we did for UDF. > 3) Add support for iocharset= and codepage= options for msdos > filesystem. It shares lot of pars of code with vfat driver. I guess this is for msdos filesystem maintainers to decide. Honza -- Jan Kara SUSE Labs, CR