GNU bug report logs - #21272
partprobe does not wait for refresh of partition info

Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.

Package: parted; Reported by: Bjoern Eberth <bjoern.eberth@HIDDEN>; dated Sun, 16 Aug 2015 00:47:01 UTC; Maintainer for parted is bug-parted@HIDDEN.

Message received at 21272 <at> debbugs.gnu.org:


Received: (at 21272) by debbugs.gnu.org; 23 Sep 2015 23:40:55 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Wed Sep 23 19:40:55 2015
Received: from localhost ([127.0.0.1]:43126 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.80)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1Zeteh-0005EI-7A
	for submit <at> debbugs.gnu.org; Wed, 23 Sep 2015 19:40:55 -0400
Received: from mx1.redhat.com ([209.132.183.28]:56873)
 by debbugs.gnu.org with esmtp (Exim 4.80)
 (envelope-from <bcl@HIDDEN>) id 1Zeted-0005E4-5i
 for 21272 <at> debbugs.gnu.org; Wed, 23 Sep 2015 19:40:52 -0400
Received: from int-mx10.intmail.prod.int.phx2.redhat.com
 (int-mx10.intmail.prod.int.phx2.redhat.com [10.5.11.23])
 by mx1.redhat.com (Postfix) with ESMTPS id 0E9EE8E6EA;
 Wed, 23 Sep 2015 23:40:49 +0000 (UTC)
Received: from lister.brianlane.com (ovpn-113-190.phx2.redhat.com
 [10.3.113.190])
 by int-mx10.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id
 t8NNeln3002218
 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO);
 Wed, 23 Sep 2015 19:40:49 -0400
Date: Wed, 23 Sep 2015 16:40:47 -0700
From: "Brian C. Lane" <bcl@HIDDEN>
To: Phil Susi <psusi@HIDDEN>
Subject: Re: bug#21272: partprobe does not wait for refresh of partition info
Message-ID: <20150923234047.GO3806@HIDDEN>
References: <CAAxk4b58=8uah12tRC8fqZdd_LDKR+ra7nSKhmSDmJiYP5hirw@HIDDEN>
 <20150817155819.GA18432@HIDDEN>
 <55FC6D0D.50808@HIDDEN>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
In-Reply-To: <55FC6D0D.50808@HIDDEN>
User-Agent: Mutt/1.5.23 (2014-03-12)
X-Scanned-By: MIMEDefang 2.68 on 10.5.11.23
X-Spam-Score: -5.0 (-----)
X-Debbugs-Envelope-To: 21272
Cc: 21272 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -5.0 (-----)

On Fri, Sep 18, 2015 at 03:59:09PM -0400, Phil Susi wrote:
> On 8/17/2015 11:58 AM, Brian C. Lane wrote:
> > udev is responsible for making sure the device nodes are correct. You
> > can't depend on them being present without checking for them first. A
> > udevadm settle after partprobe may also help.
> 
> IIRC, libparted contacts udev to wait for the dev node to be created so
> this shouldn't happen.  At least if it was configured with udev.
> 

That's only done for device-mapper devices. udev (especially
systemd-udev) can trigger async. actions so you have to watch out for
how parted is being called. See my patch for opening things read-only
initially for more details.

-- 
Brian C. Lane | Anaconda Team | IRC: bcl #anaconda | Port Orchard, WA (PST8PDT)




Information forwarded to bug-parted@HIDDEN:
bug#21272; Package parted. Full text available.

Message received at 21272 <at> debbugs.gnu.org:


Received: (at 21272) by debbugs.gnu.org; 18 Sep 2015 19:59:25 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Fri Sep 18 15:59:25 2015
Received: from localhost ([127.0.0.1]:37253 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.80)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1Zd1ob-00054p-Do
	for submit <at> debbugs.gnu.org; Fri, 18 Sep 2015 15:59:25 -0400
Received: from mail-yk0-f171.google.com ([209.85.160.171]:35112)
 by debbugs.gnu.org with esmtp (Exim 4.80)
 (envelope-from <phillsusi@HIDDEN>) id 1Zd1oZ-00054i-MJ
 for 21272 <at> debbugs.gnu.org; Fri, 18 Sep 2015 15:59:24 -0400
