2 edited title
| link

What units are the values in /proc/partionspartitions and /sys/dev/block/<block>/size?

1
source | link

What units are the values in /proc/partions and /sys/dev/block/<block>/size?

I have a sample emmc block info from an android device

From /proc/partitions

major minor  #blocks  name
 179    1    5120    mmcblk0p1

Using my little intelligence I am assuming /proc/partitions uses blocks since it says partition 1 has 5120 blocks

From /sys/dev/block/179:0/mmcblk0p1/size

10240

It is seeming the partition values in /sys/…/size are double the values of /proc/partitions. Hence why are they different hence what the units in both of them?