GNU bug report logs - #20893
Strange behavior when using parted

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: Joan Lledó <joanlluislledo@HIDDEN>; dated Wed, 24 Jun 2015 21:23:01 UTC; Maintainer for parted is bug-parted@HIDDEN.

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


Received: (at 20893) by debbugs.gnu.org; 24 Jun 2015 23:17:57 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Wed Jun 24 19:17:57 2015
Received: from localhost ([127.0.0.1]:56738 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.80)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1Z7tvY-0006S0-T6
	for submit <at> debbugs.gnu.org; Wed, 24 Jun 2015 19:17:57 -0400
Received: from mx1.redhat.com ([209.132.183.28]:41182)
 by debbugs.gnu.org with esmtp (Exim 4.80)
 (envelope-from <bcl@HIDDEN>) id 1Z7tvW-0006Rq-Fx
 for 20893 <at> debbugs.gnu.org; Wed, 24 Jun 2015 19:17:55 -0400
Received: from int-mx14.intmail.prod.int.phx2.redhat.com
 (int-mx14.intmail.prod.int.phx2.redhat.com [10.5.11.27])
 by mx1.redhat.com (Postfix) with ESMTPS id 9D1132D124E;
 Wed, 24 Jun 2015 23:17:53 +0000 (UTC)
Received: from lister.brianlane.com (ovpn-113-104.phx2.redhat.com
 [10.3.113.104])
 by int-mx14.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id
 t5ONHpkT019849
 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO);
 Wed, 24 Jun 2015 19:17:52 -0400
Date: Wed, 24 Jun 2015 16:17:51 -0700
From: "Brian C. Lane" <bcl@HIDDEN>
To: Joan =?iso-8859-1?Q?Lled=F3?= <joanlluislledo@HIDDEN>
Subject: Re: bug#20893: Strange behavior when using parted
Message-ID: <20150624231751.GU3170@HIDDEN>
References: <20150624215301.GR3170@HIDDEN>
 <1435186171.5459.0@HIDDEN>
MIME-Version: 1.0
Content-Type: text/plain; charset=iso-8859-1
Content-Disposition: inline
Content-Transfer-Encoding: 8bit
In-Reply-To: <1435186171.5459.0@HIDDEN>
User-Agent: Mutt/1.5.23 (2014-03-12)
X-Scanned-By: MIMEDefang 2.68 on 10.5.11.27
X-Spam-Score: -6.4 (------)
X-Debbugs-Envelope-To: 20893
Cc: 20893 <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: -6.4 (------)

On Thu, Jun 25, 2015 at 12:49:31AM +0200, Joan Lledó wrote:
> 
> 
> On dc, 24 de jun 2015 a les 11:53 , Brian C. Lane <bcl@HIDDEN> wrote:
> >On Wed, Jun 24, 2015 at 10:44:23PM +0200, Joan Lledó wrote:
> >> Hello parted list,
> >>
> >> I'm not sure this is a bug, probably not, but since I've installed
> >> Debian 8 some scripts I use for helping me to test a library are
> >> having a strange behavior. I've wrote a little script as an example:
> >
> >What version of parted are you using?
> 
> The one that comes with Debian 8: parted 3.2
> 
> >
> >
> >You may be hitting this bug:
> >https://bugzilla.redhat.com/show_bug.cgi?id=1135493
> >
> >(there's a fix being discussed on the parted-devel list)
> >
> 
> Thanks for the link. After reading it I can say that's exactly my
> problem. I'm glad to know it's a parted bug, because I'm using libparted
> in a project and thought it was a bug in my code. But this means all the
> projects that use libparted 3.2, like gparted in Debian 8, must be
> failing right now, right?

Yep.

> 
> Is there a way to receive a notice when this bug is fixed?

It will be in parted 3.3 for sure. You'll have to check with your
distribution's bug tracker to get a notice.

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




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

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


Received: (at 20893) by debbugs.gnu.org; 24 Jun 2015 22:49:42 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Wed Jun 24 18:49:42 2015
Received: from localhost ([127.0.0.1]:56730 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.80)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1Z7tUD-0005pF-Ju
	for submit <at> debbugs.gnu.org; Wed, 24 Jun 2015 18:49:42 -0400
Received: from mail-wi0-f180.google.com ([209.85.212.180]:34268)
 by debbugs.gnu.org with esmtp (Exim 4.80)
 (envelope-from <joanlluislledo@HIDDEN>) id 1Z7tUB-0005p1-LK
 for 20893 <at> debbugs.gnu.org; Wed, 24 Jun 2015 18:49:40 -0400
Received: by wicnd19 with SMTP id nd19so1915264wic.1
 for <20893 <at> debbugs.gnu.org>; Wed, 24 Jun 2015 15:49:34 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113;
 h=date:from:subject:to:cc:message-id:in-reply-to:references
 :mime-version:content-type;
 bh=P+W0IXpKm73GtkFW3JLaYBk6RI2MVvJ2OOoaocKxmcM=;
 b=UTkIQDuzccyqzmfNgRSMXfZi4ut44DjFm3ArxIDYNSqsOrWMinll1Np0IHO+/GwF22
 OdCGBv2wUp0ajtUC+VGLTRvP+St+Tdz37e3YZL/RkgVyyt8kXtIxAs3LZXLIJ2OwWcXe
 fJHMPWSB01kqSYvHBn37+B2Sq46v/AE1GcNBXTf1LGyhc4zY7hBJ5xPFamQD8s1YAHeW
 lxC4Y9YpBYMTMqUG8APzTHxvntJ04myzLglGfbEG0hzj3iCD2zLVauZs/kHpyNoHvfv/
 F+EceNIXJfKPi+HXEM/OyHgoROaCqK4rJEGXHFOK0lAkvWS9JO3MqmMy3gK1yKmOTJ4T
 7J+Q==
X-Received: by 10.180.218.195 with SMTP id pi3mr162385wic.71.1435186173944;
 Wed, 24 Jun 2015 15:49:33 -0700 (PDT)
Received: from [192.168.1.102] ([47.61.236.198])
 by mx.google.com with ESMTPSA id v3sm4650218wiz.14.2015.06.24.15.49.32
 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128);
 Wed, 24 Jun 2015 15:49:33 -0700 (PDT)