Received: by ykdu9 with SMTP id u9so56495791ykd.2
 for <21272 <at> debbugs.gnu.org>; Fri, 18 Sep 2015 12:59:23 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113;
 h=sender:subject:to:references:from:message-id:date:user-agent
 :mime-version:in-reply-to:content-type:content-transfer-encoding;
 bh=c5GyDeh/YSoQ9mZGfPyX4MqS9qgySslptzAWNCgTsc0=;
 b=K7k4GOgw5tW+ZiJw5PUFLT7Tq/BUoU0X4/m9Ukt3NbijXeX0wMl2W06OtIGHyewazP
 mXTpDcX6jLx09t4Q9zifJWM45hqoW64dVPwsd97K1g5MhK3EyWcdfp7V0Z3/Hh5Xo2N/
 yMxlWl/ygjkOTlFLybrj/IYeFUeFJGwtVqhlIv22Y9FOjm/L1b/7z6xDyclBuz0e2RXx
 QKrlmqpUFSYIhEzdfLovVgd+HxAtjbtlT4rk02+KZER0CygHrignmJnodyYx8oBnwGP0
 3zOWzKI08qdid3szAxXeH6jDV5oPXqQnt/52kec1Vjbhqi2jx7eBK2TtCYfDrYMmpFsD
 YBng==
X-Received: by 10.13.251.1 with SMTP id l1mr5784953ywf.103.1442606363030;
 Fri, 18 Sep 2015 12:59:23 -0700 (PDT)
Received: from [10.1.1.230] (fl-67-77-88-12.sta.embarqhsd.net. [67.77.88.12])
 by smtp.googlemail.com with ESMTPSA id
 w200sm6611287ywd.19.2015.09.18.12.59.22
 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128);
 Fri, 18 Sep 2015 12:59:22 -0700 (PDT)
Subject: Re: bug#21272: partprobe does not wait for refresh of partition info
To: "Brian C. Lane" <bcl@HIDDEN>, 21272 <at> debbugs.gnu.org
References: <CAAxk4b58=8uah12tRC8fqZdd_LDKR+ra7nSKhmSDmJiYP5hirw@HIDDEN>
 <20150817155819.GA18432@HIDDEN>
From: Phil Susi <psusi@HIDDEN>
Message-ID: <55FC6D0D.50808@HIDDEN>
Date: Fri, 18 Sep 2015 15:59:09 -0400
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:38.0) Gecko/20100101
 Thunderbird/38.2.0
MIME-Version: 1.0
In-Reply-To: <20150817155819.GA18432@HIDDEN>
Content-Type: text/plain; charset=windows-1252
Content-Transfer-Encoding: 7bit
X-Spam-Score: -0.7 (/)
X-Debbugs-Envelope-To: 21272
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -0.7 (/)

On 8/17/2015 11:58 AM, Brian C. Lane wrote:
> udev is responsible for making sure the device nodes are correct. You
> can't depend on them being present without checking for them first. A
> udevadm settle after partprobe may also help.

IIRC, libparted contacts udev to wait for the dev node to be created so
this shouldn't happen.  At least if it was configured with udev.





Information forwarded to bug-parted@HIDDEN:
bug#21272; Package parted. Full text available.

Message received at submit <at> debbugs.gnu.org:


Received: (at submit) by debbugs.gnu.org; 17 Aug 2015 15:58:31 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Mon Aug 17 11:58:31 2015
Received: from localhost ([127.0.0.1]:58237 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.80)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1ZRMnu-0006v6-SO
	for submit <at> debbugs.gnu.org; Mon, 17 Aug 2015 11:58:31 -0400
Received: from eggs.gnu.org ([208.118.235.92]:33137)
 by debbugs.gnu.org with esmtp (Exim 4.80)
 (envelope-from <bcl@HIDDEN>) id 1ZRMnt-0006uz-BN
 for submit <at> debbugs.gnu.org; Mon, 17 Aug 2015 11:58:29 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
 (envelope-from <bcl@HIDDEN>) id 1ZRMns-0004xb-9a
 for submit <at> debbugs.gnu.org; Mon, 17 Aug 2015 11:58:28 -0400
