Subject: Is this a bug?
From: Thomas Groman <[email-masked]>
To: [email-masked]
Date: Wed, 7 Apr 2021 21:47:12 -0700
List-Id: <debbugs-submit.debbugs.gnu.org>

Is this a bug, or am I doing something wrong? I didn't know it was
possible to make gpt partitions 0 sectors wide.

(parted) print
Model: ATA Samsung SSD 850 (scsi)
Disk /dev/sdb: 1000GB
Sector size (logical/physical): 512B/512B
Partition Table: gpt
Disk Flags:

Number  Start   End     Size    File system     Name    Flags
1      1049kB  3146kB  2097kB  linux-swap(v1)  grub    bios_grub
2      3146kB  540MB   537MB   fat32           boot    boot, esp
5      540MB   18.8GB  18.3GB  linux-swap(v1)          swap
4      18.8GB  105GB   85.9GB  ext4            rootfs
3      105GB   1000GB  895GB

(parted) mkpart fast 500GB -1
Warning: You requested a partition from 500GB to 1000GB (sectors
976562500..1953523215).
The closest location we can manage is 1000GB to 1000GB (sectors
1953523712..1953523712).
Is this still acceptable to you?
Yes/No? No
(parted) mkpart fast 500GB 1000GB
Warning: You requested a partition from 500GB to 1000GB (sectors
976562500..1953125000).
The closest location we can manage is 1000GB to 1000GB (sectors
1953523712..1953523712).
Is this still acceptable to you?
Yes/No? No
-- 
 _______________________________________ 
/ Schshschshchsch.                      \
|                                       |
\ -- The Gorn, "Arena", stardate 3046.2 /
 --------------------------------------- 
\
 \
   /\   /\   
  //\\_//\\     ____
  \_     _/    /   /
   / * * \    /^^^]
   \_\O/_/    [   ]
    /   \_    [   /
    \     \_  /  /
     [ [ /  \/ _/
    _[ [ \  /_/