mirror of
git://sourceware.org/git/lvm2.git
synced 2024-12-21 13:34:40 +03:00
thin: dmeventd plugins support more minors
Kernel supports upto 1M (20bit) minors. TODO: convert to hash to reduce memory requirements
This commit is contained in:
parent
47a60369a0
commit
0b6d6bfb77
@ -1,5 +1,6 @@
|
||||
Version 1.02.88 -
|
||||
=================================
|
||||
Increase bitset size for minors for thin dmeventd plugin.
|
||||
|
||||
Version 1.02.85 - 10th April 2014
|
||||
=================================
|
||||
|
@ -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,
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user