X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org
X-Spam-Level: 
X-Spam-Status: No, score=-0.0 required=5.0 tests=BAYES_40 autolearn=disabled
 version=3.3.2
Received: from lists.gnu.org ([2001:4830:134:3::11]:38457)
 by eggs.gnu.org with esmtp (Exim 4.71)
 (envelope-from <bcl@HIDDEN>) id 1ZRMns-0004xX-60
 for submit <at> debbugs.gnu.org; Mon, 17 Aug 2015 11:58:28 -0400
Received: from eggs.gnu.org ([2001:4830:134:3::10]:43142)
 by lists.gnu.org with esmtp (Exim 4.71)
 (envelope-from <bcl@HIDDEN>) id 1ZRMnr-0001K0-0C
 for bug-parted@HIDDEN; Mon, 17 Aug 2015 11:58:28 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
 (envelope-from <bcl@HIDDEN>) id 1ZRMnn-0004wT-6P
 for bug-parted@HIDDEN; Mon, 17 Aug 2015 11:58:26 -0400
Received: from mx1.redhat.com ([209.132.183.28]:49494)
 by eggs.gnu.org with esmtp (Exim 4.71)
 (envelope-from <bcl@HIDDEN>) id 1ZRMnm-0004wB-Po
 for bug-parted@HIDDEN; Mon, 17 Aug 2015 11:58:22 -0400
Received: from int-mx09.intmail.prod.int.phx2.redhat.com
 (int-mx09.intmail.prod.int.phx2.redhat.com [10.5.11.22])
 by mx1.redhat.com (Postfix) with ESMTPS id BDFD691FF0
 for <bug-parted@HIDDEN>; Mon, 17 Aug 2015 15:58:21 +0000 (UTC)
Received: from lister.brianlane.com (ovpn-113-35.phx2.redhat.com [10.3.113.35])
 by int-mx09.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id
 t7HFwJxa019513
 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO)
 for <bug-parted@HIDDEN>; Mon, 17 Aug 2015 11:58:21 -0400
Date: Mon, 17 Aug 2015 08:58:19 -0700
From: "Brian C. Lane" <bcl@HIDDEN>
To: bug-parted@HIDDEN
Subject: Re: bug#21272: partprobe does not wait for refresh of partition info
Message-ID: <20150817155819.GA18432@HIDDEN>
References: <CAAxk4b58=8uah12tRC8fqZdd_LDKR+ra7nSKhmSDmJiYP5hirw@HIDDEN>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
In-Reply-To: <CAAxk4b58=8uah12tRC8fqZdd_LDKR+ra7nSKhmSDmJiYP5hirw@HIDDEN>
User-Agent: Mutt/1.5.23 (2014-03-12)
X-Scanned-By: MIMEDefang 2.68 on 10.5.11.22
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x
X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address
 (bad octet value).
X-Received-From: 2001:4830:134:3::11
X-Spam-Score: -5.0 (-----)
X-Debbugs-Envelope-To: submit
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -5.0 (-----)

On Sun, Aug 16, 2015 at 01:22:15AM +0200, Bjoern Eberth wrote:
> Hi all,
> 
> As the web bugtracker seems to be broken I write this mail.
> 
> I'm using parted 3.2. All this was tested running a Debian jessie release
> within a virtual machine on Windows 8.1 using VMware Workstation 11.
> /dev/sdb is an USB cardreader physically connected to the Windows 8.1
> machine and looped to the virtual machine.
> 
> I was executing a script that does 'partprobe /dev/sdb' and immediatly
> after that 'dd of=/dev/sdb1 if=<something>'. The result is, that I get a
> regular file /dev/sdb1.
> 
> After some more investigation I found, that after executing partprobe the
> partition files got removed and readded to the system.
> So running the script:
> root@debian:~# cat /tmp/test
> partprobe /dev/sdb
> while true; do
>         ls -lad /dev/sdb1
> done

udev is responsible for making sure the device nodes are correct. You
can't depend on them being present without checking for them first. A
udevadm settle after partprobe may also help.

-- 
Brian C. Lane | Anaconda Team | IRC: bcl #anaconda | Port Orchard, WA (PST8PDT)




