diff options
author | Zdenek Kabelac <zkabelac@redhat.com> | 2011-06-17 14:14:19 +0000 |
---|---|---|
committer | Zdenek Kabelac <zkabelac@redhat.com> | 2011-06-17 14:14:19 +0000 |
commit | 81beded3af44583de48868d0f2c02e9054d94006 (patch) | |
tree | 03223be2d08c29144e1cc2717058e50f3af5e665 /lib/activate/dev_manager.h | |
parent | 2b6ccfa30b420e2003541d721498ab303e996f2d (diff) | |
download | lvm2-81beded3af44583de48868d0f2c02e9054d94006.tar.gz lvm2-81beded3af44583de48868d0f2c02e9054d94006.tar.xz lvm2-81beded3af44583de48868d0f2c02e9054d94006.zip |
Add lv_activate_opts structure
To avoid modification of 'read-only' volume group structure
add a new structure to pass local data around the code for LV
activation.
As origin_only is one such flag - replace this parameter with new
struct lv_activate_opts.
More parameters might eventually become part of lv_activate_opts.
Diffstat (limited to 'lib/activate/dev_manager.h')
-rw-r--r-- | lib/activate/dev_manager.h | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/lib/activate/dev_manager.h b/lib/activate/dev_manager.h index bbc30a71..9d414b20 100644 --- a/lib/activate/dev_manager.h +++ b/lib/activate/dev_manager.h @@ -1,6 +1,6 @@ /* * Copyright (C) 2002-2004 Sistina Software, Inc. All rights reserved. - * Copyright (C) 2004-2006 Red Hat, Inc. All rights reserved. + * Copyright (C) 2004-2011 Red Hat, Inc. All rights reserved. * * This file is part of LVM2. * @@ -19,6 +19,7 @@ #include "metadata-exported.h" struct logical_volume; +struct lv_activate_opts; struct volume_group; struct cmd_context; struct dev_manager; @@ -52,10 +53,11 @@ int dev_manager_mirror_percent(struct dev_manager *dm, const struct logical_volume *lv, int wait, percent_t *percent, uint32_t *event_nr); int dev_manager_suspend(struct dev_manager *dm, struct logical_volume *lv, - unsigned origin_only, int lockfs, int flush_required); -int dev_manager_activate(struct dev_manager *dm, struct logical_volume *lv, unsigned origin_only); + struct lv_activate_opts *laopts, int lockfs, int flush_required); +int dev_manager_activate(struct dev_manager *dm, struct logical_volume *lv, + struct lv_activate_opts *laopts); int dev_manager_preload(struct dev_manager *dm, struct logical_volume *lv, - unsigned origin_only, int *flush_required); + struct lv_activate_opts *laopts, int *flush_required); int dev_manager_deactivate(struct dev_manager *dm, struct logical_volume *lv); int dev_manager_transient(struct dev_manager *dm, struct logical_volume *lv) __attribute__((nonnull(1, 2))); |