Received: by 10.223.164.202 with SMTP id h10csp79937wrb; Thu, 9 Nov 2017 03:05:55 -0800 (PST) X-Google-Smtp-Source: ABhQp+QVycK+xqrjxzXgjRf+Q9UPmGDEhWNUrQ75EqK0k6TRseHbYi8Sc5UT5GCq6MYrtm08VgJB X-Received: by 10.84.192.37 with SMTP id b34mr59660pld.451.1510225555867; Thu, 09 Nov 2017 03:05:55 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1510225555; cv=none; d=google.com; s=arc-20160816; b=HF98U+4XRCcjszl9O4IHl2Zd4FrpusL/trQPajj/Nw4wETBa/3t/M+cz6dnIgtEO92 whIZ6i0Xt0FmC/rQ+KDqNk7tGZb2+sPV83jkkodorf2fOAon5VBNKM38I6EXvrj4sINA ug+zLaWX/RYe5u/deVAARttg8URiBJiEIgW4pEnSuNURXXSgwVGynHq+d8TD7rubu2/Q sZlQg9qQ5UQl15YpPAJ2vgRKr1KtHdb+9/b9fKd/xhG5wH4xYpqUyoozewb35bJ0hMq5 fXZ6eTUU1c1lY8gjyhwsfUYXE0FfVUJqa0lAEVE8AslYD0Xvo6INjHM12xI0WvPqfcpt 41ZQ== 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 :arc-authentication-results; bh=lV38O90rEw6Z0hFkrGNK6jc8u5IjQltKVdoMHcMruNw=; b=OLdnSc/cx2Olh1fqpYEbV8dJe3ZU6THXLZyBHfv0k4PIdRWOnmP524YbdQ/TAd0ER2 9K4kTKbuQBzmmdjYk9cksWpzOcxDeM9Ug+lG9mHeNwvFmU2DyowTmaZWoZNi4nuNGVPv 8T5AACEyvwBY92hrfSH96kuBnOwGLKnAwtzLm7SNjwjOOGFEYjeo5yXBgyKO85Mvg/6j q+NQQiOEhmxTF/7FON2aHDnJs3OjYBMVepeQGGhQjU5kzseCDVi8Y0ly4TWHVQuMkZ7M X+Vx/Yfma4zN0tQLYrtcQVaUgiy79Ef70IaoIl5i864OZa05f8x8FDQvZ/ndCu/89726 Kkjw== 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 d72si6432422pfe.73.2017.11.09.03.05.44; Thu, 09 Nov 2017 03:05:55 -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; 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 S1753556AbdKILDC (ORCPT + 81 others); Thu, 9 Nov 2017 06:03:02 -0500 Received: from mx1.redhat.com ([209.132.183.28]:43842 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751765AbdKILDA (ORCPT ); Thu, 9 Nov 2017 06:03:00 -0500 Received: from smtp.corp.redhat.com (int-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.12]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id E04EE883D7; Thu, 9 Nov 2017 11:02:59 +0000 (UTC) Received: from ws.net.home (ovpn-117-83.ams2.redhat.com [10.36.117.83]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 7893860C89; Thu, 9 Nov 2017 11:02:57 +0000 (UTC) Date: Thu, 9 Nov 2017 12:02:54 +0100 From: Karel Zak To: Pali =?iso-8859-1?Q?Roh=E1r?= Cc: Andy Shevchenko , Andreas Bombe , util-linux@vger.kernel.org, "linux-kernel@vger.kernel.org" , Andrius =?utf-8?B?xaB0aWtvbmFz?= , Curtis Gedak , Pavel Machek Subject: Re: Linux & FAT32 label Message-ID: <20171109110254.to37iuydtbpqypjy@ws.net.home> References: <20171012204931.tfd2bhmwu5b6rbpz@pali> <20171016011243.zurh5jhb2y6mczx7@amos.fritz.box> <20171105133929.7cscboxymmpkw634@pali> <20171105140745.ze4ttkazeczrqsy7@pali> <20171105143411.aynz5tr3igobuh6e@pali> <20171106101444.m5kxevutsdxx34kl@ws.net.home> <20171109085909.b6b5m35qeul3orrx@pali> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20171109085909.b6b5m35qeul3orrx@pali> User-Agent: NeoMutt/20170912-66-504cd9 X-Scanned-By: MIMEDefang 2.79 on 10.5.11.12 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.26]); Thu, 09 Nov 2017 11:02:59 +0000 (UTC) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Nov 09, 2017 at 09:59:09AM +0100, Pali Roh�r wrote: > What about exporting e.g. BOOT_LABEL field from libblkid for vfat disks? > LABEL (which is shown to user, e.g. in GUI) would be that one from root > directory (same which is used by label on MS-DOS and Windows) and > BOOT_LABEL would be from boot sector. If somebody really needs to know > current label stored in boot sector he would be able to do it via blkid. > Also it would be possible then via blkid to read exact label stored in > root directory and also read what is stored in boot sector. Because > currently it is not possible to know from which location LABEL comes > from. This is good idea, there is no problem to export additional information about filesystems. We already use it for another filesystems too. Note, these details are visible for low-level probing (blkid -p) and udev only. The high-level API follows LABEL only. Maybe it would be better to use LABEL_BOOT= or LABEL_FATBOOT= as name. The important thing is the default behavior of the LABEL, this is what use mount(8) and another tools. Karel -- Karel Zak http://karelzak.blogspot.com From 1583578515857215114@xxx Thu Nov 09 09:02:38 +0000 2017 X-GM-THRID: 1580341666501472641 X-Gmail-Labels: Inbox,Category Forums,HistoricalUnread