]> git.baikalelectronics.ru Git - kernel.git/commit
dm thin: generate event when metadata threshold passed
authorJoe Thornber <ejt@redhat.com>
Fri, 10 May 2013 13:37:21 +0000 (14:37 +0100)
committerAlasdair G Kergon <agk@redhat.com>
Fri, 10 May 2013 13:37:21 +0000 (14:37 +0100)
commit1fb0bf620f327e5fc605aed49a54ae2918a6c472
treee1ab6d4662834bbbf248b1ad6224c9b7c3faa15e
parent9cdcbff73c4b041ba6a35b0431e80f9f37352f76
dm thin: generate event when metadata threshold passed

Generate a dm event when the amount of remaining thin pool metadata
space falls below a certain level.

The threshold is taken to be a quarter of the size of the metadata
device with a minimum threshold of 4MB.

Signed-off-by: Joe Thornber <ejt@redhat.com>
Signed-off-by: Alasdair G Kergon <agk@redhat.com>
drivers/md/dm-thin-metadata.c
drivers/md/dm-thin-metadata.h
drivers/md/dm-thin.c