# Re: \[PATCH v2\] Always return last partition end address in 512B blocks

- From: Jes Sorensen \<hidden\>
- Date: 2016-12-13 14:09:41 
- List: linux-raid
- Page: https://ratatoskr.run/linux-raid/2016/12/6633930
- Thread: https://ratatoskr.run/linux-raid/2016/12/6633930/t.md

```text
Mariusz Dabrowski [ref] writes:
> For 4K disks 'endofpart' is an index of the last 4K sector used by partition.
> mdadm is using number of 512-byte sectors, so value returned by
> get_last_partition_end must be multiplied by 8 for devices with 4K sectors.
> Also, unused 'ret' variable has been removed.
>
> Signed-off-by: Mariusz Dabrowski <redacted>
> ---
>  util.c | 7 +++++--
>  1 file changed, 5 insertions(+), 2 deletions(-)

Applied!

Thanks,
Jes
```
