diff options
author | Alasdair Kergon <agk@redhat.com> | 2011-06-13 03:32:45 +0000 |
---|---|---|
committer | Alasdair Kergon <agk@redhat.com> | 2011-06-13 03:32:45 +0000 |
commit | 1840aa0974aa792565175cb7b4ecf1670266760d (patch) | |
tree | d93d10a8124a7bc805657e825cd54638d6aee3fc /libdm/libdm-common.h | |
parent | 83e797bc52473f9745dc4ffcf7a32dc5ebd6f763 (diff) | |
download | lvm2-1840aa0974aa792565175cb7b4ecf1670266760d.tar.gz lvm2-1840aa0974aa792565175cb7b4ecf1670266760d.tar.xz lvm2-1840aa0974aa792565175cb7b4ecf1670266760d.zip |
Maintain a count of the number of suspended devices in libdevmapper
and use this for the LVM critical section logic. Also report an error if
code tries to load a table while any device is known to be in the
suspended state.
(If the variety of problems these changes are showing up can't be fixed
before the next release, the error messages can be reduced to debug
level.)
Diffstat (limited to 'libdm/libdm-common.h')
-rw-r--r-- | libdm/libdm-common.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/libdm/libdm-common.h b/libdm/libdm-common.h index 3267cfc4..2435f274 100644 --- a/libdm/libdm-common.h +++ b/libdm/libdm-common.h @@ -33,4 +33,7 @@ int set_dev_node_read_ahead(const char *dev_name, uint32_t read_ahead, void update_devs(void); void selinux_release(void); +void inc_suspended(void); +void dec_suspended(void); + #endif |