Re: Detection of Advanced Format drives

From: Martin K. Petersen
Date: Thu Feb 16 2012 - 14:14:31 EST


>>>>> "Arun" == Arun <engineerarun@xxxxxxxxx> 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
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/