Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp7002027ybi; Thu, 1 Aug 2019 01:42:52 -0700 (PDT) X-Google-Smtp-Source: APXvYqx/lEmTaEm38vtp2//cHIOuMt3smIe/nqHCfljHE9RnwaGFoF0QD1GiHsv357WNDt3VfjAg X-Received: by 2002:a17:90a:bc42:: with SMTP id t2mr7282647pjv.121.1564648972817; Thu, 01 Aug 2019 01:42:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1564648972; cv=none; d=google.com; s=arc-20160816; b=mhX4foOuct+Lq/oG5Y3Za+vaYoNLLIw5x1x3zPKD3hOiPcCDAELJ6UnNMBteSKq0Xy 9UhuaC7H+Mz3veGihq0VnVcuxKR4EItGNg5B0aIMqTwL8/oQxFOgituA3ctDZSV3rRXP uX+qLc0vqDpDvpOTCHmD4I6FFEPMBy4DPlRvjqaH7gb6WCUaMrz1NmQkJ4zCjkkV9Buj kzMXZn0EuCYNKZz/TAq0K5H5Vfp/SLM3oIhjSlFG4WahWadha8ZRfIxGOrW9YndmFNUO 7gUJrhylq+WjBX4Mqg+m3mGO4YetT6NQv/VGdOx8vqsFMHhD16om9mrOuRwk/NnTmtTT H7gA== 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=rU15797v4lq+Aq8LSH6YvUGpK9FnPLM73inYRWFn4u0=; b=AxBVA4Qa3+ul/+cKENZn1wAmyJrcE8hMNgS2PABvKjB6merbW57s7+chvxcfwfOCBO IIVvHG5JlZJiNjPyrIiDzPfK3XgGCb0oZXJXzl41qoEquUknTi6P4b+E8OVTpd1Cw+Zl bd9GLSGjFCyV7NO2YFxLmi5ciBAw1oLjk+9ZOST2g2SmsJzrYrZzTEY32Mo79Fj3vKDt 0CbAps8AIjZ2vJ8ffULnxXPPUwlygtYt9RmLo+lXxPb2486iN95U3FQ3zhSSfhQ0UdYz ImpflesKC89OsU00zq0g3tA3hhW6xBfqALSQvgZ5UrqNIpx99LwZifJr/uoFipIhnMK5 DeMg== 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 95si32059025ple.51.2019.08.01.01.42.36; Thu, 01 Aug 2019 01:42:52 -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 S1730473AbfHAIiD (ORCPT + 99 others); Thu, 1 Aug 2019 04:38:03 -0400 Received: from mx2.suse.de ([195.135.220.15]:52418 "EHLO mx1.suse.de" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726368AbfHAIiD (ORCPT ); Thu, 1 Aug 2019 04:38:03 -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 4227EB645; Thu, 1 Aug 2019 08:38:01 +0000 (UTC) Received: by quack2.suse.cz (Postfix, from userid 1000) id 34FD01E3F4D; Thu, 1 Aug 2019 10:38:00 +0200 (CEST) Date: Thu, 1 Aug 2019 10:38:00 +0200 From: Jan Kara To: Pali =?iso-8859-1?Q?Roh=E1r?= Cc: Roald Strauss , "Steven J. Magnani" , Jan Kara , linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: UDF filesystem image with Write-Once UDF Access Type Message-ID: <20190801083800.GC25064@quack2.suse.cz> References: <20190712100224.s2chparxszlbnill@pali> <20190801073530.GA25064@quack2.suse.cz> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190801073530.GA25064@quack2.suse.cz> 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 On Thu 01-08-19 09:35:30, Jan Kara wrote: > > If you want to play with Write-Once Access Type, use recent version of > > mkudffs and choose --media-type=cdr option, which generates UDF > > filesystem suitable for CD-R (Write-Once Access Type with VAT and other > > UDF options according to UDF specification). > > Reasonably recent kernels should have this bug fixed and mount such fs read > only. That being said I've tested current upstream kernel with a media > created with --media-type=cdr and mounting failed with: > > UDF-fs: error (device ubdb): udf_read_inode: (ino 524287) failed !bh > UDF-fs: error (device ubdb): udf_read_inode: (ino 524286) failed !bh > UDF-fs: error (device ubdb): udf_read_inode: (ino 524285) failed !bh > UDF-fs: error (device ubdb): udf_read_inode: (ino 524284) failed !bh > UDF-fs: Scanning with blocksize 2048 failed > > So there's something fishy either in the created image or the kernel... > Didn't debug this further yet. Hum, looks like a problem with mkudffs. Relevant debug messages look like: UDF-fs: fs/udf/super.c:671:udf_check_vsd: Starting at sector 16 (2048 byte sectors) UDF-fs: fs/udf/super.c:824:udf_load_pvoldesc: recording time 2019/08/01 09:47 (1078) UDF-fs: fs/udf/super.c:836:udf_load_pvoldesc: volIdent[] = 'LinuxUDF' UDF-fs: fs/udf/super.c:844:udf_load_pvoldesc: volSetIdent[] = '1564645645200563LinuxUDF' UDF-fs: fs/udf/super.c:1462:udf_load_logicalvol: Partition (0:0) type 1 on volume 1 UDF-fs: fs/udf/super.c:1462:udf_load_logicalvol: Partition (1:0) type 2 on volume 1 UDF-fs: fs/udf/super.c:1471:udf_load_logicalvol: FileSet found in LogicalVolDesc at block=0, partition=1 UDF-fs: fs/udf/super.c:1218:udf_load_partdesc: Searching map: (0 == 0) UDF-fs: fs/udf/super.c:1060:udf_fill_partdesc_info: Partition (0 type 1511) starts at physical 288, block length 524000 UDF-fs: fs/udf/super.c:1060:udf_fill_partdesc_info: Partition (1 type 2012) starts at physical 288, block length 524000 UDF-fs: fs/udf/misc.c:223:udf_read_tagged: location mismatch block 524287, tag 0 != 523999 UDF-fs: error (device ubdb): udf_read_inode: (ino 524287) failed !bh So the fact that location tag was 0 in block 524287 (which should contain VAT inode) suggests there's something fishy with how / where mkudffs creates the VAT inode. Can you have a look? BTW, mkudffs messages look like: filename=/tmp/image label=LinuxUDF uuid=1564645645200563 blocksize=2048 blocks=524288 udfrev=2.01 vatblock=319 start=0, blocks=16, type=RESERVED start=16, blocks=4, type=VRS start=20, blocks=76, type=USPACE start=96, blocks=16, type=MVDS start=112, blocks=16, type=USPACE start=128, blocks=1, type=LVID start=129, blocks=95, type=USPACE start=224, blocks=16, type=RVDS start=240, blocks=16, type=USPACE start=256, blocks=1, type=ANCHOR start=257, blocks=31, type=USPACE start=288, blocks=524000, type=PSPACE which suggests that VAT was indeed allocated somewhere in the beginning of the partition. Honza -- Jan Kara SUSE Labs, CR