btrfs-progs: replace blkid_probe_get_wholedisk_devno
authorEric Sandeen <sandeen@redhat.com>
Thu, 11 Apr 2013 15:39:30 +0000 (10:39 -0500)
committerDavid Sterba <dsterba@suse.cz>
Tue, 23 Apr 2013 16:56:25 +0000 (18:56 +0200)
commitc9ef717ba30a755f44b1bfd85a3b8d14fb5444bd
treee01a2bc82772890e9b5232e1be646ed3a80b1727
parent6712828275631b6b627ce97be042c93f4a4aa6c5
btrfs-progs: replace blkid_probe_get_wholedisk_devno

blkid_probe_get_wholedisk_devno() isn't available in some older
versions of libblkid.  It was used to work around an old
bug in blkid_devno_to_wholedisk(), but that has been fixed since
5cd0823 libblkid: fix blkid_devno_to_wholedisk(), present in
util-linux 2.17 and beyond.

If we happen to be missing that fix, the worst that happens is
that we'd fail to detect that a device is an ssd; the upside is
that this code compiles on older systems.

Signed-off-by: Eric Sandeen <sandeen@redhat.com>
mkfs.c