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, };