ignore updates on nbd device

- adds regex to ignore updates on nbd device
  similar to 'rbd' and 'dm'

Signed-off-by: Umanga Chapagain <chapagainumanga@gmail.com>
This commit is contained in:
Umanga Chapagain committed 2019-09-06 12:00:51 +05:30
1 parent 6fcd2c21fa
commit 3f2c9f4e79
1 file changed
+1 -1
+1 -1
View File
@@ -169,7 +169,7 @@ func udevBlockMonitor(c chan string, period time.Duration) {
events := make(chan string)
go rawUdevBlockMonitor(events,
[]string{"(?i)add", "(?i)remove"},
[]string{"(?i)dm-[0-9]+", "(?i)rbd[0-9]+"})
[]string{"(?i)dm-[0-9]+", "(?i)rbd[0-9]+", "(?i)nbd[0-9]+"})
for {
event, ok := <-events