From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752624AbdKENjf (ORCPT ); Sun, 5 Nov 2017 08:39:35 -0500 Received: from mail-wm0-f53.google.com ([74.125.82.53]:55604 "EHLO mail-wm0-f53.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752108AbdKENjd (ORCPT ); Sun, 5 Nov 2017 08:39:33 -0500 X-Google-Smtp-Source: ABhQp+R+9WhKNMcctsTwDLCy/FgFTBeXM0kylYi7f+GSpAsSuvq3fdZYb0WL+ggflU1Wt5n3kcVL7w== Date: Sun, 5 Nov 2017 14:39:29 +0100 From: Pali =?utf-8?B?Um9ow6Fy?= To: Andy Shevchenko Cc: Andreas Bombe , Karel Zak , util-linux@vger.kernel.org, "linux-kernel@vger.kernel.org" , Andrius =?utf-8?B?xaB0aWtvbmFz?= , Curtis Gedak Subject: Re: Linux & FAT32 label Message-ID: <20171105133929.7cscboxymmpkw634@pali> References: <20171004153332.GA6696@pali> <20171011212435.znmtdnsxcd5ectub@pali> <20171011214426.wa5endlb3kb4yhbv@pali> <20171012085658.iwrusvy4ay4s7hbb@ws.net.home> <20171012092113.2bsb3pzv6un4xahr@pali> <20171012101311.zfvg6edfvszlujom@ws.net.home> <20171012204931.tfd2bhmwu5b6rbpz@pali> <20171016011243.zurh5jhb2y6mczx7@amos.fritz.box> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: User-Agent: NeoMutt/20170113 (1.7.2) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tuesday 31 October 2017 10:35:48 Andy Shevchenko wrote: > On Mon, Oct 16, 2017 at 4:12 AM, Andreas Bombe wrote: > > On Thu, Oct 12, 2017 at 10:49:31PM +0200, Pali Rohár wrote: > >> On Thursday 12 October 2017 12:13:11 Karel Zak wrote: > >> > On Thu, Oct 12, 2017 at 11:21:13AM +0200, Pali Rohár wrote: > >> > > > The best for me is to keep blkid output backwardly compatible as much > >> > > > as possible :-) > >> > > > >> > > Backward compatibility is a good reason. But what with situation when > >> > > interoperability with other systems (e.g. Windows) does not work as > >> > > expected? > >> > > >> > Then... I'm ready to do the changes to keep interoperability with the > >> > rest of the universe. It's the same situation as with UDF, you know... > >> > >> Apparently situation is not same as with UDF. For UDF we have > >> specification and basically all known UDF implementation by me were > >> compatible how to treat label except blkid (which read different think). > >> > >> For FAT32 we have 3 different linux implementations (blkid, fatlabel, > >> mlabel) and every one is slightly different in reading label (see > >> results sent in previous emails). > >> > >> What is first needed to know if implementations are willing to change to > >> be more or less same. And then decide what we want to change. > >> > >> Andreas, as fatlabel maintainer, what do you think about it? > >> > >> If you want, I can prepare patches for blkid and fatlabel to mimic > >> behavior written in proposed solution. But I think it does not make > >> sense to change just one Linux tool... > > > > I was worried that there might be some scripts or programs that expect > > If we really care about such scripts another approach might be to > introduce a CLI switch to "spec compatible mode" to each tool and > suggest in documentation to use it. > > There are also variants: > - spec compatible > - WinXX compatible > - DOS compatible > - etc I did tests with MS-DOS and Windows versions (results in previous email), and they seems to be compatible how they read label. Based on results I would suggest to ignore label from the boot sector when reading label. This makes behavior consistent with older MS-DOS systems and also all Windows systems. This change would be a problem only for users who have label stored only in boot sector. After change they would not see label anymore -- exactly same what MS-DOS or Windows show them. Seems that mkdosfs stores label to both location, since support for label was introduced. So different label would be visible only for users who used dosfslabel prior to version 3.0.16. What do you think? -- Pali Rohár pali.rohar@gmail.com