GNU bug report logs -
#16566
Parted off-by-one error when using "-a none" or "-a min"
Previous Next
Full log
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
This bug report was last modified 11 years and 104 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.