mirror of
git://sourceware.org/git/lvm2.git
synced 2024-12-21 13:34:40 +03:00
Use unsigned type for bitmask
Using report_type_t for bitmask is not correct, since we have not defined types for all bit combinations - so switching to unsigned type, since values of report_type_t enum are unsigned.
This commit is contained in:
parent
d2a3352755
commit
f380cd7d98
@ -1,5 +1,6 @@
|
|||||||
Version 2.02.94 -
|
Version 2.02.94 -
|
||||||
====================================
|
====================================
|
||||||
|
Use unsigned type for bitmask instead of enum type for lvm properties.
|
||||||
Add missing cleanup of excl_uuid hash on some exit paths of clvmd.
|
Add missing cleanup of excl_uuid hash on some exit paths of clvmd.
|
||||||
Check for existance of vg_name in _format1/_pool_vg_read().
|
Check for existance of vg_name in _format1/_pool_vg_read().
|
||||||
Fix missing break in _format_pvsegs (2.02.92).
|
Fix missing break in _format_pvsegs (2.02.92).
|
||||||
|
@ -315,7 +315,7 @@ struct lvm_property_type _properties[] = {
|
|||||||
|
|
||||||
|
|
||||||
static int _get_property(const void *obj, struct lvm_property_type *prop,
|
static int _get_property(const void *obj, struct lvm_property_type *prop,
|
||||||
report_type_t type)
|
unsigned type)
|
||||||
{
|
{
|
||||||
struct lvm_property_type *p;
|
struct lvm_property_type *p;
|
||||||
|
|
||||||
@ -343,7 +343,7 @@ static int _get_property(const void *obj, struct lvm_property_type *prop,
|
|||||||
}
|
}
|
||||||
|
|
||||||
static int _set_property(void *obj, struct lvm_property_type *prop,
|
static int _set_property(void *obj, struct lvm_property_type *prop,
|
||||||
report_type_t type)
|
unsigned type)
|
||||||
{
|
{
|
||||||
struct lvm_property_type *p;
|
struct lvm_property_type *p;
|
||||||
|
|
||||||
|
@ -20,7 +20,7 @@
|
|||||||
#include "report.h"
|
#include "report.h"
|
||||||
|
|
||||||
struct lvm_property_type {
|
struct lvm_property_type {
|
||||||
report_type_t type;
|
unsigned type;
|
||||||
const char *id;
|
const char *id;
|
||||||
unsigned is_settable:1;
|
unsigned is_settable:1;
|
||||||
unsigned is_string:1;
|
unsigned is_string:1;
|
||||||
|
Loading…
Reference in New Issue
Block a user