1
0
mirror of git://sourceware.org/git/lvm2.git synced 2025-01-03 05:18:29 +03:00

tests: comment about pvscan --cache return value

This commit is contained in:
Peter Rajnoha 2013-07-22 15:57:18 +02:00
parent 081308af30
commit 6ca81a091c

View File

@ -20,7 +20,12 @@ min=$(($(stat --printf=0x%T "$dev2")))
aux hide_dev $dev2
not pvscan --cache $dev2 2>&1 | grep "not found"
# pvscan with --major/--minor does not fail (for udev's sake?)
# pvscan with --major/--minor does not fail: lvmetad needs to
# be notified about device removal on REMOVE uevent, hence
# this should not fail so udev does not grab a "failed" state
# incorrectly. We notify device addition and removal with
# exactly the same command "pvscan --cache" - in case of removal,
# this is detected by nonexistence of the device itself.
pvscan --cache --major $maj --minor $min 2>&1 | grep "not found"
aux unhide_dev $dev2