]> git.ipfire.org Git - thirdparty/util-linux.git/commit
blockdev: Don't fail on missing start sector
authorStanislav Brabec <sbrabec@suse.cz>
Fri, 5 Jun 2020 08:04:21 +0000 (10:04 +0200)
committerKarel Zak <kzak@redhat.com>
Fri, 5 Jun 2020 08:04:21 +0000 (10:04 +0200)
commit9147d2ad8abb73cea5799323fc73ccdaf675826f
tree0bad8100ae2b553bb206bfab837803c93bd92a88
parent43d2ce3b443d06abef21a6a612560f57c5989ea3
blockdev: Don't fail on missing start sector

It causes
 # blockdev --report" error:
 blockdev: /dev/dm-9: failed to read partition start from sysfs: No such file or directory

There is no reliable way to detect a geometry in this case. Report N/A
instead.

Signed-off-by: Stanislav Brabec <sbrabec@suse.cz>
Cc: Martin Wilck <martin.wilck@suse.com>
Signed-off-by: Karel Zak <kzak@redhat.com>
disk-utils/blockdev.c