public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: "Martin K. Petersen" <martin.petersen@oracle.com>
To: Arun <engineerarun@gmail.com>
Cc: NamJae Jeon <linkinjeon@gmail.com>,
	"Martin K. Petersen" <martin.petersen@oracle.com>,
	Mark Knecht <markknecht@gmail.com>,
	Joshua Scoggins <theoretically.x64@gmail.com>,
	Mike Snitzer <snitzer@gmail.com>,
	Alan Cox <alan@lxorguk.ukuu.org.uk>,
	linux-kernel@vger.kernel.org
Subject: Re: Detection of Advanced Format drives
Date: Thu, 16 Feb 2012 14:14:19 -0500	[thread overview]
Message-ID: <yq1pqdea8vo.fsf@sermon.lab.mkp.net> (raw)
In-Reply-To: <CANLaLhagmNFFrNxC88cyPqsx_j+-Y-WaAUCQpkR57z264Bn6Vw@mail.gmail.com> (Arun's message of "Fri, 17 Feb 2012 00:36:08 +0530")

>>>>> "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

  parent reply	other threads:[~2012-02-16 19:14 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-09-26  9:55 Detection of Advanced Format drives Arun
2011-09-26 10:15 ` Alan Cox
2011-09-26 19:48   ` Joshua Scoggins
2011-09-26 20:09     ` Mike Snitzer
2011-09-27 17:59       ` Joshua Scoggins
2011-09-27 18:36         ` Arun
2011-09-27 18:59           ` Martin K. Petersen
2011-09-27 19:18             ` Arun
2011-09-27 20:10             ` Mark Knecht
2011-09-27 21:12               ` Arun
2011-09-27 21:44                 ` Martin K. Petersen
2011-09-28  1:23                   ` NamJae Jeon
     [not found]                     ` <CANLaLhagmNFFrNxC88cyPqsx_j+-Y-WaAUCQpkR57z264Bn6Vw@mail.gmail.com>
2012-02-16 19:14                       ` Martin K. Petersen [this message]
2011-09-26 21:01     ` Martin K. Petersen
2011-09-26 21:03   ` Martin K. Petersen

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=yq1pqdea8vo.fsf@sermon.lab.mkp.net \
    --to=martin.petersen@oracle.com \
    --cc=alan@lxorguk.ukuu.org.uk \
    --cc=engineerarun@gmail.com \
    --cc=linkinjeon@gmail.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=markknecht@gmail.com \
    --cc=snitzer@gmail.com \
    --cc=theoretically.x64@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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox