diff options
author | Sami Kerola | 2015-10-31 18:29:02 +0100 |
---|---|---|
committer | Sami Kerola | 2015-11-22 21:56:05 +0100 |
commit | 8fe1e638fa81d88e1e405f6221c7a592284c9b23 (patch) | |
tree | 7b95d5f7c2276f0ccdc5e24d97b5343d942b0d08 /disk-utils/mkfs.bfs.c | |
parent | include/fileutils: add is_same_inode() check (diff) | |
download | kernel-qcow2-util-linux-8fe1e638fa81d88e1e405f6221c7a592284c9b23.tar.gz kernel-qcow2-util-linux-8fe1e638fa81d88e1e405f6221c7a592284c9b23.tar.xz kernel-qcow2-util-linux-8fe1e638fa81d88e1e405f6221c7a592284c9b23.zip |
lib/blkdev: add open_blkdev_or_file() function
Purpose of this function is to open a path that is potentially pointing to a
block device or file without races. The function also proper open(3) flags
are used to check the device is not busy, and finally warning is been
printed if a block device happens to be misaligned.
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
Diffstat (limited to 'disk-utils/mkfs.bfs.c')
0 files changed, 0 insertions, 0 deletions