[nfsv4] comment w.r.t. fs_charset_cap in draft-ietf-nfsv4-internationalization-03

Rick Macklem <rmacklem@uoguelph.ca> Sun, 09 October 2022 21:34 UTC

Return-Path: <rmacklem@uoguelph.ca>
X-Original-To: nfsv4@ietfa.amsl.com
Delivered-To: nfsv4@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 3685FC14F73F for <nfsv4@ietfa.amsl.com>; Sun, 9 Oct 2022 14:34:01 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.107
X-Spam-Level:
X-Spam-Status: No, score=-2.107 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_BLOCKED=0.001, RCVD_IN_MSPIKE_H2=-0.001, RCVD_IN_ZEN_BLOCKED_OPENDNS=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01, URIBL_BLOCKED=0.001, URIBL_DBL_BLOCKED_OPENDNS=0.001, URIBL_ZEN_BLOCKED_OPENDNS=0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (2048-bit key) header.d=uoguelph.ca
Received: from mail.ietf.org ([50.223.129.194]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 3EomwrhCnEww for <nfsv4@ietfa.amsl.com>; Sun, 9 Oct 2022 14:33:57 -0700 (PDT)
Received: from CAN01-YT3-obe.outbound.protection.outlook.com (mail-yt3can01on2073.outbound.protection.outlook.com [40.107.115.73]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 0175BC14F728 for <nfsv4@ietf.org>; Sun, 9 Oct 2022 14:33:56 -0700 (PDT)
ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=VgCgaU3k1Mrvzcu9x/DzdiOvlHE9gZg9Yk4cE5Q+be52iHVxmj2I4cXNmQXX8vlJjgMcYv4mT9Do2rvh6+TyI52pdGZu4uE9FsH+QNkOaZIw/6iQpYKvMLFxn1HRmonbfHoMytuuMhJbJjuBPwSUkVPi5557Iaosa1H/Q3NSNWIcknSQ4p9qWvVaFhL7LNdHhbvHsFjxJdpsY8GuXXMWH5kXNTQ/P1I4PgqsKbces+dQvgPFWC2wsFndA32Li/YzumHzykEyClb0FxstlaLyMYO6554KHh1NTP3lrvRyYjS3yT2sNsYBhvl/CwaReNqJoZ3opIgA/y1McCuCbGpy0w==
ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=4es9mfoTjc0ym2w3eMCA6BEk5ofNPq5NnAYnsDKqDwo=; b=i5cZR+AOKfRKiX/pUhshA6k+BfAGJdiNfzQ3syxrv4VhX+MsO3jVM0t5Mxlwkrkon1X75WpTJc92nMqnkPwpeawp55x7LWuhZArUIB8U6p3ve7bFnO4a48yGBchksric73qGlWjn4XGpHCgQ7AiOHj46/g15ndYZahu0IJ5So42bB+jd4qv4yrwwBs9eyebhNeVs7qmk8z08oweiy/G4c6QzDPDegEGdeTGsRqi4gXwXPYMLFhsJ/UTNeU/Cyza83STKO4b+PkyvrWO1XBMLIZNx/V5SeToTtdJ/Ls1cbog8ietgaq5rA2OT4wIys5Ua25gPSU+/Vp2K+5p6qS4WSw==
ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=uoguelph.ca; dmarc=pass action=none header.from=uoguelph.ca; dkim=pass header.d=uoguelph.ca; arc=none
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=uoguelph.ca; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=4es9mfoTjc0ym2w3eMCA6BEk5ofNPq5NnAYnsDKqDwo=; b=B2RtHfhhA0Re8ubdOxnnwdJ9KqRnGC4bduEbiFV0lFY37U3nxgRXfPSq5dyltBmdDyCjR+7OZqRzbptXoozgi1izbqHuV4vTcKg41z3G1IYQKHJcTNs4ci3QLBEXINwDTpTN4VFIoAHQtM9r4fHDfE41rj8dkoGt2VU8DY1NidqOPAejc21eSI6WJ1dgH24a8M5J5VABr1eZ8fXBMJontdaVydt94XcT1I1Zvt3q3BG70Zka4bUSV193XjNk9fW35rAQ6jjABUawTvDLtohsAWapqKX+0WFB8Pm4l+TEiM0Fwgg565XXhpIqLjqoXthld9SwGdOp+cV49nJUxk6Gsg==
Received: from YQXPR01MB4150.CANPRD01.PROD.OUTLOOK.COM (2603:10b6:c01:6::7) by YT3PR01MB6244.CANPRD01.PROD.OUTLOOK.COM (2603:10b6:b01:67::9) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5709.15; Sun, 9 Oct 2022 21:33:54 +0000
Received: from YQXPR01MB4150.CANPRD01.PROD.OUTLOOK.COM ([fe80::b4f6:11cc:78:9281]) by YQXPR01MB4150.CANPRD01.PROD.OUTLOOK.COM ([fe80::b4f6:11cc:78:9281%5]) with mapi id 15.20.5676.036; Sun, 9 Oct 2022 21:33:54 +0000
From: Rick Macklem <rmacklem@uoguelph.ca>
To: David Noveck <davenoveck@gmail.com>
CC: "nfsv4@ietf.org" <nfsv4@ietf.org>
Thread-Topic: comment w.r.t. fs_charset_cap in draft-ietf-nfsv4-internationalization-03
Thread-Index: AQHY3CTlK1xSR+9gSUOjM27tzrrasw==
Date: Sun, 09 Oct 2022 21:33:53 +0000
Message-ID: <YQXPR01MB4150B936E43C7A36DCE31BB1DD219@YQXPR01MB4150.CANPRD01.PROD.OUTLOOK.COM>
Accept-Language: en-US
Content-Language: en-US
X-MS-Has-Attach:
X-MS-TNEF-Correlator:
msip_labels:
authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=uoguelph.ca;
x-ms-publictraffictype: Email
x-ms-traffictypediagnostic: YQXPR01MB4150:EE_|YT3PR01MB6244:EE_
x-ms-office365-filtering-correlation-id: 998db3be-e761-45b1-79e6-08daaa3df6f8
x-ms-exchange-senderadcheck: 1
x-ms-exchange-antispam-relay: 0
x-microsoft-antispam: BCL:0;
x-microsoft-antispam-message-info: kpnTj3hNPc2tdb7Jby6oSkDqvIwwIXmKG9C4jwiOrPWuiN4HkxasaoBgFySh3K88y2qUFxzr4tKnXmXrCTOxQ+gLqtWKtjD14Ran4zx2AEtnP7JPTt7/D8CKC1XfsoU4oyarWVlSwj9q2HNCx1O1/p59b+Dd4YyWQ58GLf7GStLq+mXQpnLxHcubL6b9AJEtpStlKvchKosf3WRtiXxN2wNyui6x2LCJ+i7JORfZ+euVoWti2YdfRIHKjrA6bsEJZdOb+rcAibfPmBwwIUnCgduL9u29JPBgXMK1D0ey3PoMueJXGTK8gBmhHUdCn6zxm+QrmHDmKkTeGFHY2ToPWD+vxzLEMvg+j8B8pjdoRPIAq+7H/9R3ktUvO7rLStLNqH2vLCWJ4lX1FVs/S2Dp8LzWMn+PQYj+FFQ2XX3Uf5XGUs7Z37eMbNCvLS16aIQAAt2kNq9l3Sya7EA8L0xDY2W+RxuAPfcJDNVRaBDkf6TWcfJ4/HuTS23CKCo6kcBWTpQV7LbM2V7vl9wLykzqGdOx6YW1GNkx4CAJrWNgTtw2WHqqMtduEKLFeCrlGfAhn33d3dOiK4Al61Q7q0AOEy6Lskt7/5KKyNbVZMtE5UwhwVHjYwPIlRhsnH7e9oD/K6k7R3ZjzHINl59BrS4D1k0+9ydHmwPQUzUhG0tC1A/nfzL9Qr3Sdhx4e74V99W0Ks2vTgRHFWXsRObfSqRTff+il+Hrsx0+t/2Wp+ZtB8QOqp3FRSiXb12zLaCJR7eZX7esFAwYSV2C6DN4sf/htQ==
x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:YQXPR01MB4150.CANPRD01.PROD.OUTLOOK.COM; PTR:; CAT:NONE; SFS:(13230022)(4636009)(376002)(136003)(366004)(396003)(346002)(39860400002)(451199015)(71200400001)(186003)(2906002)(41320700001)(6916009)(64756008)(8676002)(33656002)(66476007)(76116006)(4326008)(66446008)(66556008)(66946007)(316002)(786003)(41300700001)(8936002)(91956017)(478600001)(5660300002)(9686003)(38070700005)(6506007)(55016003)(86362001)(52536014)(7696005)(38100700002)(122000001)(83380400001); DIR:OUT; SFP:1101;
x-ms-exchange-antispam-messagedata-chunkcount: 1
x-ms-exchange-antispam-messagedata-0: 3Ls2ZcFY6tH0F135LAsy6wGMGlj+nwfbo6gZH8OyiP5XiHHborFoZXoTxqElIPDpWmhgaIcxpTylS2zFb+1IoVzDbmGi2Seyv/OO/uIhRFfiW+mA4Qjr5kVuiEVhA3t064n9AYt3KkttmPIrph6v0/7t2V4j2goDjsFMrA8H4gPxMaXOUtW6jsFT/wsrwnL9Fc0vy3HShVvR/sES95P3oBHfybgcriV394tBf6nK2CsONxrZvQIcVZ4pGpLNwqxGSUibkrLiOpS4QDP2WKR5O2brQ3V9uui01CIHA4UjxETZxoOAL4GMp78uixkHBQ/cfW+rmkmbxFzPqeUgZ+kYZupeIZdGEcB749Tg6Hb/UUN65JpxvbprTZrj+/j56uX6hy0Hb09hp+cJ4mxA9JpzdlS223fZ+VTL1YYBsc+OFsQKtS1JlSNfp87Akb37ZV7wPsblZv+JgGvMJyCL+oaLC8AWeWR0moLh+IcFxiofKIFmnaRCgWviSJ/4Sy6Axq0rfHhw1pl5MagmASO6BD0a84JVdKQCJ3qDry3GfFOluPgGWiN0OFoM26hvFjzl+x1XmueIXifAvppmRaTVuFUNw5biP94N9r7RG4QgC16TZhwNrvX9Kq7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printable
MIME-Version: 1.0
X-OriginatorOrg: uoguelph.ca
X-MS-Exchange-CrossTenant-AuthAs: Internal
X-MS-Exchange-CrossTenant-AuthSource: YQXPR01MB4150.CANPRD01.PROD.OUTLOOK.COM
X-MS-Exchange-CrossTenant-Network-Message-Id: 998db3be-e761-45b1-79e6-08daaa3df6f8
X-MS-Exchange-CrossTenant-originalarrivaltime: 09 Oct 2022 21:33:53.9084 (UTC)
X-MS-Exchange-CrossTenant-fromentityheader: Hosted
X-MS-Exchange-CrossTenant-id: be62a12b-2cad-49a1-a5fa-85f4f3156a7d
X-MS-Exchange-CrossTenant-mailboxtype: HOSTED
X-MS-Exchange-CrossTenant-userprincipalname: A23IUGBm/zLm3zW+mGM1cBmEGpLg+bfK3Z/dCBO+bxmWaOEyBHtV5HtUM1hHhNmk8R36ElQwqHsMQqRfCJqXXA==
X-MS-Exchange-Transport-CrossTenantHeadersStamped: YT3PR01MB6244
Archived-At: <https://mailarchive.ietf.org/arch/msg/nfsv4/Zu-0Tk2Tcm2vcQMmcrU2ItNKLv4>
Subject: [nfsv4] comment w.r.t. fs_charset_cap in draft-ietf-nfsv4-internationalization-03
X-BeenThere: nfsv4@ietf.org
X-Mailman-Version: 2.1.39
Precedence: list
List-Id: NFSv4 Working Group <nfsv4.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/nfsv4>, <mailto:nfsv4-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/nfsv4/>
List-Post: <mailto:nfsv4@ietf.org>
List-Help: <mailto:nfsv4-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/nfsv4>, <mailto:nfsv4-request@ietf.org?subject=subscribe>
X-List-Received-Date: Sun, 09 Oct 2022 21:34:01 -0000

Hi,

I don't think I completely agree with this paragraph in the draft:

      With regard to the flag FSCHARSET_CAP4_CONTAINS_NON_UTF8, it has
      proved impossible to determine, from existing treatments of this
      attribute, any value that might be helpful here.  As a result, we
      are forced to assume that this flag is always a complement of
      FSCHARSET_CAP4_ALLOWS_ONLY_UTF8 and that any result in which it is
      not so is to be ignored, with the appropriate handling being the
      same as would apply if the attribute were not supported.

I believe that is possible to have a server that would return a
fs_charset_cap4 == 0 (ie neither flag set).
- Such a server would allow non-UTF8 component names.
- There are no non-UTF8 file names in the server's directory tree.

Now, whether or not this case is useful to a client is questionable,
but it does seem to be possible to have neither flag set.
(I, personally, would have preferred the following wording for the
 two flags, but I'd guess that would be a change in semantics not
 allowed for this document?)

For the first flag:
     The first
      flag is FSCHARSET_CAP4_CONTAINS_NON_UTF8, which, if set to one,
      tells the client that the file system contains non-UTF-8
--> I would have preferred "might contain" instead of "contains" since,
       as you note, a file system is unlikely to keep track of the count of
       non-UTF8 file name components and flip this bit based on that count.

For the second flag:
     The second flag is FSCHARSET_CAP4_ALLOWS_ONLY_UTF8, which, if set
      to one, indicates that the server will accept (and generate) only
      UTF-8 characters on the file system.
--> I would have preferred this without the "(and generate)" since that is
       what the FreeBSD server can optionally do. It either does the first flag
       or it checks for UTF-8 for component name arguments, but allows non-UTF8
       names in replies to Readdir, etc.
       --> This was my interpretation of RFC3530 long ago, w.r.t. checking for UTF-8
              component names.
Put another way, the FreeBSD server can optionally be configured to not allow the
Lookup/Open.. of non-UTF8 component names, but they could exist in the file system
via NFSv3 or local POSIX open(O_CREAT) and they will be in a Readdir reply.
(This might be my mis-interpretation of RFC3530, but since you have been interested
 in extant implementations...)

The FreeBSD server does not implement the fs_charset_cap attribute, btw.

rick