summaryrefslogtreecommitdiffstats
path: root/lib/activate
diff options
context:
space:
mode:
authorZdenek Kabelac <zkabelac@redhat.com>2012-01-25 13:12:59 +0000
committerZdenek Kabelac <zkabelac@redhat.com>2012-01-25 13:12:59 +0000
commitb185993628e4814523a1532b02aef461e2d7376e (patch)
treec4ae04029e89b07ce3a66553fd79ec1bb89a2098 /lib/activate
parentca12090800edef3fa93711de802a3b9f39642ac6 (diff)
downloadlvm2-b185993628e4814523a1532b02aef461e2d7376e.tar.gz
lvm2-b185993628e4814523a1532b02aef461e2d7376e.tar.xz
lvm2-b185993628e4814523a1532b02aef461e2d7376e.zip
Fix compilation with disabled devmapper
During release preparation things has changed, so making sure we are compilable with --disable-devmapper.
Diffstat (limited to 'lib/activate')
-rw-r--r--lib/activate/activate.c50
1 files changed, 47 insertions, 3 deletions
diff --git a/lib/activate/activate.c b/lib/activate/activate.c
index 59fafcb7..bb3b240d 100644
--- a/lib/activate/activate.c
+++ b/lib/activate/activate.c
@@ -147,7 +147,7 @@ int target_present(struct cmd_context *cmd, const char *target_name,
{
return 0;
}
-int lvm_dm_prefix_check(const char *sysfs_dir, int major, int minor, const char *prefix)
+int lvm_dm_prefix_check(int major, int minor, const char *prefix)
{
return 0;
}
@@ -161,6 +161,11 @@ int lv_info_by_lvid(struct cmd_context *cmd, const char *lvid_s, int use_layer,
{
return 0;
}
+int lv_check_not_in_use(struct cmd_context *cmd __attribute__((unused)),
+ struct logical_volume *lv, struct lvinfo *info)
+{
+ return 0;
+}
int lv_snapshot_percent(const struct logical_volume *lv, percent_t *percent)
{
return 0;
@@ -170,6 +175,25 @@ int lv_mirror_percent(struct cmd_context *cmd, const struct logical_volume *lv,
{
return 0;
}
+int lv_raid_percent(const struct logical_volume *lv, percent_t *percent)
+{
+ return 0;
+}
+int lv_thin_pool_percent(const struct logical_volume *lv, int metadata,
+ percent_t *percent)
+{
+ return 0;
+}
+int lv_thin_percent(const struct logical_volume *lv, int mapped,
+ percent_t *percent)
+{
+ return 0;
+}
+int lv_thin_pool_transaction_id(const struct logical_volume *lv,
+ uint64_t *transaction_id)
+{
+ return 0;
+}
int lvs_in_vg_activated(struct volume_group *vg)
{
return 0;
@@ -184,7 +208,7 @@ int lv_suspend(struct cmd_context *cmd, const char *lvid_s)
return 1;
}
*******/
-int lv_suspend_if_active(struct cmd_context *cmd, const char *lvid_s, unsigned origin_only)
+int lv_suspend_if_active(struct cmd_context *cmd, const char *lvid_s, unsigned origin_only, unsigned exclusive)
{
return 1;
}
@@ -260,10 +284,30 @@ int lv_check_transient(struct logical_volume *lv)
return 1;
}
int monitor_dev_for_events(struct cmd_context *cmd, struct logical_volume *lv,
- struct lv_activate_opts *laopts, int monitor)
+ const struct lv_activate_opts *laopts, int monitor)
{
return 1;
}
+/* fs.c */
+void fs_unlock(void)
+{
+}
+/* dev_manager.c */
+int add_areas_line(struct dev_manager *dm, struct lv_segment *seg,
+ struct dm_tree_node *node, uint32_t start_area,
+ uint32_t areas)
+{
+ return 0;
+}
+int device_is_usable(struct device *dev)
+{
+ return 0;
+}
+int lv_has_target_type(struct dm_pool *mem, struct logical_volume *lv,
+ const char *layer, const char *target_type)
+{
+ return 0;
+}
#else /* DEVMAPPER_SUPPORT */
static int _activation = 1;