mirror of
git://sourceware.org/git/lvm2.git
synced 2025-01-02 01:18:26 +03:00
filters: move device_info_t definition to header
This commit is contained in:
parent
9161308252
commit
45db25817f
@ -13,6 +13,11 @@
|
||||
* Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
||||
*/
|
||||
|
||||
typedef struct {
|
||||
const char name[15];
|
||||
const int8_t max_partitions;
|
||||
} device_info_t;
|
||||
|
||||
/*
|
||||
* Devices are only checked for partition tables if their minor number
|
||||
* is a multiple of the number corresponding to their type below
|
||||
|
@ -27,6 +27,8 @@
|
||||
#include <fcntl.h>
|
||||
#include <limits.h>
|
||||
|
||||
#include "device-types.h"
|
||||
|
||||
#define NUMBER_OF_MAJORS 4096
|
||||
|
||||
#define PARTITION_SCSI_DEVICE (1 << 0)
|
||||
@ -35,13 +37,6 @@ static struct {
|
||||
int flags;
|
||||
} _partitions[NUMBER_OF_MAJORS];
|
||||
|
||||
typedef struct {
|
||||
const char name[15];
|
||||
const int8_t max_partitions;
|
||||
} device_info_t;
|
||||
|
||||
#include "device-types.h"
|
||||
|
||||
static int _md_major = -1;
|
||||
static int _blkext_major = -1;
|
||||
static int _drbd_major = -1;
|
||||
|
Loading…
Reference in New Issue
Block a user