GNU bug report logs -
#16566
Parted off-by-one error when using "-a none" or "-a min"
Previous Next
To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 16566 in the body.
You can then email your comments to 16566 AT debbugs.gnu.org in the normal way.
Toggle the display of automated, internal messages from the tracker.
Report forwarded
to
bug-parted <at> gnu.org
:
bug#16566
; Package
parted
.
(Mon, 27 Jan 2014 08:28:02 GMT)
Full text and
rfc822 format available.
Acknowledgement sent
to
Марк Коренберг <socketpair <at> gmail.com>
:
New bug report received and forwarded. Copy sent to
bug-parted <at> gnu.org
.
(Mon, 27 Jan 2014 08:28:02 GMT)
Full text and
rfc822 format available.
Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):
===================================
# LANG=C parted -a none /dev/loop0
GNU Parted 2.1
Using /dev/loop0
Welcome to GNU Parted! Type 'help' to view a list of commands.
(parted) u s
(parted) mkpart primary 1MiB 1GiB
(parted) p
Model: (file)
Disk /dev/loop0: 41943040s
Sector size (logical/physical): 512B/512B
Partition Table: msdos
Number Start End Size Type File system Flags
1 2048s 2097152s 2095105s primary
(parted)
===================================
# LANG=C parted -a opt /dev/loop0
GNU Parted 2.1
Using /dev/loop0
Welcome to GNU Parted! Type 'help' to view a list of commands.
(parted) u s
(parted) mkpart primary 1MiB 1GiB
(parted) p
Model: (file)
Disk /dev/loop0: 41943040s
Sector size (logical/physical): 512B/512B
Partition Table: msdos
Number Start End Size Type File system Flags
1 2048s 2097151s 2095104s primary
(parted)
=======================================
So, I guess, for losetup device, Parted aligns to the border of the
page (4096 bytes)
To make things easier, PLEASE interpret "END" parameter of mkpart
command as offset of the END of last accessible sector of this
partition. Today Parted interprets this parameter as offset of
BEGINNIG of last accessible sector in this partiton.
I think i'm not first who mention this behaviour. Please point me to
bug/documentation so.
--
Segmentation fault
Reply sent
to
Phillip Susi <psusi <at> ubuntu.com>
:
You have taken responsibility.
(Thu, 30 Jan 2014 19:37:01 GMT)
Full text and
rfc822 format available.
Notification sent
to
Марк Коренберг <socketpair <at> gmail.com>
:
bug acknowledged by developer.
(Thu, 30 Jan 2014 19:37:02 GMT)
Full text and
rfc822 format available.
Message #10 received at 16566-done <at> debbugs.gnu.org (full text, mbox):
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On 1/27/2014 3:27 AM, Марк Коренберг wrote:
> GNU Parted 2.1
Parted 2.1 is 5 releases and over 4 years old, please upgrade.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.17 (MingW32)
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/
iQEcBAEBAgAGBQJS6qm4AAoJEI5FoCIzSKrwKhgH/jKrKfkYZ4m7GLLkTvcSkgdw
qIde+DSRNk12Nz6AasXDCfWJyo6hh/7XigaAMxJNuzoBZ/D7x6MKsNKxHlSvdH3q
4utCy1UXZ5phob+kWF33J52v/AMXcGulA1VgiCBarFaALPF0k6ax3G21c0sJ9HUi
CdVWKv1zx5TxTwwgilDOUfIRHSMs5+CZdihD5JePOIaZU2HGA6XeTMA9U7Gi+mDZ
Oa54CX3we049IYSjynGur1izS0mcZ6ZZ2QkOJeakle51Dq5qmyXmiJ32aUfO/lmE
w/rV9DMstKZWF/SJrbA4Amx+YXw9EB5Zb13Cz+sOfHKZX+uO0v/ovkpT7T5V68E=
=ndYm
-----END PGP SIGNATURE-----
Information forwarded
to
bug-parted <at> gnu.org
:
bug#16566
; Package
parted
.
(Fri, 31 Jan 2014 05:48:01 GMT)
Full text and
rfc822 format available.
Message #13 received at 16566 <at> debbugs.gnu.org (full text, mbox):
Sorry, I have checked in Gentoo. This bug was already fixed. How I can
find when it was fixed (version, commit...)?
2014-01-31 GNU bug Tracking System <help-debbugs <at> gnu.org>:
> Your bug report
>
> #16566: Parted off-by-one error when using "-a none" or "-a min"
>
> which was filed against the parted package, has been closed.
>
> The explanation is attached below, along with your original report.
> If you require more details, please reply to 16566 <at> debbugs.gnu.org.
>
> --
> 16566: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=16566
> GNU Bug Tracking System
> Contact help-debbugs <at> gnu.org with problems
>
>
> ---------- Пересылаемое сообщение ----------
> From: Phillip Susi <psusi <at> ubuntu.com>
> To: "Марк Коренберг" <socketpair <at> gmail.com>, 16566-done <at> debbugs.gnu.org
> Cc:
> Date: Thu, 30 Jan 2014 14:36:24 -0500
> Subject: Re: bug#16566: Parted off-by-one error when using "-a none" or "-a min"
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> On 1/27/2014 3:27 AM, Марк Коренберг wrote:
>> GNU Parted 2.1
>
> Parted 2.1 is 5 releases and over 4 years old, please upgrade.
>
>
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v2.0.17 (MingW32)
> Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/
>
> iQEcBAEBAgAGBQJS6qm4AAoJEI5FoCIzSKrwKhgH/jKrKfkYZ4m7GLLkTvcSkgdw
> qIde+DSRNk12Nz6AasXDCfWJyo6hh/7XigaAMxJNuzoBZ/D7x6MKsNKxHlSvdH3q
> 4utCy1UXZ5phob+kWF33J52v/AMXcGulA1VgiCBarFaALPF0k6ax3G21c0sJ9HUi
> CdVWKv1zx5TxTwwgilDOUfIRHSMs5+CZdihD5JePOIaZU2HGA6XeTMA9U7Gi+mDZ
> Oa54CX3we049IYSjynGur1izS0mcZ6ZZ2QkOJeakle51Dq5qmyXmiJ32aUfO/lmE
> w/rV9DMstKZWF/SJrbA4Amx+YXw9EB5Zb13Cz+sOfHKZX+uO0v/ovkpT7T5V68E=
> =ndYm
> -----END PGP SIGNATURE-----
>
>
>
> ---------- Пересылаемое сообщение ----------
> From: "Марк Коренберг" <socketpair <at> gmail.com>
> To: bug-parted <at> gnu.org
> Cc:
> Date: Mon, 27 Jan 2014 14:27:02 +0600
> Subject: Parted off-by-one error when using "-a none" or "-a min"
> ===================================
> # LANG=C parted -a none /dev/loop0
> GNU Parted 2.1
> Using /dev/loop0
> Welcome to GNU Parted! Type 'help' to view a list of commands.
> (parted) u s
> (parted) mkpart primary 1MiB 1GiB
> (parted) p
> Model: (file)
> Disk /dev/loop0: 41943040s
> Sector size (logical/physical): 512B/512B
> Partition Table: msdos
>
> Number Start End Size Type File system Flags
> 1 2048s 2097152s 2095105s primary
> (parted)
> ===================================
> # LANG=C parted -a opt /dev/loop0
> GNU Parted 2.1
> Using /dev/loop0
> Welcome to GNU Parted! Type 'help' to view a list of commands.
> (parted) u s
> (parted) mkpart primary 1MiB 1GiB
> (parted) p
> Model: (file)
> Disk /dev/loop0: 41943040s
> Sector size (logical/physical): 512B/512B
> Partition Table: msdos
>
> Number Start End Size Type File system Flags
> 1 2048s 2097151s 2095104s primary
> (parted)
> =======================================
>
> So, I guess, for losetup device, Parted aligns to the border of the
> page (4096 bytes)
>
> To make things easier, PLEASE interpret "END" parameter of mkpart
> command as offset of the END of last accessible sector of this
> partition. Today Parted interprets this parameter as offset of
> BEGINNIG of last accessible sector in this partiton.
>
>
> I think i'm not first who mention this behaviour. Please point me to
> bug/documentation so.
>
>
> --
> Segmentation fault
>
>
>
--
Segmentation fault
Information forwarded
to
bug-parted <at> gnu.org
:
bug#16566
; Package
parted
.
(Mon, 10 Feb 2014 21:38:02 GMT)
Full text and
rfc822 format available.
Message #16 received at 16566 <at> debbugs.gnu.org (full text, mbox):
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On 1/31/2014 12:47 AM, Марк Коренберг wrote:
> Sorry, I have checked in Gentoo. This bug was already fixed. How I
> can find when it was fixed (version, commit...)?
You can look through the git logs.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.17 (MingW32)
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/
iQEcBAEBAgAGBQJS+UajAAoJEI5FoCIzSKrw8hIH/RjsJsHjnd4n00rKVp+hoEcy
UOxIjiQKPZJ4YebzjNJ8MdfeZ8nqqcrBVSNknzNwvkdUPlwkF6hI2z7Dkwuu8lfJ
0TwHPDKCKD6MQUnY69xTjzJ3y3hp1NV7tZ/+kjPBDU2oBnuif7bzSOJ98qev0NLU
EPh7DnlhZW72nmCkfFj3mQzA5FeUW1R1kMcXFKMk9FRm5aOQLn46KeLqY4t6LeTC
Cq7AvFQwLDt/R5SBu87jrhchOQjr2xtSXX4qJUdA03Ecl7iIJHzd3/M9Zy7XX1Ni
OFZlsooZqA3C0rbTQWGzHWtWBUK1J6CB/2Pvgk2FAR9Vlz6DuZN5Xd0BQh0HUeI=
=Bp7J
-----END PGP SIGNATURE-----
bug archived.
Request was from
Debbugs Internal Request <help-debbugs <at> gnu.org>
to
internal_control <at> debbugs.gnu.org
.
(Tue, 11 Mar 2014 11:24:06 GMT)
Full text and
rfc822 format available.
This bug report was last modified 11 years and 103 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.