Skip to contentSkip to conversation

master - tests: notify loop needs maj:min

PATCH Zdenek Kabelac 1 participant 1 message May 21, 2014

lore
Share & tools
lore
#0 lore raw
Gitweb:        http://git.fedorahosted.org/git/?p=lvm2.git;a=commitdiff;h=c34c33d9ba69f1458932e468caa10846ebb4e970
Commit:        c34c33d9ba69f1458932e468caa10846ebb4e970
Parent:        cbdb8fa58925f64cf1da9de9ec00e878fe83c2d0
Author:        Zdenek Kabelac <[email protected]>
AuthorDate:    Wed May 21 12:00:32 2014 +0200
Committer:     Zdenek Kabelac <[email protected]>
CommitterDate: Wed May 21 12:00:32 2014 +0200

tests: notify loop needs maj:min

Missed in previous commit.

---
 test/lib/aux.sh |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
test/lib/aux.sh +2 -0
index 400a49d..e422fa0 100644
@@ -417,6 +417,8 @@ disable_dev() {
 	finish_udev_transaction
 
 	for dev in "$@"; do
+		maj=$(($(stat -L --printf=0x%t "$dev")))
+		min=$(($(stat -L --printf=0x%T "$dev")))
 		notify_lvmetad --major "$maj" --minor "$min"
 	done
 }