lkml.org 
[lkml]   [2012]   [Feb]   [16]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: Detection of Advanced Format drives
From
Date
>>>>> "Arun" == Arun  <engineerarun@gmail.com> writes:

Arun> [...] couldn't find any direct way of detecting an SSD drive like
Arun> an ioctl.

Arun> Is there any such direct way of detecting SSD drives yet? I am
Arun> working on kernel version 2.6.32-19.

You can check /sys/block/foo/queue/rotational.

The matching BLKROTATIONAL ioctl didn't go in until very recently.

--
Martin K. Petersen Oracle Linux Engineering


\
 
 \ /
  Last update: 2012-02-16 20:17    [W:0.083 / U:0.012 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site