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.
Loading
Please register or sign in to comment
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.