Received: by 2002:a05:6a10:1d13:0:0:0:0 with SMTP id pp19csp444041pxb; Thu, 19 Aug 2021 03:26:11 -0700 (PDT) X-Google-Smtp-Source: ABdhPJytnVAfXN/fQ9lQ4Q685Y7hLbcGR6hb/Q26sFQ6z+y2YsJq3rMdq0FgBQ1I3QwZy2frz2SX X-Received: by 2002:a17:907:c12:: with SMTP id ga18mr7413448ejc.107.1629368771287; Thu, 19 Aug 2021 03:26:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1629368771; cv=none; d=google.com; s=arc-20160816; b=TvndlfFDV/ESrDHy8SCFV/xjWLOTlRDnfI1DiXmr/qpxBb6FBNYQ9ovM0Kxod5spY1 cWkzqvfaIu1k68nuQ6DDYDOA3XjZmxuMovr6bXxir0HGKJ8LSn/H2DgNJjP47BZqzga1 33gmA80AlKcb8XR35qwCPePn1Bt02LFYeII+b5OhIrRQIy0yBem0pe/zB+eWqT4Cz3u5 KviW10I69JxBwTuzWRZdZpFbQBAJLUYO4625ABo3BRpE8X0Xl+jHYdqFdSPDDByOsmjt Kkxj2J0fercbE9I2DZ7q4E4Y19YbG1FZvgdn6o/VTdqgXnyjv5gktQRcMRUnwRDmXPiL JEQA== 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=s7gzHcAvUGRal7zGjfCj1tvyGgqr2i8nXDn4Q3sKzQk=; b=fe6nqmcGl0IPW2LStDLSFGJQN6zJS0i5Bt2yxgp3zKT1l3eEGetXoJGd2GQOVUe8jt zl9UQFmAoh8o0+RuJbB8d0/zL+GhC3ORGFkmVlxhd1Ww/Rm0bifbVgy+TekLuq/J9BG1 kLPhdkJiGbU3tSo0h/q21ZDn+fSVccrmWiBZ4QwJE1MR2bXD2hGmK3WWK7u/2FSWRyam jIaaEWjkaI8VahZyHrTFmv0rGfxABtvQUrPc1MWzRx2wxugEfyVCR87dGVV/7ApOVRgj mHKX5R1cb0WxXr5a2jjrYr+L1vZrkzvlCQsEtOOIRyf5Ctg+CKVEajkgjKlJAkGDCGwK y7Eg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=Mfyx9RZf; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id d22si2810219edx.92.2021.08.19.03.25.42; Thu, 19 Aug 2021 03:26:11 -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=@gmail.com header.s=20161025 header.b=Mfyx9RZf; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S238156AbhHSKYY (ORCPT + 99 others); Thu, 19 Aug 2021 06:24:24 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42222 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236149AbhHSKYX (ORCPT ); Thu, 19 Aug 2021 06:24:23 -0400 Received: from mail-lj1-x22a.google.com (mail-lj1-x22a.google.com [IPv6:2a00:1450:4864:20::22a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 06532C061575; Thu, 19 Aug 2021 03:23:47 -0700 (PDT) Received: by mail-lj1-x22a.google.com with SMTP id f2so10706451ljn.1; Thu, 19 Aug 2021 03:23:46 -0700 (PDT) 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; bh=s7gzHcAvUGRal7zGjfCj1tvyGgqr2i8nXDn4Q3sKzQk=; b=Mfyx9RZf49s53j40JmyfZM1lJWT/tSB5dUUVPbPQyL1z9vJPwL8wxRbIWIw1ek9N3P FCdsucQWgjUO4i8U/uWO19zPjJzxYSv3B0ps89+KpLOFQzlQyZ6Q7gYJ2o5hH9x7boZK 0hHxub5elRpkprNhLwVf8Z35OTkvNjcpWTknPnUzIBddpJWPGpp3zCNq/CF6jdEH4/1D csNUXhEd/S70aZEY370wZybpR4RAhznZFB5p5DHOjaZ2WPdH7bCuyDoZ+Tfjryp/J9k9 jYZ0Z5Ysn3Bx4t7gZi58GygFNtApzoSEW/Ha01maSBtlbczhdiMyi5YMIFmIRLeiyk2A QqNQ== 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; bh=s7gzHcAvUGRal7zGjfCj1tvyGgqr2i8nXDn4Q3sKzQk=; b=rq44BOmXdILfAJyNIXRVziPFsFyEf6MyOAiWUrtctZxBarDUYDiFMlCs6AFtWoaFZM XurCopVlNQ9Ctra5OD60OugOSRmiw9M0y7M9Wxx1iF24FZaAM7CrOxh/pg46huBncVe/ NK4I45+x4FBYy0cirFUSPh5GgtMYkLJGUb2Hs+ByIi/eSqcf6iJJTE3qutZxkxAhCIFY eeia/Xz4EaGL7x0xtg8b2JicI/5S/AjoX3v/ubtqv2iQKYSWIr4rgYnfiluXF48EK1r/ wM+E5HDQ/JhwlcjKmudv7QS550nLl9KPLQo5RJG16bGbzOwg1E1cgs+IxXnglYzIIuvY oyGQ== X-Gm-Message-State: AOAM532/UDrVrTakUDyD4YuUYLUq18nC4VSfHSLHxicVTZ6rZD01okNE F7uKYCMiOQSaeYLgsSRUIMQ= X-Received: by 2002:a2e:2f1c:: with SMTP id v28mr11179313ljv.476.1629368625379; Thu, 19 Aug 2021 03:23:45 -0700 (PDT) Received: from kari-VirtualBox (85-23-89-224.bb.dnainternet.fi. [85.23.89.224]) by smtp.gmail.com with ESMTPSA id i21sm262452lfc.92.2021.08.19.03.23.44 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 19 Aug 2021 03:23:44 -0700 (PDT) Date: Thu, 19 Aug 2021 13:23:42 +0300 From: Kari Argillander To: Pali =?utf-8?B?Um9ow6Fy?= Cc: linux-fsdevel@vger.kernel.org, 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 , Marek =?utf-8?B?QmVow7pu?= , Christoph Hellwig Subject: Re: [RFC PATCH 05/20] ntfs: Undeprecate iocharset= mount option Message-ID: <20210819102342.6ps7lowpuomyqcdk@kari-VirtualBox> References: <20210808162453.1653-1-pali@kernel.org> <20210808162453.1653-6-pali@kernel.org> <20210819012108.3isqi4t6rmd5fd5x@kari-VirtualBox> <20210819081222.vnvxfrtqctfev6xu@pali> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20210819081222.vnvxfrtqctfev6xu@pali> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Aug 19, 2021 at 10:12:22AM +0200, Pali Roh?r wrote: > On Thursday 19 August 2021 04:21:08 Kari Argillander wrote: > > On Sun, Aug 08, 2021 at 06:24:38PM +0200, Pali Roh?r wrote: > > > Other fs drivers are using iocharset= mount option for specifying charset. > > > So mark iocharset= mount option as preferred and deprecate nls= mount > > > option. > > > > One idea is also make this change to fs/fc_parser.c and then when we > > want we can drop support from all filesystem same time. This way we > > can get more deprecated code off the fs drivers. Draw back is that > > then every filesstem has this deprecated nls= option if it support > > iocharsets option. But that should imo be ok. > > Beware that iocharset= is required only for fs which store filenames in > some specific encoding (in this case extension to UTF-16). For fs which > store filenames in raw bytes this option should not be parsed at all. Yeah of course. I was thinking that what we do is that if key is nls= we change key to iocharset, print deprecated and then send it to driver parser as usual. This way driver parser will never know that user specifie nls= because it just get iocharset. But this is probebly too fancy way to think simple problem. Just idea. > Therefore I'm not sure if this parsing should be in global > fs/fc_parser.c file...