diff options
author | Zdenek Kabelac <zkabelac@redhat.com> | 2014-04-17 13:26:45 +0200 |
---|---|---|
committer | Zdenek Kabelac <zkabelac@redhat.com> | 2014-04-18 16:38:47 +0200 |
commit | 0b6d6bfb772f8320866e938ecba9894dc2d1cd7e (patch) | |
tree | c9a5742c08aa6630d6edf3f08df8bc29469a3e46 | |
parent | 47a60369a0473bb5f4f8a9d153c83d1a3f4f187d (diff) | |
download | lvm2-0b6d6bfb772f8320866e938ecba9894dc2d1cd7e.tar.gz |
thin: dmeventd plugins support more minors
Kernel supports upto 1M (20bit) minors.
TODO: convert to hash to reduce memory requirements
-rw-r--r-- | WHATS_NEW_DM | 1 | ||||
-rw-r--r-- | daemons/dmeventd/plugins/thin/dmeventd_thin.c | 3 |
2 files changed, 3 insertions, 1 deletions
diff --git a/WHATS_NEW_DM b/WHATS_NEW_DM index 51376d398..6a983a783 100644 --- a/WHATS_NEW_DM +++ b/WHATS_NEW_DM @@ -1,5 +1,6 @@ Version 1.02.88 - ================================= + Increase bitset size for minors for thin dmeventd plugin. Version 1.02.85 - 10th April 2014 ================================= diff --git a/daemons/dmeventd/plugins/thin/dmeventd_thin.c b/daemons/dmeventd/plugins/thin/dmeventd_thin.c index 3126bfa02..b700b8d84 100644 --- a/daemons/dmeventd/plugins/thin/dmeventd_thin.c +++ b/daemons/dmeventd/plugins/thin/dmeventd_thin.c @@ -218,7 +218,8 @@ static int _umount_device(char *buffer, unsigned major, unsigned minor, */ static void _umount(struct dm_task *dmt, const char *device) { - static const size_t MINORS = 4096; + /* TODO: Convert to use hash to reduce memory usage */ + static const size_t MINORS = (1U << 20); /* 20 bit */ struct mountinfo_s data = { .device = device, }; |