From: L A Walsh <lkml@tlinx.org>
To: util-linux@vger.kernel.org
Subject: what should blockdev getbpsz return 4k disks w/512e?
Date: Sat, 04 Nov 2017 02:09:51 -0700 [thread overview]
Message-ID: <59FD83DF.805@tlinx.org> (raw)
I just tried blockdev on a HW raid device (/dev/sdb) composed of
4K disks that can (w/performance penalty) emulate 512 byte disk
(i.e. have the 512e feature). It is returning 512.
If the disk is composed of 4K disks, shouldn't the raid show 4K
as well? Otherwise, how do utils know what alignment to use or
not to use 512 due to penalty costs? For my formatted disks, I
use 4K allocation units, so for those, I shouldn't see problems,
but some other disk subsystems or raw-disk using progs also need to
know to allocate on 4K boundaries.
Any idea where this info should be showing up?
Thanks!
-linda
next reply other threads:[~2017-11-04 9:16 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-11-04 9:09 L A Walsh [this message]
2017-11-06 10:19 ` what should blockdev getbpsz return 4k disks w/512e? Karel Zak
2017-11-14 4:37 ` L A Walsh
2017-11-14 10:08 ` 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=59FD83DF.805@tlinx.org \
--to=lkml@tlinx.org \
--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).