aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorZdenek Kabelac <zkabelac@redhat.com>2013-04-19 21:16:08 +0200
committerZdenek Kabelac <zkabelac@redhat.com>2013-04-21 23:14:05 +0200
commit4e1ac7faf132e83393dda628f72cdaecfc4bf9e8 (patch)
treed717bdae50e217e51c433eadfd811f4f70eb2134 /lib
parentdfca5dac9ca3ed0ca186b9d79d6b2cacedc4ea37 (diff)
downloadlvm2-4e1ac7faf132e83393dda628f72cdaecfc4bf9e8.tar.gz
cleanup: add some FIXMEs
Diffstat (limited to 'lib')
-rw-r--r--lib/activate/activate.c1
-rw-r--r--lib/device/dev-io.c2
2 files changed, 3 insertions, 0 deletions
diff --git a/lib/activate/activate.c b/lib/activate/activate.c
index b3439adba..670b85c08 100644
--- a/lib/activate/activate.c
+++ b/lib/activate/activate.c
@@ -794,6 +794,7 @@ int lv_raid_dev_health(const struct logical_volume *lv, char **dev_health)
int r;
struct dev_manager *dm;
struct dm_status_raid *status;
+ /* FIXME: find a better way for this, it is fragile */
static char *cached_dev_health = NULL;
static const struct logical_volume *cached_lv = NULL;
diff --git a/lib/device/dev-io.c b/lib/device/dev-io.c
index 2846cafd9..bb50ae4d8 100644
--- a/lib/device/dev-io.c
+++ b/lib/device/dev-io.c
@@ -437,6 +437,8 @@ int dev_open_flags(struct device *dev, int flags, int direct, int quiet)
}
dev_close_immediate(dev);
+ // FIXME: dev with DEV_ALLOCED is released
+ // but code is referencing it
}
if (critical_section())