Date: Thu, 25 Jun 2015 00:49:31 +0200
From: Joan =?iso-8859-1?b?TGxlZPM=?= <joanlluislledo@HIDDEN>
Subject: Re: bug#20893: Strange behavior when using parted
To: "Brian C. Lane" <bcl@HIDDEN>
Message-Id: <1435186171.5459.0@HIDDEN>
In-Reply-To: <20150624215301.GR3170@HIDDEN>
References: <20150624215301.GR3170@HIDDEN>
X-Mailer: geary/0.8.3
MIME-Version: 1.0
Content-Type: multipart/alternative; boundary="=-Yed5pajEeXsU3qIJxPCr"
X-Spam-Score: -0.7 (/)
X-Debbugs-Envelope-To: 20893
Cc: 20893 <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: -0.7 (/)

--=-Yed5pajEeXsU3qIJxPCr
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding: quoted-printable



On dc, 24 de jun 2015 a les 11:53 , Brian C. Lane <bcl@HIDDEN>=20
wrote:
> On Wed, Jun 24, 2015 at 10:44:23PM +0200, Joan Lled=C3=B3 wrote:
>>  Hello parted list,
>>=20
>>  I'm not sure this is a bug, probably not, but since I've installed
>>  Debian 8 some scripts I use for helping me to test a library are
>>  having a strange behavior. I've wrote a little script as an example:
>=20
> What version of parted are you using?

The one that comes with Debian 8: parted 3.2

