Return -ENOTBLK if lookup_device() finds the inode, but it
is not a block device. [Cristoph Hellwig]

--- diff/drivers/md/dm-table.c	2003-06-17 10:05:34.000000000 +0100
+++ source/drivers/md/dm-table.c	2003-06-17 10:05:53.000000000 +0100
@@ -272,7 +272,7 @@
 	}
 
 	if (!S_ISBLK(inode->i_mode)) {
-		r = -EINVAL;
+		r = -ENOTBLK;
 		goto out;
 	}
 
