Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp8347014ybi; Tue, 9 Jul 2019 13:57:35 -0700 (PDT) X-Google-Smtp-Source: APXvYqwX7nOkmmZd52ZEfWNATlO9xZEDTZskoHf7txeUMEp3Oqo9qU5NQxEjaR7YcUZKfRdtN68j X-Received: by 2002:a63:6f8f:: with SMTP id k137mr32773668pgc.90.1562705854760; Tue, 09 Jul 2019 13:57:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1562705854; cv=none; d=google.com; s=arc-20160816; b=0SuOuRLqjqMvjBGVxrAjf95WvuiojvDPXhdBTNjvY61ZHhQ1UZvxEseLPPqNjZFMRY hGHXlomg/MyO5zUvtR6/W8iOTDsKcaTnkEIJ954J9z9I4v5Cs6JRDiP7uuX/PaEkK+F2 NS59ZpjaJ39q/Ni+JsqWkhn38M0/YuRqkaRNpN3Wqr16w/z0qESOrGLXx5FOJ8S/n4wu Q0abWp8vrChbBvC6UBeFATTj31kEXgET91ZlOh8KBHuVm7ojK4Qmbp9MoXYrsT6GFy9p a7rA2ktMKmCqRDVa9CtswJGvm492370/jnKRE5f5tQtLbc8XKh7iiRTJULW0HOaIJ3p9 QSrQ== 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-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=SWBk9OQzkWFG3XobuMvO6cGxeH1Rf9R4iZv+2SrKmU8=; b=dkUXQJOJf4SGolWjStNArPPHaIqcph6Njot0qGE7Oc7/bEXBWvgmvlw2qi2MAypGQc nockR41jygZiDa7ce5vGiCCXmUihi3T0ukPv+V/TtHB/6LxA94VD3u4tini0i5vfntHZ o1mfa1Xo33KO1w+1OGnnf+nru96k4vpI9ssWUlY9WZmasDttZG7i85Cg6YYclqp4Z441 sdudvlUt1d0DOyQ1NcDLhocu77ayLqE0v1e+E1RmOoHu+W3rjTKn8/vejNNUfZ1zOaDX 2PhVV+6bwnhwPKUQ454NQvvnGk/hwNlqmU12chyO6Mbx+aH90fwRJvezkNH/FTx+zQmh MU2A== 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id h68si23509plb.281.2019.07.09.13.57.19; Tue, 09 Jul 2019 13:57:34 -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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729685AbfGITzq (ORCPT + 99 others); Tue, 9 Jul 2019 15:55:46 -0400 Received: from mx2.suse.de ([195.135.220.15]:50402 "EHLO mx1.suse.de" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1728991AbfGITzp (ORCPT ); Tue, 9 Jul 2019 15:55:45 -0400 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (unknown [195.135.220.254]) by mx1.suse.de (Postfix) with ESMTP id A985CAC84; Tue, 9 Jul 2019 19:55:44 +0000 (UTC) Received: by quack2.suse.cz (Postfix, from userid 1000) id 1E77D1E4376; Tue, 9 Jul 2019 21:55:35 +0200 (CEST) Date: Tue, 9 Jul 2019 21:55:35 +0200 From: Jan Kara To: Steve Magnani Cc: Jan Kara , Pali =?iso-8859-1?Q?Roh=E1r?= , linux-fsdevel@vger.kernel.org, "linux-kernel@vger.kernel.org" Subject: Re: [RFC] udf: 2.01 interoperability issues with Windows 10 Message-ID: <20190709195535.GA509@quack2.suse.cz> References: <96e1ea00-ac12-015d-5c54-80a83f08b898@digidescorp.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <96e1ea00-ac12-015d-5c54-80a83f08b898@digidescorp.com> User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi! On Tue 09-07-19 13:27:58, Steve Magnani wrote: > Recently I have been exploring Advanced Format (4K sector size) > and high capacity aspects of UDF 2.01 support in Linux and > Windows 10. I thought it might be helpful to summarize my findings. > > The good news is that I did not see any bugs in the Linux > ecosystem (kernel driver + mkudffs). > > The not-so-good news is that Windows has some issues that affect > interoperability. One of my goals in posting this is to open a > discussion on whether changes should be made in the Linux UDF > ecosystem to accommodate these quirks. > > My test setup includes the following software components: > > * mkudffs 1.3 and 2.0 > * kernel 4.15.0-43 and 4.15.0-52 > * Windows 10 1803 17134.829 > * chkdsk 10.0.17134.1 > * udfs.sys 10.0.17134.648 > > > ISSUE 1: Inability of the Linux UDF driver to mount 4K-sector > media formatted by Windows. > > This is because the Windows ecosystem mishandles the ECMA-167 > corner case that requires Volume Recognition Sequence components > to be placed at 4K intervals on 4K-sector media, instead of the > 2K intervals required with smaller sectors. The Linux UDF driver > emits the following when presented with Windows-formatted media: > > UDF-fs: warning (device sdc1): udf_load_vrs: No VRS found > UDF-fs: Scanning with blocksize 4096 failed > > A hex dump of the VRS written by the Windows 10 'format' utility > yields this: > > 0000: 00 42 45 41 30 31 01 00 00 00 00 00 00 00 00 00 .BEA01.......... > 0800: 00 4e 53 52 30 33 01 00 00 00 00 00 00 00 00 00 .NSR03.......... > 1000: 00 54 45 41 30 31 01 00 00 00 00 00 00 00 00 00 .TEA01.......... > > We may want to consider tweaking the kernel UDF driver to > tolerate this quirk; if so a question is whether that should be > done automatically, only in response to a mount option or > module parameter, or only with some subsequent confirmation > that the medium was formatted by Windows. Yeah, I think we could do that although it will be a bit painful. I would do it by default if we found BEA descriptor but not NSR descriptor. We do already have handling for various quirks of other udf creators so this is nothing new... I think Palo replied about the rest of the issues you've found. Honza -- Jan Kara SUSE Labs, CR