All of lore.kernel.org
 help / color / mirror / Atom feed
From: "TK (Tzung-Kwang) Wang-SSI" <tk.wang@ssi.samsung.com>
To: Sitsofe Wheeler <sitsofe@gmail.com>
Cc: "fio@vger.kernel.org" <fio@vger.kernel.org>
Subject: RE: sector size other than 512 bytes
Date: Mon, 18 Apr 2016 20:56:22 +0000	[thread overview]
Message-ID: <6970D64051BC6047987810C1EE37A0351B698AB0@SSIEXCH-MB3.ssi.samsung.com> (raw)
In-Reply-To: <CALjAwxhktXN=-PqpebHOgq2RzhD6HrzDW101gpjArh=3J6o2pQ@mail.gmail.com>

Sitsofe,

Yes, dmesg shows "Unsupported sector size 520.". So solution for this issue is have 520-byte sector size support in linux device driver, it seems.

Regards,
TK

-----Original Message-----
From: Sitsofe Wheeler [mailto:sitsofe@gmail.com] 
Sent: Saturday, April 16, 2016 3:35 AM
To: TK (Tzung-Kwang) Wang-SSI
Cc: fio@vger.kernel.org
Subject: Re: sector size other than 512 bytes

On 15 April 2016 at 22:19, TK (Tzung-Kwang) Wang-SSI <tk.wang@ssi.samsung.com> wrote:
> That shows 512 instead of 520,
>
> # cat /sys/block/sdb/queue/logical_block_size
> 512
> # sg_readcap /dev/sdb
> Read Capacity results:
>    Last logical block address=918552575 (0x36bfffff), Number of blocks=918552576
>    Logical block length=520 bytes
> Hence:
>    Device size: 477647339520 bytes, 455520.0 MiB, 477.65 GB

In that case I'd say the issue you're seeing is within the kernel rather than in fio - the kernel block device is going to refuse userspace accesses that aren't multiples of 512. Possibly raw SCSI commands would work?

Is there anything in dmesg about "unsupported sector size" (see
https://github.com/torvalds/linux/blob/v4.5/drivers/scsi/sd.c#L2292
for the check that provokes that message)?

--
Sitsofe | http://sucs.org/~sits/

  reply	other threads:[~2016-04-18 21:00 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-04-14 18:44 sector size other than 512 bytes TK (Tzung-Kwang) Wang-SSI
2016-04-14 19:45 ` Sitsofe Wheeler
2016-04-14 20:06   ` TK (Tzung-Kwang) Wang-SSI
2016-04-15  3:19     ` Sitsofe Wheeler
2016-04-15 21:19       ` TK (Tzung-Kwang) Wang-SSI
2016-04-16 10:34         ` Sitsofe Wheeler
2016-04-18 20:56           ` TK (Tzung-Kwang) Wang-SSI [this message]
2016-04-19  5:35             ` Sitsofe Wheeler

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=6970D64051BC6047987810C1EE37A0351B698AB0@SSIEXCH-MB3.ssi.samsung.com \
    --to=tk.wang@ssi.samsung.com \
    --cc=fio@vger.kernel.org \
    --cc=sitsofe@gmail.com \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.