Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp17204178ybl; Thu, 2 Jan 2020 00:31:28 -0800 (PST) X-Google-Smtp-Source: APXvYqzE9QBoy/EsoEoXxzhEYq/70GKHztCAs2SiG+j7KP4PxEFoGAACrv5Wnanl66xJzytxaKZw X-Received: by 2002:a9d:7586:: with SMTP id s6mr90270401otk.342.1577953887948; Thu, 02 Jan 2020 00:31:27 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1577953887; cv=none; d=google.com; s=arc-20160816; b=rnfvptpsuf8rXIWte9C/vMc+DjL4L3/6aRIKZXH50xzgCqrcSsM3SE7lLVed0RWKlO AJ1I/J2t/F1lLdzh9qFx864nyR8gpzD6wUZ5yEPrVtwnnclcWTy3f2V0BlPAUzFWB/vM eZ/8TBeJA7T40/DBOapWRi6wkoaroRzV1SCdgu3iqZh/QSl+YpUjYuub0d+Yu/yp1ckS 1HdiEMCz9e3jxVfQCLIcCqi0WK9HPAmmt/Rne3W+FywlDcDAN8iwLwv4I/5FAwb8SI+p Ocu3IedbThiaI9jtSgxJ1G8SZJQkj6K/yv4rw4YQAFwSeimTVktgIiU+BDyoZVbXGfYu Zyzg== 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:dkim-signature; bh=cRA5UVy21UN6dx2Qu5x3A9NVTLMX1jIGtdux3DRTZi0=; b=0shshsHA7mZHtmk2Cbrw8X4qsaOIsahPm064eLjH1YAoWrCw0Jds0+tVnmymhaydbk t+EDW6pce+KtswvC83c4PijCmjb6WWdC2VUjVpABNh3+m/krlHr1PlU/4BT9id3M9vCt /dkV+7NKfZ6FYhGIj+FvXrwzy8EoAsb439E0HT990YyzfyW1+kmBlzFVx4+bXACv+ohI bTxOxoyGAakZeGn7CUXIo0waX3lkZsoz7jnNfNDlamL7aklw1n5afh+Fiw6myVDMiej0 xdMTdTQbC7f0EFkxgO9Oglw8EDdOjCXmS5df8ZAkfnpE2ihNTGWb5chaKT9AKn8XgNQI F0QA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=VKHqU4TK; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id n14si29355127otk.179.2020.01.02.00.31.14; Thu, 02 Jan 2020 00:31:27 -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; dkim=pass header.i=@gmail.com header.s=20161025 header.b=VKHqU4TK; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727792AbgABIad (ORCPT + 99 others); Thu, 2 Jan 2020 03:30:33 -0500 Received: from mail-wm1-f67.google.com ([209.85.128.67]:51863 "EHLO mail-wm1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727688AbgABIac (ORCPT ); Thu, 2 Jan 2020 03:30:32 -0500 Received: by mail-wm1-f67.google.com with SMTP id d73so4916786wmd.1; Thu, 02 Jan 2020 00:30:31 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:content-transfer-encoding:in-reply-to :user-agent; bh=cRA5UVy21UN6dx2Qu5x3A9NVTLMX1jIGtdux3DRTZi0=; b=VKHqU4TKviMD3V2ScKm0W9Lw0Sk9giP+++S/ooIPT/aqNYjT5nu96Nl8U+odxA7ZuM RHOt6YPQx0YiRCgyylRY1P5b1mHvxwZRf+jmFFDvoiwLxNwixuEi1+aaKEWHGmrvn+KI KtEQQzrkna0S7O0W9KzkKEv6566lVsQnC0rofLvbNk4x1occ509mXasZd0KS2N7K8h3n C9BSccSSpSB1wtrbSS7aAHJP0xmbnMzd9CXfnQ2A2bNsEPNpbRBB1cUo2jLp7PjznENe KNEBta4QcRgfJcTbv6j2NemQibn9eqJyohRX6htPPzgv1bxwtaWL9SQRHO6CEepXhPlm z8Kw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:content-transfer-encoding :in-reply-to:user-agent; bh=cRA5UVy21UN6dx2Qu5x3A9NVTLMX1jIGtdux3DRTZi0=; b=csNlzMM7JGasLgbN68nGqInfg2gUJJxVK+RYeXpWVstES/hA0+jEQwUhiSitebt1YT JvWfmN8jijv2PVz6FXpfq/4w5TYF6Eyh8mg09xc8eqYZCWEoTUMrdeMwCwAS05PjbqtQ 0BuTXhAz7s8j35QqmneZxkBh1z3JMI2iJkvNzkKFD5HxJumdQSCWSw17RhJfkr7LyRuL us71MPEn1bMoF8UMo5QbmTl69hijbbzUzMLQl6LOiwF7LSO9Jwd+y+A7vZRndqkMiBbr fiNSH8zu/FqbDYb2ZTgjzl2s60bDvNMqrTqHmJKyIt8mSFkKY77bBSRhJQQNiMVMAaf+ bRSw== X-Gm-Message-State: APjAAAVzC5QBMbmraFyLBtMIAxUwhKWKlBQrpj/BHXz3LxsfgwkoAD/O QLrh+QyHefmeHAVuP0q9u5w= X-Received: by 2002:a1c:f008:: with SMTP id a8mr12944271wmb.81.1577953830730; Thu, 02 Jan 2020 00:30:30 -0800 (PST) Received: from pali ([2a02:2b88:2:1::5cc6:2f]) by smtp.gmail.com with ESMTPSA id a9sm7633562wmm.15.2020.01.02.00.30.29 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 02 Jan 2020 00:30:30 -0800 (PST) Date: Thu, 2 Jan 2020 09:30:29 +0100 From: Pali =?utf-8?B?Um9ow6Fy?= To: Namjae Jeon Cc: linux-kernel@vger.kernel.org, linux-fsdevel@vger.kernel.org, gregkh@linuxfoundation.org, valdis.kletnieks@vt.edu, hch@lst.de, sj1557.seo@samsung.com, linkinjeon@gmail.com Subject: Re: [PATCH v8 02/13] exfat: add super block operations Message-ID: <20200102083029.uv2gtig3ski23dpe@pali> References: <20191220062419.23516-1-namjae.jeon@samsung.com> <20191220062419.23516-3-namjae.jeon@samsung.com> <20191229134025.qb3mmqatsn5c4gao@pali> <000701d5c132$bed73c80$3c85b580$@samsung.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <000701d5c132$bed73c80$3c85b580$@samsung.com> User-Agent: NeoMutt/20180716 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thursday 02 January 2020 15:06:16 Namjae Jeon wrote: > > > +static const struct fs_parameter_spec exfat_param_specs[] = { > > > + fsparam_u32("uid", Opt_uid), > > > + fsparam_u32("gid", Opt_gid), > > > + fsparam_u32oct("umask", Opt_umask), > > > + fsparam_u32oct("dmask", Opt_dmask), > > > + fsparam_u32oct("fmask", Opt_fmask), > > > + fsparam_u32oct("allow_utime", Opt_allow_utime), > > > + fsparam_string("iocharset", Opt_charset), > > > + fsparam_flag("utf8", Opt_utf8), > > > > Hello! What is the purpose of having extra special "utf8" mount option? > > Is not one "iocharset=utf8" option enough? > utf8 nls_table supports utf8<->utf32 conversion and does not support > surrogate character conversion. So in other words, this is just subset of UTF-8 just to 3 byte long sequences (for Unicode code points up to the U+FFFF). > The utf8 option can support the surrogate > character conversion of utf16 using utf16s_to_utf8s/utf8s_to_utf16s of > the nls base. So this is full UTF-8 support, right? And what is the point to have two options for UTF-8 support, when one is incomplete / broken? I see no benefit to have first option at all. Providing incomplete / broken support to userspace does not make much sense if we already have full and working support via different mount option. Maybe second option with full UTF-8 support should be used also by iocharset=utf8 and then we do not need utf8 option at all? -- Pali Rohár pali.rohar@gmail.com