]> sourceware.org Git - lvm2.git/commit
Return fail if lv_deactivate did not removed device from kernel.
authorMilan Broz <mbroz@redhat.com>
Tue, 29 Sep 2009 15:17:54 +0000 (15:17 +0000)
committerMilan Broz <mbroz@redhat.com>
Tue, 29 Sep 2009 15:17:54 +0000 (15:17 +0000)
commitc0ff3805c884036ce70d62d718f88917a25d5651
treed659bb89d78476ecccded9eb05180687e2f27ff4
parent49ebd19ab106870db7a4384dbeabc0ec855cb178
Return fail if lv_deactivate did not removed device from kernel.

lv_deactivate now returns always success, because tree deactivation
functions (see dm_tree_deactivate_children) always returns success.

Because code should return failure in lv_deactivate at least,
fix it by checking for device existence after real deactivation call.

(After discussion this was prefered solution to dm tree function rewrite
which affects snapshots and mirrors.)
WHATS_NEW
lib/activate/activate.c
This page took 0.036566 seconds and 5 git commands to generate.