Whamcloud - gitweb
Merge branch 'maint' into next
[tools/e2fsprogs.git] / lib / blkid / devname.c
index 444afdc..e2b8051 100644 (file)
@@ -231,7 +231,8 @@ static void probe_one(blkid_cache cache, const char *ptname,
                    dev->bid_devno == devno)
                        goto set_pri;
 
-               if (stat(device, &st) == 0 && S_ISBLK(st.st_mode) &&
+               if (stat(device, &st) == 0 &&
+                   blkidP_is_disk_device(st.st_mode) &&
                    st.st_rdev == devno) {
                        devname = blkid_strdup(device);
                        goto get_dev;