From: Karel Zak <kzak@redhat.com>
To: kerolasa@gmail.com
Cc: Bernhard Voelker <mail@bernhard-voelker.de>,
util-linux <util-linux@vger.kernel.org>
Subject: Re: [pull] /run directory and swapon
Date: Tue, 10 Jul 2012 11:56:40 +0200 [thread overview]
Message-ID: <20120710095640.GC5281@x2.net.home> (raw)
In-Reply-To: <CAG27Bk3GYLLzpQry3+VrnOAxTZRqHtseTe0WQY3n9M0q6yAY7w@mail.gmail.com>
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@redhat.com>
http://karelzak.blogspot.com
next prev parent reply other threads:[~2012-07-10 10:11 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-06-27 21:33 [pull] /run directory and swapon Sami Kerola
2012-06-28 5:45 ` Bernhard Voelker
2012-06-28 6:21 ` Bernhard Voelker
2012-06-28 8:06 ` Sami Kerola
2012-07-10 9:56 ` Karel Zak [this message]
2012-06-29 3:38 ` Mike Frysinger
2012-06-30 20:59 ` Sami Kerola
2012-07-10 10:08 ` Karel Zak
2012-07-10 11:10 ` Karel Zak
2012-07-10 11:56 ` Karel Zak
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20120710095640.GC5281@x2.net.home \
--to=kzak@redhat.com \
--cc=kerolasa@gmail.com \
--cc=mail@bernhard-voelker.de \
--cc=util-linux@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).