On Thu, Jun 28, 2012 at 10:06:35AM +0200, Sami Kerola wrote: > sake@sake /home/src/util-linux ./swapon --show --bytes > NAME TYPE SIZE USED PRIO > /dev/dm-0 partition 7999582208 0 -1 > > sake@sake /home/src/util-linux ./lsblk -I 252 --bytes # why I did not > get output? > sake@sake /home/src/util-linux ./lsblk --bytes | grep 252 > | `-cryptswap1 (dm-0) 252:0 0 7999586304 0 crypt [SWAP] > > Still differs? But which one is right? Both is right, because size of swap area != size of the device. The first page (e.g. 4096 bytes) on the device is swap header. The area could be also reduced by bad blocks or by mkswap <size> option. 7999586304 - 7999582208 = 4096 Karel -- Karel Zak <kzak@xxxxxxxxxx> http://karelzak.blogspot.com -- To unsubscribe from this list: send the line "unsubscribe util-linux" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html