Information forwarded to bug-parted@HIDDEN:
bug#21272; Package parted. Full text available.

Message received at submit <at> debbugs.gnu.org:


Received: (at submit) by debbugs.gnu.org; 16 Aug 2015 00:46:34 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sat Aug 15 20:46:34 2015
Received: from localhost ([127.0.0.1]:57017 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.80)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1ZQm5o-0000Ow-Nx
	for submit <at> debbugs.gnu.org; Sat, 15 Aug 2015 20:46:33 -0400
Received: from eggs.gnu.org ([208.118.235.92]:45868)
 by debbugs.gnu.org with esmtp (Exim 4.80)
 (envelope-from <bjoern.eberth@HIDDEN>) id 1ZQkmM-0006sK-OG
 for submit <at> debbugs.gnu.org; Sat, 15 Aug 2015 19:22:23 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
 (envelope-from <bjoern.eberth@HIDDEN>) id 1ZQkmL-00070P-DF
 for submit <at> debbugs.gnu.org; Sat, 15 Aug 2015 19:22:22 -0400
X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org
X-Spam-Level: 
X-Spam-Status: No, score=0.8 required=5.0 tests=BAYES_50,FREEMAIL_FROM,
 HTML_MESSAGE,T_DKIM_INVALID autolearn=disabled version=3.3.2
Received: from lists.gnu.org ([2001:4830:134:3::11]:42977)
 by eggs.gnu.org with esmtp (Exim 4.71)
 (envelope-from <bjoern.eberth@HIDDEN>) id 1ZQkmL-00070K-BD
 for submit <at> debbugs.gnu.org; Sat, 15 Aug 2015 19:22:21 -0400
Received: from eggs.gnu.org ([2001:4830:134:3::10]:55851)
 by lists.gnu.org with esmtp (Exim 4.71)
 (envelope-from <bjoern.eberth@HIDDEN>) id 1ZQkmK-0005aT-3D
 for bug-parted@HIDDEN; Sat, 15 Aug 2015 19:22:21 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
 (envelope-from <bjoern.eberth@HIDDEN>) id 1ZQkmG-0006z2-R2
 for bug-parted@HIDDEN; Sat, 15 Aug 2015 19:22:20 -0400
Received: from mail-wi0-x232.google.com ([2a00:1450:400c:c05::232]:34566)
 by eggs.gnu.org with esmtp (Exim 4.71)
 (envelope-from <bjoern.eberth@HIDDEN>) id 1ZQkmG-0006yw-GC
 for bug-parted@HIDDEN; Sat, 15 Aug 2015 19:22:16 -0400
Received: by wicne3 with SMTP id ne3so47332874wic.1
 for <bug-parted@HIDDEN>; Sat, 15 Aug 2015 16:22:15 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113;
 h=mime-version:date:message-id:subject:from:to:content-type;
 bh=+Ubtv0iclU7WR9/0pGTClRhNsZtpVT4lYujLPGcURnE=;
 b=qmn0afFbm6+sHsd1tTgrnpQBHTgGC66ultvMSaUaqHAwTj1ZM55gmJtaDVjYjqVeEk
 3wo/yfMPbCzHseDBBEWDOuk9RX03MRBspyaPXZdJqqs8wm9tcbwBdkjllOjbkRZWVBkt
 afXaYl2WTAutSQCO9LOL4M8hJOjuaWDTtVoQ1SurEix0VG1fk7feorX7eUgUkHvyQ2Xd
 YF1YpFyYDC8u1kIhrdpfGgzAaMQ8OE2yiZ9ekERzEMC5fhwML4A6RZ3zSbcvkufF3+aJ
 ljYowqOmoC4ACCr1AVZR8wYIor4s7uX8rCiTe91WAIvfuPKirz5Z9/TMwJdOTVva07MT
 1gVg==
MIME-Version: 1.0
X-Received: by 10.180.198.50 with SMTP id iz18mr20387477wic.35.1439680935058; 
 Sat, 15 Aug 2015 16:22:15 -0700 (PDT)
