1
0
mirror of git://sourceware.org/git/lvm2.git synced 2025-01-04 09:18:36 +03:00

filters: move device_info_t definition to header

This commit is contained in:
Alasdair G Kergon 2012-07-26 12:22:55 +01:00
parent 9161308252
commit 45db25817f
2 changed files with 7 additions and 7 deletions

View File

@ -13,6 +13,11 @@
* Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA * 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 * Devices are only checked for partition tables if their minor number
* is a multiple of the number corresponding to their type below * is a multiple of the number corresponding to their type below

View File

@ -27,6 +27,8 @@
#include <fcntl.h> #include <fcntl.h>
#include <limits.h> #include <limits.h>
#include "device-types.h"
#define NUMBER_OF_MAJORS 4096 #define NUMBER_OF_MAJORS 4096
#define PARTITION_SCSI_DEVICE (1 << 0) #define PARTITION_SCSI_DEVICE (1 << 0)
@ -35,13 +37,6 @@ static struct {
int flags; int flags;
} _partitions[NUMBER_OF_MAJORS]; } _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 _md_major = -1;
static int _blkext_major = -1; static int _blkext_major = -1;
static int _drbd_major = -1; static int _drbd_major = -1;