Re: UAS driver seems to be reporting a 4k sector size for a 512 byte sector device?

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

 



>>>>> "Ted" == Theodore Ts'o <tytso@xxxxxxx> writes:

Ted,

Ted> sg_readcap doesn't report the physical sector size, just the
Ted> logical block size:

Ted> # sg_readcap /dev/sdd
Ted> Read Capacity results:
Ted>    Last logical block address=4000797359 (0xee7752af), Number of
Ted>    blocks=4000797360 Logical block length=512 bytes
Ted> Hence:
Ted>    Device size: 2048408248320 bytes, 1953514.3 MiB, 2048.41 GB

You need to run sg_readcap with the -l option to get to the physical
block size exponent. Please let us know if that makes a difference.

-- 
Martin K. Petersen	Oracle Linux Engineering
--
To unsubscribe from this list: send the line "unsubscribe linux-scsi" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [SCSI Target Devel]     [Linux SCSI Target Infrastructure]     [Kernel Newbies]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Linux IIO]     [Samba]     [Device Mapper]
  Powered by Linux