diff mbox

: multipath: fail path on zero size devices

Message ID D8C50530D6022F40A817A35C40CC06A7064B4604BB@DUBX7MCDUB01.EMEA.DELL.COM (mailing list archive)
State Deferred, archived
Headers show

Commit Message

Menny_Hamburger@Dell.com Feb. 10, 2011, 10:19 a.m. UTC
None
diff mbox

Patch

--- a/multipathd/main.c                2010-12-07 08:02:23.000000000 +0200
+++ b/multipathd/main.c             2011-02-10 10:51:57.000000000 +0200
@@ -1050,4 +1050,11 @@ 
                                                                                                               &(pp->checker.timeout));
                                                               newstate = checker_check(&pp->checker);
+                                                             if (newstate != PATH_DOWN) {
+                                                                             unsigned long long size = 0;
+
+                                                                             sysfs_get_size(sysfs_path, pp->dev, &size);
+                                                                             if (size == 0)
+                                                                                             newstate = PATH_DOWN;
+                                                             }
                               }
Since the path is down, the path groups no longer compete on LUN ownership and things remain stable.