Opened on 12/03/13 at 15:50:07
Last modified on 12/03/13 at 18:58:05
#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)
Change History (3)
Changed on 12/03/13 at 15:50:07 by Wendell P Silva
Attachment: | bdpart-dump.diff added |
---|
comment:1 Changed on 12/03/13 at 18:58:05 by Gedare Bloom
Resolution: | → fixed |
---|---|
Status: | new → closed, gedare@rtems.org |
comment:2 Changed on 11/24/14 at 18:58:28 by Gedare Bloom
Version: | HEAD → 4.11 |
---|
Replace Version=HEAD with Version=4.11 for the tickets with Milestone >= 4.11
Show the correct index of partition's last block (partition end).