Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp1387952imm; Fri, 27 Jul 2018 16:52:47 -0700 (PDT) X-Google-Smtp-Source: AAOMgpegIm+Ibb3WU/zYMjaQcMuIuRjTYLkcPIEIaWdeMoIkv6bAoQWivGgR/LEZ3QbCWAW77UKS X-Received: by 2002:a63:bf43:: with SMTP id i3-v6mr7888622pgo.342.1532735567696; Fri, 27 Jul 2018 16:52:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1532735567; cv=none; d=google.com; s=arc-20160816; b=RbISJQTTyWZ5lkEOYjwLgusEa2qlrtES3SoxDX8a7DPTNhROsvalAt50DwF+d8ZB3H tS1TDQHAVKDrW55hzsDNlJ54ILtfRjF1U75WIVMGUHz9QNAMAZFIauJf8sCLKJ9TDMu6 GGcFi+Zf9w/VRyzoY8QGdtktN7g60jNhOBgGjziK04wfDDNk6h0D89Wfx09GUbnvpUMo t+1PYNjYlIwUaOFQ0DZJZENw2eYriWML1Mo/ha1UkQMXbLupqZGt4Cj1rysPfgLqBWA2 333k7OZqEEvns9gpNHsMbTshdJVlnzqRAXMIgzaM7LcrkwZvcgopDzmZSqLLmqWzwXIZ xVXw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:to:message-id:date :content-transfer-encoding:content-id:mime-version:subject:cc :references:in-reply-to:from:organization:arc-authentication-results; bh=Xb0mT6l6RJ73uhccG7gE18bMPIksWgSKKOlnfH9WgbA=; b=slYhrKRSiTZbozEAjGs22WotUwk5Z65haKZ3GS2ClqVGhr44ugwe/+jtOycIKRFskp C/9y30MZvs5IK/djnPow8/rLymYatrYJd4f6198ap/REN5YpZS7KON6nxL7a29uONwvv AQS7lo6PwGjOJNxA8wn9kQDOBcCev2d4M51PSscUDn3bQ8ugqpxVi/Zb/MMrbRuT0sp9 OmI3fTIthmNk0/N1NsIHTprE2ABN647+UkA7PzT5DaMFFdI2RoXCyQfCii3W8khfVscP iXgepllYOIKlXc/RqjAGCConr03PdriNSPWEWEHTX6HT32qUX27nyePRRitqg8GRBiV2 zjFw== 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 138-v6si4948184pga.188.2018.07.27.16.52.33; Fri, 27 Jul 2018 16:52:47 -0700 (PDT) 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2389126AbeG1BQA convert rfc822-to-8bit (ORCPT + 99 others); Fri, 27 Jul 2018 21:16:00 -0400 Received: from mx3-rdu2.redhat.com ([66.187.233.73]:52520 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S2388621AbeG1BP7 (ORCPT ); Fri, 27 Jul 2018 21:15:59 -0400 Received: from smtp.corp.redhat.com (int-mx05.intmail.prod.int.rdu2.redhat.com [10.11.54.5]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 1F8B440216E8; Fri, 27 Jul 2018 23:51:47 +0000 (UTC) Received: from warthog.procyon.org.uk (ovpn-120-116.rdu2.redhat.com [10.10.120.116]) by smtp.corp.redhat.com (Postfix) with ESMTP id 422301C5B8; Fri, 27 Jul 2018 23:51:46 +0000 (UTC) Organization: Red Hat UK Ltd. Registered Address: Red Hat UK Ltd, Amberley Place, 107-111 Peascod Street, Windsor, Berkshire, SI4 1TE, United Kingdom. Registered in England and Wales under Company Registration No. 3798903 From: David Howells In-Reply-To: <21395.1532735340@warthog.procyon.org.uk> References: <21395.1532735340@warthog.procyon.org.uk> <153271267980.9458.7640156373438016898.stgit@warthog.procyon.org.uk> <153271291017.9458.7827028432894772673.stgit@warthog.procyon.org.uk> Cc: dhowells@redhat.com, Jann Horn , Al Viro , Linux API , Linus Torvalds , linux-fsdevel@vger.kernel.org, kernel list Subject: Re: [PATCH 34/38] vfs: syscall: Add fsinfo() to query filesystem information [ver #10] MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <21745.1532735504.1@warthog.procyon.org.uk> Content-Transfer-Encoding: 8BIT Date: Sat, 28 Jul 2018 00:51:44 +0100 Message-ID: <21746.1532735504@warthog.procyon.org.uk> X-Scanned-By: MIMEDefang 2.79 on 10.11.54.5 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.11.55.5]); Fri, 27 Jul 2018 23:51:47 +0000 (UTC) X-Greylist: inspected by milter-greylist-4.5.16 (mx1.redhat.com [10.11.55.5]); Fri, 27 Jul 2018 23:51:47 +0000 (UTC) for IP:'10.11.54.5' DOMAIN:'int-mx05.intmail.prod.int.rdu2.redhat.com' HELO:'smtp.corp.redhat.com' FROM:'dhowells@redhat.com' RCPT:'' To: unlisted-recipients:; (no To-header on input) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org David Howells wrote: > One thing I'm confused about is that fat has both a codepage and a charset and > I'm not sure of the difference. In fact, it's not clear that the codepage is actually used. warthog>git grep '[.>]codepage' fs/fat/inode.c: opts->codepage = fat_default_codepage; fs/fat/inode.c: opts->codepage = option; fs/fat/inode.c: sprintf(buf, "cp%d", sbi->options.codepage); David