Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp329361ybi; Tue, 18 Jun 2019 23:47:35 -0700 (PDT) X-Google-Smtp-Source: APXvYqzWFqnXwWSkSEJAoJCli5yswC8GwDYu4nt3dEHJCBnaQf1j/6Rq6h9cQoG9stBvMuCQzJB7 X-Received: by 2002:a65:50cb:: with SMTP id s11mr6330071pgp.371.1560926854840; Tue, 18 Jun 2019 23:47:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1560926854; cv=none; d=google.com; s=arc-20160816; b=A/CF9VLdDwgAzOzWMaSHRWDC1TG6cFvT3h3QAehZEZNoDs0JPu8IKPgUXnGLurx9ja ozt9vUwT0HtycaQcEqZ5+bmzUmRd3ArMTH5gCfsn8KRSAl3o1qNukFxcYQXsRla5EViq jt2Pwu0xZWiUNg7CUnowChfar56Qq44VModMsje1K33H1oqu8IoQ7+zy5KwqZ0X5Mx+p AJGNqp6PUBC2muGtXsEPrcAs1DB8t5umKT+dDTBKyBeWmMyan1y9TW8pCnciVgiOj8Jf cZvuG30cQaJeDxLZzhslhmhURqrMrjHBXoHCb44gM/TzGr32VnYlCjhKQ905PtyU0r9/ qIxg== 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=ViFj5BFxcNAriOQrYBbz8gr+vizODsRH8zu/JSKHjhs=; b=AH1W61i/aQKndpiDcUUa1rLtM0AAYIgP+xtG53SmyA8Mt2jSK5kuXXO5rFZxBD/hJ7 7oHl923ESb4NiDobqkUT+7PColK4gvGhepq2eeL5li5y6owep9GPLKCfpBnCBb04bubH kKw4jTbOHp3GcDytBKCdVI5jGn7GkfbVXNkZ9P6CwjMN2Yi7rCreck1vo0N0eEJjkTFy eypa9oz1zRYQyCkf4LeuHhXQJOeD++fJB0G9bu8gC/7CGWYZFrv2lKU98jGB0oUPu45u CmFJNSE3QXcRGKI/4wPjc3jzTrq2CxwEx0r22eLpw3Cl+t8fBaLVqa5yDjzxBax481ka RzZw== 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 w21si6969512plq.91.2019.06.18.23.47.19; Tue, 18 Jun 2019 23:47: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 S1731116AbfFSGrN (ORCPT + 99 others); Wed, 19 Jun 2019 02:47:13 -0400 Received: from mx2.suse.de ([195.135.220.15]:58134 "EHLO mx1.suse.de" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1725946AbfFSGrN (ORCPT ); Wed, 19 Jun 2019 02:47:13 -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 36123AFBE; Wed, 19 Jun 2019 06:47:12 +0000 (UTC) Received: by quack2.suse.cz (Postfix, from userid 1000) id 45EDE1E4329; Wed, 19 Jun 2019 08:47:11 +0200 (CEST) Date: Wed, 19 Jun 2019 08:47:11 +0200 From: Jan Kara To: Steve Magnani Cc: Jan Kara , linux-kernel@vger.kernel.org, "Steven J . Magnani" Subject: Re: [PATCH 1/1] udf: Fix incorrect final NOT_ALLOCATED (hole) extent length Message-ID: <20190619064711.GA27954@quack2.suse.cz> References: <20190604123158.12741-1-steve@digidescorp.com> <20190604123158.12741-2-steve@digidescorp.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: 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 Steve! On Sun 16-06-19 11:28:46, Steve Magnani wrote: > On 6/4/19 7:31 AM, Steve Magnani wrote: > > > In some cases, using the 'truncate' command to extend a UDF file results > > in a mismatch between the length of the file's extents (specifically, due > > to incorrect length of the final NOT_ALLOCATED extent) and the information > > (file) length. The discrepancy can prevent other operating systems > > (i.e., Windows 10) from opening the file. > > > > Two particular errors have been observed when extending a file: > > > > 1. The final extent is larger than it should be, having been rounded up > > to a multiple of the block size. > > > > B. The final extent is shorter than it should be, due to not having > > been updated when the file's information length was increased. > > Wondering if you've seen this, or if something got lost in a spam folder. Sorry for not getting to you earlier. I've seen the patches and they look reasonable to me. I just wanted to have a one more closer look but last weeks were rather busy so I didn't get to it. I'll look into it this week. Thanks a lot for debugging the problem and sending the fixes! Honza -- Jan Kara SUSE Labs, CR