>=20
>=20
> You may be hitting this bug:
> https://bugzilla.redhat.com/show_bug.cgi?id=3D1135493
>=20
> (there's a fix being discussed on the parted-devel list)
>=20

Thanks for the link. After reading it I can say that's exactly my
problem. I'm glad to know it's a parted bug, because I'm using libparted
in a project and thought it was a bug in my code. But this means all the
projects that use libparted 3.2, like gparted in Debian 8, must be
failing right now, right?

Is there a way to receive a notice when this bug is fixed?

>=20
>>=20
>>  #!/bin/bash
>>  cd ~
>>  modprobe scsi_debug dev_size_mb=3D800 sector_size=3D4096
>>  parted /dev/sdf mklabel msdos
>>  parted /dev/sdf mkpart primary 1 50
>>  parted /dev/sdf mkpart primary 51 105
>>  parted /dev/sdf mkpart extended 106 750
>>  parted /dev/sdf mkpart primary 751 839
>>  parted /dev/sdf mkpart logical 107 200
>>  parted /dev/sdf mkpart logical 201 300
>>  parted /dev/sdf mkpart logical 301 450
>>  parted /dev/sdf mkpart logical 451 600
>>  parted /dev/sdf mkpart logical 601 750
>=20
> Also, you should be using -s in your script to avoid prompting.
>=20
> --
> Brian C. Lane | Anaconda Team | IRC: bcl #anaconda | Port Orchard, WA=20
> (PST8PDT)
=

--=-Yed5pajEeXsU3qIJxPCr
Content-Type: text/html; charset=utf-8
Content-Transfer-Encoding: quoted-printable



<br><br>On dc, 24 de jun 2015 a les 11:53 , Brian C. Lane &lt;bcl@HIDDEN=
m&gt; wrote:<br>
<blockquote type=3D"cite"><div class=3D"plaintext" style=3D"white-space: pr=
e-wrap;">On Wed, Jun 24, 2015 at 10:44:23PM +0200, Joan Lled=C3=B3 wrote:
<blockquote> Hello parted list,
=20
 I'm not sure this is a bug, probably not, but since I've installed
 Debian 8 some scripts I use for helping me to test a library are
 having a strange behavior. I've wrote a little script as an example:
</blockquote>
What version of parted are you using?</div></blockquote><br><span style=3D"=
background-color: rgb(255, 255, 255);">The one that comes with Debian 8: pa=
rted 3.2</span><div><span style=3D"background-color: rgb(255, 255, 255);"><=
br></span><blockquote type=3D"cite"><div class=3D"plaintext" style=3D"white=
-space: pre-wrap;">

You may be hitting this bug:
<a href=3D"https://bugzilla.redhat.com/show_bug.cgi?id=3D1135493">https://b=
ugzilla.redhat.com/show_bug.cgi?id=3D1135493</a>

(there's a fix being discussed on the parted-devel list)

</div></blockquote><div><br></div><div><span style=3D"background-color: rgb=
(255, 255, 255);">Thanks for the link. After reading it I can say that's ex=
actly my<br>problem. I'm glad to know it's a parted bug, because I'm using =
libparted<br>in a project and thought it was a bug in my code. But this mea=
ns all the<br>projects that use libparted 3.2, like gparted in Debian 8, mu=
st be<br>failing right now, right?<br><br>Is there a way to receive a notic=
e when this bug is fixed?</span></div><br><blockquote type=3D"cite"><div cl=
ass=3D"plaintext" style=3D"white-space: pre-wrap;">
<blockquote>=20
 #!/bin/bash
 cd ~
 modprobe scsi_debug dev_size_mb=3D800 sector_size=3D4096
 parted /dev/sdf mklabel msdos
 parted /dev/sdf mkpart primary 1 50
 parted /dev/sdf mkpart primary 51 105
 parted /dev/sdf mkpart extended 106 750
 parted /dev/sdf mkpart primary 751 839
 parted /dev/sdf mkpart logical 107 200
 parted /dev/sdf mkpart logical 201 300
 parted /dev/sdf mkpart logical 301 450
 parted /dev/sdf mkpart logical 451 600
 parted /dev/sdf mkpart logical 601 750
</blockquote>
Also, you should be using -s in your script to avoid prompting.

<div>--=20
</div>Brian C. Lane | Anaconda Team | IRC: bcl #anaconda | Port Orchard, WA=
 (PST8PDT)
</div></blockquote></div>=

--=-Yed5pajEeXsU3qIJxPCr--





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

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


Received: (at 20893) by debbugs.gnu.org; 24 Jun 2015 21:53:14 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Wed Jun 24 17:53:14 2015
Received: from localhost ([127.0.0.1]:56708 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.80)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1Z7sbZ-0004ZC-3l
	for submit <at> debbugs.gnu.org; Wed, 24 Jun 2015 17:53:13 -0400
Received: from mx1.redhat.com ([209.132.183.28]:33647)
 by debbugs.gnu.org with esmtp (Exim 4.80)
 (envelope-from <bcl@HIDDEN>) id 1Z7sbV-0004Yt-Gm
 for 20893 <at> debbugs.gnu.org; Wed, 24 Jun 2015 17:53:10 -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 999C72CD843;
 Wed, 24 Jun 2015 21:53:03 +0000 (UTC)
Received: from lister.brianlane.com (ovpn-113-104.phx2.redhat.com
 [10.3.113.104])
 by int-mx10.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id
 t5OLr1RE016290
 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO);
 Wed, 24 Jun 2015 17:53:03 -0400
Date: Wed, 24 Jun 2015 14:53:01 -0700
From: "Brian C. Lane" <bcl@HIDDEN>
To: Joan =?iso-8859-1?Q?Lled=F3?= <joanlluislledo@HIDDEN>
Subject: Re: bug#20893: Strange behavior when using parted
Message-ID: <20150624215301.GR3170@HIDDEN>
References: <CABgN3NO7WJ6YnKa3ze0VB8daF3jNgsz07VtxxwefuetGQ_1fVg@HIDDEN>
MIME-Version: 1.0
Content-Type: text/plain; charset=iso-8859-1
Content-Disposition: inline
Content-Transfer-Encoding: 8bit
In-Reply-To: <CABgN3NO7WJ6YnKa3ze0VB8daF3jNgsz07VtxxwefuetGQ_1fVg@HIDDEN>
User-Agent: Mutt/1.5.23 (2014-03-12)
X-Scanned-By: MIMEDefang 2.68 on 10.5.11.23
X-Spam-Score: -6.4 (------)
X-Debbugs-Envelope-To: 20893
Cc: 20893 <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: -6.4 (------)

On Wed, Jun 24, 2015 at 10:44:23PM +0200, Joan Lledó wrote:
> Hello parted list,
> 
> I'm not sure this is a bug, probably not, but since I've installed
> Debian 8 some scripts I use for helping me to test a library are
> having a strange behavior. I've wrote a little script as an example:

What version of parted are you using?

You may be hitting this bug:
https://bugzilla.redhat.com/show_bug.cgi?id=1135493

(there's a fix being discussed on the parted-devel list)


> 
> #!/bin/bash
> cd ~
> modprobe scsi_debug dev_size_mb=800 sector_size=4096
> parted /dev/sdf mklabel msdos
> parted /dev/sdf mkpart primary 1 50
> parted /dev/sdf mkpart primary 51 105
> parted /dev/sdf mkpart extended 106 750
> parted /dev/sdf mkpart primary 751 839
> parted /dev/sdf mkpart logical 107 200
> parted /dev/sdf mkpart logical 201 300
> parted /dev/sdf mkpart logical 301 450
> parted /dev/sdf mkpart logical 451 600
> parted /dev/sdf mkpart logical 601 750

Also, you should be using -s in your script to avoid prompting.

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




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

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


Received: (at submit) by debbugs.gnu.org; 24 Jun 2015 21:22:36 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Wed Jun 24 17:22:36 2015
Received: from localhost ([127.0.0.1]:56678 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.80)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1Z7s7v-0003sG-38
	for submit <at> debbugs.gnu.org; Wed, 24 Jun 2015 17:22:35 -0400
Received: from eggs.gnu.org ([208.118.235.92]:39023)
 by debbugs.gnu.org with esmtp (Exim 4.80)
 (envelope-from <joanlluislledo@HIDDEN>) id 1Z7rXl-00032H-3n
 for submit <at> debbugs.gnu.org; Wed, 24 Jun 2015 16:45:14 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
 (envelope-from <joanlluislledo@HIDDEN>) id 1Z7rXe-0005BM-Kp
 for submit <at> debbugs.gnu.org; Wed, 24 Jun 2015 16:45:07 -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,
 T_DKIM_INVALID autolearn=disabled version=3.3.2
Received: from lists.gnu.org ([2001:4830:134:3::11]:48308)
 by eggs.gnu.org with esmtp (Exim 4.71)
 (envelope-from <joanlluislledo@HIDDEN>) id 1Z7rXe-0005B4-IV
 for submit <at> debbugs.gnu.org; Wed, 24 Jun 2015 16:45:06 -0400
Received: from eggs.gnu.org ([2001:4830:134:3::10]:52525)
 by lists.gnu.org with esmtp (Exim 4.71)
 (envelope-from <joanlluislledo@HIDDEN>) id 1Z7rXd-0007Vq-9X
 for bug-parted@HIDDEN; Wed, 24 Jun 2015 16:45:06 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
 (envelope-from <joanlluislledo@HIDDEN>) id 1Z7rXb-00052L-Kk
 for bug-parted@HIDDEN; Wed, 24 Jun 2015 16:45:05 -0400
Received: from mail-yk0-x229.google.com ([2607:f8b0:4002:c07::229]:33244)
 by eggs.gnu.org with esmtp (Exim 4.71)
 (envelope-from <joanlluislledo@HIDDEN>) id 1Z7rXb-00051Z-GV
 for bug-parted@HIDDEN; Wed, 24 Jun 2015 16:45:03 -0400
Received: by ykdt186 with SMTP id t186so30447977ykd.0
 for <bug-parted@HIDDEN>; Wed, 24 Jun 2015 13:45:03 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113;
 h=mime-version:from:date:message-id:subject:to:content-type;
 bh=tsWo+dsIYqhG3r4MVtXj/dGyuRyJ3IpmZwSzJscSRgs=;
 b=zuh4Whq+YRGbr8btGffVGiSVSr0mm8MaXFKU/e5m2xAbLTRFrn1lXnETN6DgSy+6Pg
 3FBo9wspME2xbu3TsylbaY/dvsGqfm9u0jidMvkSjkdJRn2YZZiTkgzEeLSBwQmGjVRz
 DYbXEGVxU4jwf7v9xsTZiL9KDnDaV5bIQgd4mfDORzWYtJkxX5wYji77SjrSOC0jgTLq
 mDcN9PX2ejGPzSwRHWcyHiysc6Lsg0rrxQjbwo9hgbprimKyOSZDXZawrGkAnOo7xlaI
 OsC4Vw0UTik96j5DeKUwkPY2S/4PdDfI0r4nlet0Q+HGRQYIoUZ/4kUJI7mBOP/AzGDf
 Gfmg==
X-Received: by 10.13.198.2 with SMTP id i2mr52812459ywd.123.1435178703004;
 Wed, 24 Jun 2015 13:45:03 -0700 (PDT)
MIME-Version: 1.0
Received: by 10.13.240.4 with HTTP; Wed, 24 Jun 2015 13:44:23 -0700 (PDT)
From: =?UTF-8?Q?Joan_Lled=C3=B3?= <joanlluislledo@HIDDEN>
Date: Wed, 24 Jun 2015 22:44:23 +0200
Message-ID: <CABgN3NO7WJ6YnKa3ze0VB8daF3jNgsz07VtxxwefuetGQ_1fVg@HIDDEN>
Subject: Strange behavior when using parted
To: bug-parted@HIDDEN
Content-Type: text/plain; charset=UTF-8
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: Wed, 24 Jun 2015 17:22:34 -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 (----)

Hello parted list,

I'm not sure this is a bug, probably not, but since I've installed
Debian 8 some scripts I use for helping me to test a library are
having a strange behavior. I've wrote a little script as an example:

#!/bin/bash
cd ~
modprobe scsi_debug dev_size_mb=800 sector_size=4096
parted /dev/sdf mklabel msdos
parted /dev/sdf mkpart primary 1 50
parted /dev/sdf mkpart primary 51 105
parted /dev/sdf mkpart extended 106 750
parted /dev/sdf mkpart primary 751 839
parted /dev/sdf mkpart logical 107 200
parted /dev/sdf mkpart logical 201 300
parted /dev/sdf mkpart logical 301 450
parted /dev/sdf mkpart logical 451 600
parted /dev/sdf mkpart logical 601 750

mkfs.ext4 /dev/sdf1
mkfs.vfat -F 32 /dev/sdf2
mkfs.ext2 /dev/sdf4
mkfs.ext3 /dev/sdf5
mkfs.vfat -F 16 /dev/sdf6
mkfs.ext4 /dev/sdf7
mkfs.vfat -F 32 /dev/sdf8
mkswap /dev/sdf9

xfs_admin -L selinux /dev/sdf8

echo "Mounting sdf1..."
mount /dev/sdf1 /mnt
umount /mnt

echo "Mounting sdf2..."
mount /dev/sdf2 /mnt
umount /mnt

echo "Mounting sdf4..."
mount /dev/sdf4 /mnt
umount /mnt

echo "Mounting sdf5..."
mount /dev/sdf5 /mnt
umount /mnt

echo "Mounting  sdf6..."
mount /dev/sdf6 /mnt
umount /mnt

echo "Mounting sdf7..."
mount /dev/sdf7 /mnt
umount /mnt

echo "Mounting sdf8..."
mount /dev/sdf8 /mnt
umount /mnt


When I run this script, most of the attempts to format the new
partitions fail with the error "The file /dev/sdf1 does not exist and
no size was specified.", just like the attempts to mount the formatted
partitions. The result of running this script is not even always the
same. Is seems like the kernel is not receiving the updates of the
/dev/sdf device. Not sure if this is caused by parted, udev, the
kernel... any ideas?




Acknowledgement sent to Joan Lledó <joanlluislledo@HIDDEN>:
New bug report received and forwarded. Copy sent to bug-parted@HIDDEN. Full text available.
Report forwarded to bug-parted@HIDDEN:
bug#20893; 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.