Received: by 2002:a05:6a10:c604:0:0:0:0 with SMTP id y4csp2876306pxt; Mon, 9 Aug 2021 10:54:27 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxeAKb5rHnVY2Pj+8LgtUHC9iO0uXDnQB8qvkOMsKDCguqs7cMIdEvHH1yRTEvlUyPpgXLG X-Received: by 2002:aa7:c597:: with SMTP id g23mr31263226edq.340.1628531667298; Mon, 09 Aug 2021 10:54:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1628531667; cv=none; d=google.com; s=arc-20160816; b=G9vrbgiJGGKMteoXYVPeAcVzvAAUY1FYcBCn5jK7JQT5UMf/44GrQTy/F520+29AZo 3b/XO9bdi527C7vplLy7YH4YMjNKxvyaYmN85BDZbwe/SDZwBEfWFnkEb0zj04zgzGf7 zOEHe+FEIi4pcd8O850fWujjJ0vXTFzq6abpd1hqLuiObeWKrEpjXdK3O9IoLc4vsiIm TyB1wEzhDVlrAypgFO6pwBniKSYYwt5nSqgsnVUk7X71hDrA/LbF9CXs9hhvHHyFAxhR /PatATj6LWoamEz4Da1HeOsZrYjskhIDIhMPsFmo4FG6JRePUZ3Kuni+6i4ILzDkNBmI SLHQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:to:references:message-id :content-transfer-encoding:cc:date:in-reply-to:from:subject :mime-version:dkim-signature; bh=+jgm8f6qLwVRwqw+onxb7pUQp2OzWLj5MWSH/TZR1lg=; b=FZxtCRLgVzc4/Yo4yCXtQTKJDW+VKutPynfM3dBNDfRwHM2FhQNUSDXC0e+X9Ux9iE hm0OE/ZVo72l+DvShvN8goIqCg5eYI1Vs5Ijti26G6OVtledeT2Y52mWhvwH0WZmOrmz vsKz5f19yEr3EvfuIGQ/NcNAffSZaCicpRwFHh8X0X9hctGoBD6zyP1H0zelGKUmXHE7 89NcKiVHExzND02QZR9cT2bC/d6eSTNdDzdpxhbIFH07uXsmSATk5PIimHW1z/A6u39c Rird7tFc8DF0kwZ0cLN6cF9C9YNU3TdutmgM99gzVcxwzRqPi0CNFVpitEFrLrzwdxUk NxgA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@dubeyko-com.20150623.gappssmtp.com header.s=20150623 header.b=k7xueK+4; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id bo18si17446207ejb.651.2021.08.09.10.54.03; Mon, 09 Aug 2021 10:54:27 -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=@dubeyko-com.20150623.gappssmtp.com header.s=20150623 header.b=k7xueK+4; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234849AbhHIRwM (ORCPT + 99 others); Mon, 9 Aug 2021 13:52:12 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35474 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234836AbhHIRwL (ORCPT ); Mon, 9 Aug 2021 13:52:11 -0400 Received: from mail-qv1-xf29.google.com (mail-qv1-xf29.google.com [IPv6:2607:f8b0:4864:20::f29]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8F15AC0613D3 for ; Mon, 9 Aug 2021 10:51:50 -0700 (PDT) Received: by mail-qv1-xf29.google.com with SMTP id em4so9460970qvb.0 for ; Mon, 09 Aug 2021 10:51:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=dubeyko-com.20150623.gappssmtp.com; s=20150623; h=mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=+jgm8f6qLwVRwqw+onxb7pUQp2OzWLj5MWSH/TZR1lg=; b=k7xueK+4mzlwQUXdMpnpVWcp6qTmXBLHD5nXWjbJU/SR8aiAO7DEpGfbhjy+eH4Ptp WiCxbmhhS5Is71rOqmUmFzG/a4XoPsYskvlWEbqBBUAnrQSi8bVfZGtNCqHAEJn86L5s oHc83AkppqSnusxvPCkGq8eHlZA9QaCChWzFUh1s3dTWITsMWM1NrF9n8En51n0mdIJX U/oWCzdQnwSpHjb/G5iTbAhtUIzFy0nwxPuDH0v8Kbxq5XJQaCp5NKMDJ6WcI/qlixSO +e5VTir7JDVGm7xN8H///ivAJvQOLY5HXnctPnchpN+NiCnxnKF1GBS9YLFnyJnGyWAb e8Nw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=+jgm8f6qLwVRwqw+onxb7pUQp2OzWLj5MWSH/TZR1lg=; b=dNJhzX8pvZzbJfAPrbxtea6nZjDoTHOuFuvu0hYP1vNlZ9Hs9C91MhDO8O6dQyqIEf a2Wrq4020LIN/AIUPibvqP7/XgcGaIFlqLVS0LVteh+AO6cs39vat1QWZoxuMC81/5ES 1cuz4WLrVGoTHW1kyDhnxk88kWlEsVrVTP6RiK3ueeGM2WKhpLxubc/wfpYkqo+FFysW 5FOFXvEO7mjoqVVYwhrLv7H9MvpVjVycs6ACzYnH2fL10SwecISiDtjk7Kv3+6QlKk8Y GV8dPiF33IaOJ9spo4zFk4oE1P+3Y3sfSM+nhLV1HmMs7NeD1/rsjVNzVxW5bvlrbv7i O/+A== X-Gm-Message-State: AOAM530h3ldktOTidVXzLmp2+Rx1AzxIpTufLJfLPh+Gst1cdK8RE/iP giWhBJkG8k6ym5XqnXbiU3x7/g== X-Received: by 2002:a05:6214:18c7:: with SMTP id cy7mr24583469qvb.59.1628531509748; Mon, 09 Aug 2021 10:51:49 -0700 (PDT) Received: from smtpclient.apple ([2600:1700:42f0:6600:615b:6e84:29a:3bc6]) by smtp.gmail.com with ESMTPSA id c27sm8499011qkp.5.2021.08.09.10.51.46 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Mon, 09 Aug 2021 10:51:49 -0700 (PDT) Content-Type: text/plain; charset=utf-8 Mime-Version: 1.0 (Mac OS X Mail 14.0 \(3654.120.0.1.13\)) Subject: Re: [RFC PATCH 02/20] hfsplus: Add iocharset= mount option as alias for nls= From: Viacheslav Dubeyko In-Reply-To: <20210808162453.1653-3-pali@kernel.org> Date: Mon, 9 Aug 2021 10:51:44 -0700 Cc: Linux FS Devel , linux-ntfs-dev@lists.sourceforge.net, linux-cifs@vger.kernel.org, jfs-discussion@lists.sourceforge.net, linux-kernel@vger.kernel.org, Alexander Viro , Jan Kara , OGAWA Hirofumi , "Theodore Y . Ts'o" , Luis de Bethencourt , Salah Triki , Andrew Morton , Dave Kleikamp , Anton Altaparmakov , Pavel Machek , =?utf-8?Q?Marek_Beh=C3=BAn?= , Christoph Hellwig Content-Transfer-Encoding: quoted-printable Message-Id: References: <20210808162453.1653-1-pali@kernel.org> <20210808162453.1653-3-pali@kernel.org> To: =?utf-8?Q?Pali_Roh=C3=A1r?= X-Mailer: Apple Mail (2.3654.120.0.1.13) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org > On Aug 8, 2021, at 9:24 AM, Pali Roh=C3=A1r wrote: >=20 > Other fs drivers are using iocharset=3D mount option for specifying = charset. > So add it also for hfsplus and mark old nls=3D mount option as = deprecated. >=20 > Signed-off-by: Pali Roh=C3=A1r > --- > fs/hfsplus/options.c | 7 ++++++- > 1 file changed, 6 insertions(+), 1 deletion(-) >=20 > diff --git a/fs/hfsplus/options.c b/fs/hfsplus/options.c > index 047e05c57560..a975548f6b91 100644 > --- a/fs/hfsplus/options.c > +++ b/fs/hfsplus/options.c > @@ -23,6 +23,7 @@ enum { > opt_creator, opt_type, > opt_umask, opt_uid, opt_gid, > opt_part, opt_session, opt_nls, > + opt_iocharset, > opt_nodecompose, opt_decompose, > opt_barrier, opt_nobarrier, > opt_force, opt_err > @@ -37,6 +38,7 @@ static const match_table_t tokens =3D { > { opt_part, "part=3D%u" }, > { opt_session, "session=3D%u" }, > { opt_nls, "nls=3D%s" }, > + { opt_iocharset, "iocharset=3D%s" }, > { opt_decompose, "decompose" }, > { opt_nodecompose, "nodecompose" }, > { opt_barrier, "barrier" }, > @@ -166,6 +168,9 @@ int hfsplus_parse_options(char *input, struct = hfsplus_sb_info *sbi) > } > break; > case opt_nls: > + pr_warn("option nls=3D is deprecated, use = iocharset=3D\n"); > + /* fallthrough */ > + case opt_iocharset: > if (sbi->nls) { > pr_err("unable to change nls = mapping\n"); > return 0; > @@ -230,7 +235,7 @@ int hfsplus_show_options(struct seq_file *seq, = struct dentry *root) > if (sbi->session >=3D 0) > seq_printf(seq, ",session=3D%u", sbi->session); > if (sbi->nls) > - seq_printf(seq, ",nls=3D%s", sbi->nls->charset); > + seq_printf(seq, ",iocharset=3D%s", sbi->nls->charset); > if (test_bit(HFSPLUS_SB_NODECOMPOSE, &sbi->flags)) > seq_puts(seq, ",nodecompose"); > if (test_bit(HFSPLUS_SB_NOBARRIER, &sbi->flags)) > --=20 > 2.20.1 >=20 Looks reasonable. But I would like to be sure that the code has been = reasonably tested. Thanks, Slava.