From patchwork Mon Oct 21 08:37:58 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jan Kara X-Patchwork-Id: 11201539 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 139E81390 for ; Mon, 21 Oct 2019 08:38:11 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id EFCE721835 for ; Mon, 21 Oct 2019 08:38:10 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727458AbfJUIiK (ORCPT ); Mon, 21 Oct 2019 04:38:10 -0400 Received: from mx2.suse.de ([195.135.220.15]:44638 "EHLO mx1.suse.de" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1727124AbfJUIiJ (ORCPT ); Mon, 21 Oct 2019 04:38:09 -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 D1866B0BD; Mon, 21 Oct 2019 08:38:08 +0000 (UTC) Received: by quack2.suse.cz (Postfix, from userid 1000) id 6075D1E4AA0; Mon, 21 Oct 2019 10:38:08 +0200 (CEST) From: Jan Kara To: Jens Axboe Cc: , Jan Kara Subject: [PATCH 0/2] bdev: Refresh bdev size for disks without partitioning Date: Mon, 21 Oct 2019 10:37:58 +0200 Message-Id: <20191021083132.5351-1-jack@suse.cz> X-Mailer: git-send-email 2.16.4 Sender: linux-block-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-block@vger.kernel.org Hello, I've been debugging for quite a long time strange issues with encrypted DVDs not being readable on Linux (bko#194965). In the end I've tracked down the problem to the fact that block device size is not updated when the media is inserted in case the DVD device is already open. This is IMO a bug in block device code as the size gets properly update in case the device has partition scanning enabled. The following series fixes the problem by refreshing disk size on each open even for devices with partition scanning disabled. Honza