Received: by 10.28.47.149 with HTTP; Sat, 15 Aug 2015 16:22:15 -0700 (PDT)
Date: Sun, 16 Aug 2015 01:22:15 +0200
Message-ID: <CAAxk4b58=8uah12tRC8fqZdd_LDKR+ra7nSKhmSDmJiYP5hirw@HIDDEN>
Subject: partprobe does not wait for refresh of partition info
From: Bjoern Eberth <bjoern.eberth@HIDDEN>
To: bug-parted@HIDDEN
Content-Type: multipart/alternative; boundary=047d7b62497cb9621a051d61d69b
X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address
 (bad octet value).
X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address
 (bad octet value).
X-Received-From: 2001:4830:134:3::11
X-Spam-Score: -4.0 (----)
X-Debbugs-Envelope-To: submit
X-Mailman-Approved-At: Sat, 15 Aug 2015 20:46:32 -0400
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -4.0 (----)

--047d7b62497cb9621a051d61d69b
Content-Type: text/plain; charset=UTF-8

Hi all,

As the web bugtracker seems to be broken I write this mail.

I'm using parted 3.2. All this was tested running a Debian jessie release
within a virtual machine on Windows 8.1 using VMware Workstation 11.
/dev/sdb is an USB cardreader physically connected to the Windows 8.1
machine and looped to the virtual machine.

I was executing a script that does 'partprobe /dev/sdb' and immediatly
after that 'dd of=/dev/sdb1 if=<something>'. The result is, that I get a
regular file /dev/sdb1.

After some more investigation I found, that after executing partprobe the
partition files got removed and readded to the system.
So running the script:
root@debian:~# cat /tmp/test
partprobe /dev/sdb
while true; do
        ls -lad /dev/sdb1
done

results in:

root@debian:~# /tmp/test
brw------- 1 root root 8, 17 Aug 15 16:39 /dev/sdb1
ls: cannot access /dev/sdb1: No such file or directory
ls: cannot access /dev/sdb1: No such file or directory
ls: cannot access /dev/sdb1: No such file or directory
ls: cannot access /dev/sdb1: No such file or directory
ls: cannot access /dev/sdb1: No such file or directory
brw------- 1 root root 8, 17 Aug 15 16:39 /dev/sdb1
brw------- 1 root root 8, 17 Aug 15 16:39 /dev/sdb1
brw------- 1 root root 8, 17 Aug 15 16:39 /dev/sdb1
[...]
brw-rw---- 1 root disk 8, 17 Aug 15 16:39 /dev/sdb1
brw-rw---- 1 root disk 8, 17 Aug 15 16:39 /dev/sdb1
brw-rw---- 1 root disk 8, 17 Aug 15 16:39 /dev/sdb1^C

All the above is happing in way less then a second after executing
partprobe.
Thats a really odd behaviour.

Then I downgraded parted to version 2.2 and ran the test script again:
root@debian:~# /tmp/test
brw------- 1 root root 8, 17 Aug 15 14:38 /dev/sdb1
brw------- 1 root root 8, 17 Aug 15 14:38 /dev/sdb1
brw------- 1 root root 8, 17 Aug 15 14:38 /dev/sdb1
brw------- 1 root root 8, 17 Aug 15 14:38 /dev/sdb1
brw------- 1 root root 8, 17 Aug 15 14:38 /dev/sdb1
brw------- 1 root root 8, 17 Aug 15 14:38 /dev/sdb1
brw------- 1 root root 8, 17 Aug 15 14:38 /dev/sdb1
[...]
brw-rw---- 1 root disk 8, 17 Aug 15 16:39 /dev/sdb1
brw-rw---- 1 root disk 8, 17 Aug 15 16:39 /dev/sdb1
brw-rw---- 1 root disk 8, 17 Aug 15 16:39 /dev/sdb1^C

This looks rather fine to me.

Is this a bug? Or is partprobe 3.2 just running much faster than partprobe
2.2 giving the kernel no time to reread the partition table? Or something
else?

Kind regards,
Bjoern

--047d7b62497cb9621a051d61d69b
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr"><div><div><div><div><div><div><div>Hi all,<br><br></div><d=
iv>As the web bugtracker seems to be broken I write this mail.<br><br></div=
><div>I&#39;m using parted 3.2. All this was tested running a Debian jessie=
 release within a virtual machine on Windows 8.1 using VMware Workstation 1=
