2012-07-26 05:31:06 +04:00
/*
* Copyright ( C ) 2001 - 2004 Sistina Software , Inc . All rights reserved .
2013-06-12 14:08:56 +04:00
* Copyright ( C ) 2004 - 2013 Red Hat , Inc . All rights reserved .
2012-07-26 05:31:06 +04:00
*
* This file is part of LVM2 .
*
* This copyrighted material is made available to anyone wishing to use ,
* modify , copy , or redistribute it subject to the terms and conditions
* of the GNU Lesser General Public License v .2 .1 .
*
* You should have received a copy of the GNU Lesser General Public License
* along with this program ; if not , write to the Free Software Foundation ,
* Inc . , 59 Temple Place , Suite 330 , Boston , MA 02111 - 1307 USA
*/
2012-07-26 15:22:55 +04:00
typedef struct {
const char name [ 15 ] ;
const int8_t max_partitions ;
2013-06-12 14:08:56 +04:00
const char * desc ;
} dev_known_type_t ;
2012-07-26 15:22:55 +04:00
2012-07-26 05:31:06 +04:00
/*
* Devices are only checked for partition tables if their minor number
* is a multiple of the number corresponding to their type below
* i . e . this gives the granularity of whole - device minor numbers .
* Use 1 if the device is not partitionable .
*
* The list can be supplemented with devices / types in the config file .
*/
2013-06-12 14:08:56 +04:00
static const dev_known_type_t _dev_known_types [ ] = {
{ " sd " , 16 , " SCSI disk " } ,
2014-02-20 20:06:26 +04:00
{ " ide " , 64 , " IDE disk " } ,
2013-06-12 14:08:56 +04:00
{ " md " , 1 , " Multiple Disk (MD/SoftRAID) " } ,
{ " loop " , 1 , " Loop device " } ,
2014-02-20 20:06:26 +04:00
{ " ramdisk " , 1 , " RAM disk " } ,
{ " device-mapper " , 1 , " Mapped device " } ,
{ " mdp " , 1 , " Partitionable MD " } ,
2013-06-12 14:08:56 +04:00
{ " dasd " , 4 , " DASD disk (IBM S/390, zSeries) " } ,
{ " dac960 " , 8 , " DAC960 " } ,
{ " nbd " , 16 , " Network Block Device " } ,
{ " ida " , 16 , " Compaq SMART2 " } ,
{ " cciss " , 16 , " Compaq CCISS array " } ,
{ " ubd " , 16 , " User-mode virtual block device " } ,
{ " ataraid " , 16 , " ATA Raid " } ,
{ " drbd " , 16 , " Distributed Replicated Block Device (DRBD) " } ,
{ " emcpower " , 16 , " EMC Powerpath " } ,
{ " power2 " , 16 , " EMC Powerpath " } ,
{ " i2o_block " , 16 , " i2o Block Disk " } ,
{ " iseries/vd " , 8 , " iSeries disks " } ,
{ " gnbd " , 1 , " Network block device " } ,
{ " aoe " , 16 , " ATA over Ethernet " } ,
{ " xvd " , 16 , " Xen virtual block device " } ,
{ " vdisk " , 8 , " SUN's LDOM virtual block device " } ,
{ " ps3disk " , 16 , " PlayStation 3 internal disk " } ,
{ " virtblk " , 8 , " VirtIO disk " } ,
{ " mmc " , 16 , " MMC block device " } ,
{ " blkext " , 1 , " Extended device partitions " } ,
{ " fio " , 16 , " Fusion IO " } ,
{ " mtip32xx " , 16 , " Micron PCIe SSD " } ,
{ " vtms " , 16 , " Violin Memory " } ,
{ " skd " , 16 , " STEC " } ,
{ " scm " , 8 , " Storage Class Memory (IBM S/390) " } ,
2013-09-16 19:56:55 +04:00
{ " bcache " , 1 , " bcache block device cache " } ,
2013-10-09 23:08:07 +04:00
{ " nvme " , 64 , " NVM Express " } ,
2014-01-27 16:13:32 +04:00
{ " zvol " , 16 , " ZFS Zvols " } ,
2013-06-12 14:08:56 +04:00
{ " " , 0 , " " }
2012-07-26 05:31:06 +04:00
} ;