]> git.ipfire.org Git - thirdparty/systemd.git/commit
blockdev-util: rework get_block_device()
authorLennart Poettering <lennart@poettering.net>
Thu, 12 Dec 2019 13:18:26 +0000 (14:18 +0100)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Fri, 13 Dec 2019 09:38:35 +0000 (18:38 +0900)
commitdb8728a60c73076ebea7fa8eec7ae844f20bc2e9
tree5f583e35e14a4fc9d355d628b2752d3842b75517
parent2e048b14ebc88702f134e6c490902fd4586eaccd
blockdev-util: rework get_block_device()

Let's open the specified path once, and use the same fd for all lookups.
Also, don't check for btrfs twice.

The behaviour remains unmodified.
src/basic/blockdev-util.c