1. /dev/sdb is an USB cardreader physically connected to the Windows 8.1 ma=
chine and looped to the virtual machine.<br><br></div><div>I was executing =
a script that does &#39;partprobe /dev/sdb&#39; and immediatly after that &=
#39;dd of=3D/dev/sdb1 if=3D&lt;something&gt;&#39;. The result is, that I ge=
t a regular file /dev/sdb1.<br><br>After some more investigation I found, t=
hat after executing partprobe the partition files got removed and readded t=
o the system.<br></div><div>So running the script:<br></div>root@debian:~# =
cat /tmp/test<br>partprobe /dev/sdb<br>while true; do<br>=C2=A0=C2=A0=C2=A0=
=C2=A0=C2=A0=C2=A0=C2=A0 ls -lad /dev/sdb1<br>done<br><br>results in:<span =
class=3D"im"><br><br>root@debian:~# /tmp/test</span><br><span class=3D"im">=
<span class=3D"im">brw------- 1 root root 8, 17 Aug 15 16:39 /dev/sdb1</spa=
n><span class=3D"im"><br></span>ls: cannot access /dev/sdb1: No such file o=
r directory<br>ls: cannot access /dev/sdb1: No such file or directory<br>ls=
: cannot access /dev/sdb1: No such file or directory<br>ls: cannot access /=
dev/sdb1: No such file or directory<br>ls: cannot access /dev/sdb1: No such=
 file or directory<br>brw------- 1 root root 8, 17 Aug 15 16:39 /dev/sdb1<b=
r>brw------- 1 root root 8, 17 Aug 15 16:39 /dev/sdb1<br>brw------- 1 root =
root 8, 17 Aug 15 16:39 /dev/sdb1<br></span>[...]<br>brw-rw---- 1 root disk=
 8, 17 Aug 15 16:39 /dev/sdb1<br>brw-rw---- 1 root disk 8, 17 Aug 15 16:39 =
/dev/sdb1<br>brw-rw---- 1 root disk 8, 17 Aug 15 16:39 /dev/sdb1^C<br><br><=
/div>All the above is happing in way less then a second after executing par=
tprobe.<br>Thats a really odd behaviour.<br></div><br>Then I downgraded par=
ted to version 2.2 and ran the test script again:<br>root@debian:~# /tmp/te=
st<br>brw------- 1 root root 8, 17 Aug 15 14:38 /dev/sdb1<br>brw------- 1 r=
oot root 8, 17 Aug 15 14:38 /dev/sdb1<br>brw------- 1 root root 8, 17 Aug 1=
5 14:38 /dev/sdb1<br>brw------- 1 root root 8, 17 Aug 15 14:38 /dev/sdb1<br=
>brw------- 1 root root 8, 17 Aug 15 14:38 /dev/sdb1<br>brw------- 1 root r=
oot 8, 17 Aug 15 14:38 /dev/sdb1<br>brw------- 1 root root 8, 17 Aug 15 14:=
38 /dev/sdb1<br>[...]<br></div>brw-rw---- 1 root disk 8, 17 Aug 15 16:39 /d=
ev/sdb1<br>brw-rw---- 1 root disk 8, 17 Aug 15 16:39 /dev/sdb1<br>brw-rw---=
- 1 root disk 8, 17 Aug 15 16:39 /dev/sdb1^C<br><br></div><div>This looks r=
ather fine to me.<br></div><div><br></div>Is this a bug? Or is partprobe 3.=
2 just running much faster than partprobe 2.2 giving the kernel no time to =
reread the partition table? Or something else?<br><br></div>Kind regards,<b=
r></div>Bjoern<br><div><div><div><div><div><div><div><br></div></div></div>=
</div></div></div></div></div>

--047d7b62497cb9621a051d61d69b--




Acknowledgement sent to Bjoern Eberth <bjoern.eberth@HIDDEN>:
New bug report received and forwarded. Copy sent to bug-parted@HIDDEN. Full text available.
Report forwarded to bug-parted@HIDDEN:
bug#21272; Package parted. Full text available.
Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.
Last modified: Mon, 25 Nov 2019 12:00:02 UTC

GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997 nCipher Corporation Ltd, 1994-97 Ian Jackson.