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)
commitac8c3f3df65e487bbcabf274eeeb9cd222f5da1e
treee1ab6d4662834bbbf248b1ad6224c9b7c3faa15e
parent2fc48021f4afdd109b9e52b6eef5db89ca80bac7
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