mirror of
git://sourceware.org/git/lvm2.git
synced 2024-12-22 17:35:59 +03:00
6a431eb242
Description stolen from linux d/b/rbd.c L3: rbd.c -- Export ceph rados objects as a Linux block device 16 partitions seem to make sense according to L90: #define RBD_SINGLE_MAJOR_PART_SHIFT 4 Running *scan -vvvvvvdddddd yields #filters/filter-type.c:28 /dev/rbd1p5: Skipping: Unrecognised LVM device type 252 #filters/filter-persistent.c:131 filter caching bad /dev/rbd1p5 right now, and adding types = ["rbd", 252] to /e/l/lvm.conf (with the matching "252 rbd" in /p/devices) works as a per-machine fix: rbd1 252:16 0 1T 1 disk |-rbd1p1 252:17 0 243M 1 part |-rbd1p2 252:18 0 1K 1 part `-rbd1p5 252:21 0 1023.8G 1 part `-dev01--vg-root 253:0 0 1023.8G 0 lvm but rbd is supported by upstream so it'd be nice to have it work OOB
70 lines
2.4 KiB
C
70 lines
2.4 KiB
C
/*
|
|
* Copyright (C) 2001-2004 Sistina Software, Inc. All rights reserved.
|
|
* Copyright (C) 2004-2013 Red Hat, Inc. All rights reserved.
|
|
*
|
|
* 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., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
|
|
*/
|
|
|
|
typedef struct {
|
|
const char name[15];
|
|
const int8_t max_partitions;
|
|
const char *desc;
|
|
} dev_known_type_t;
|
|
|
|
/*
|
|
* 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.
|
|
*/
|
|
static const dev_known_type_t _dev_known_types[] = {
|
|
{"sd", 16, "SCSI disk"},
|
|
{"ide", 64, "IDE disk"},
|
|
{"md", 1, "Multiple Disk (MD/SoftRAID)"},
|
|
{"loop", 1, "Loop device"},
|
|
{"ramdisk", 1, "RAM disk"},
|
|
{"device-mapper", 1, "Mapped device"},
|
|
{"mdp", 1, "Partitionable MD"},
|
|
{"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)"},
|
|
{"rbd", 16, "Ceph rados object as a Linux block device"},
|
|
{"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)"},
|
|
{"bcache", 1, "bcache block device cache"},
|
|
{"nvme", 64, "NVM Express"},
|
|
{"zvol", 16, "ZFS Zvols"},
|
|
{"VxDMP", 16, "Veritas Dynamic Multipathing"},
|
|
{"", 0, ""}
|
|
};
|