Skip to content
Commit db8728a6 authored by Lennart Poettering's avatar Lennart Poettering Committed by Yu Watanabe
Browse files

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.
parent 2e048b14
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment