RE: sector size other than 512 bytes

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxx] 
Sent: Saturday, April 16, 2016 3:35 AM
To: TK (Tzung-Kwang) Wang-SSI
Cc: fio@xxxxxxxxxxxxxxx
Subject: Re: sector size other than 512 bytes

On 15 April 2016 at 22:19, TK (Tzung-Kwang) Wang-SSI <tk.wang@xxxxxxxxxxxxxxx> 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/
��.n��������+%������w��{.n�������^n�r������&��z�ޗ�zf���h���~����������_��+v���)ߣ�

[Index of Archives]     [Linux Kernel]     [Linux SCSI]     [Linux IDE]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux SCSI]

  Powered by Linux