master - thin: dmeventd plugins support more minors
Gitweb: http://git.fedorahosted.org/git/?p=lvm2.git;a=commitdiff;h=0b6d6bfb772f8320866e938ecba9894dc2d1cd7e Commit: 0b6d6bfb772f8320866e938ecba9894dc2d1cd7e Parent: 47a60369a0473bb5f4f8a9d153c83d1a3f4f187d Author: Zdenek Kabelac <[email protected]> AuthorDate: Thu Apr 17 13:26:45 2014 +0200 Committer: Zdenek Kabelac <[email protected]> CommitterDate: Fri Apr 18 16:38:47 2014 +0200
thin: dmeventd plugins support more minors
Kernel supports upto 1M (20bit) minors.
TODO: convert to hash to reduce memory requirements
--- WHATS_NEW_DM | 1 + daemons/dmeventd/plugins/thin/dmeventd_thin.c | 3 ++- 2 files changed, 3 insertions(+), 1 deletions(-)
WHATS_NEW_DM +1 -0
@@ -1,5 +1,6 @@ Version 1.02.88 - ================================= + Increase bitset size for minors for thin dmeventd plugin. Version 1.02.85 - 10th April 2014 =================================
daemons/dmeventd/plugins/thin/dmeventd_thin.c +2 -1
@@ -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, };