]> sourceware.org Git - lvm2.git/commit
deactivation: reduce ioctl count
authorZdenek Kabelac <zkabelac@redhat.com>
Sun, 7 Mar 2021 00:54:50 +0000 (01:54 +0100)
committerZdenek Kabelac <zkabelac@redhat.com>
Mon, 8 Mar 2021 14:30:18 +0000 (15:30 +0100)
commitdceef4709d7ee5d06fb61120cc15fc29feb3e6b8
tree6375eaf708972045b9058147e86f6e1aad13ccab
parent936c7b5104e4fb6fb489845b87d9ba2cd1a69d0a
deactivation: reduce ioctl count

When LV is deactivativate, we check for presence, and later
for some LV types also for being in use.

We can however do this check in 1 step for them a remove extra ioctl.

Add return value '2' to lv_check_not_in_use() to recognize LV is not
present.

Existing users were just testing for 0, so no change for them.
lib/activate/activate.c
This page took 0.038237 seconds and 5 git commands to generate.