#2157 closed enhancement (fixed)

fdisk partition table dump improvement

Reported by: Wendell P Silva Owned by: Chris Johns
Priority: normal Milestone: 4.11
Component: fs Version: 4.11
Severity: minor Keywords:
Cc: gedare@… Blocked By:
Blocking:

Description

The documentation of struct rtems_bdpart_partition (P) says that the member 'end' is the "Block index for partition end (this block is not a part of the partition)". Then, the fdisk's partition table dump should print ((P)->end - 1).

Currently, one can think that the last block of a partition P is superposing the beginning of the partition (P + 1). Example:


PARTITION TABLE


BEGIN | END | TYPE


2048 | 133120 | FAT 32

133120 | 15628032 | FAT 32


With be proposed patch, it would be:


PARTITION TABLE


BEGIN | END | TYPE


2048 | 133119 | FAT 32

133120 | 15628031 | FAT 32


Attachments (1)

bdpart-dump.diff (422 bytes) - added by Wendell P Silva on Dec 3, 2013 at 3:50:07 PM.
Show the correct index of partition's last block (partition end).

Download all attachments as: .zip

Change History (3)

Changed on Dec 3, 2013 at 3:50:07 PM by Wendell P Silva

Attachment: bdpart-dump.diff added

Show the correct index of partition's last block (partition end).

comment:1 Changed on Dec 3, 2013 at 6:58:05 PM by Gedare Bloom

Resolution: fixed
Status: newclosed, gedare@rtems.org

comment:2 Changed on Nov 24, 2014 at 6:58:28 PM by Gedare Bloom

Version: HEAD4.11

Replace Version=HEAD with Version=4.11 for the tickets with Milestone >= 4.11

Note: See TracTickets for help on using tickets.