Fix for cciss.
authorDaniel Hokka Zakrisson <dhokka@cs.princeton.edu>
Fri, 23 Jul 2010 14:29:32 +0000 (10:29 -0400)
committerDaniel Hokka Zakrisson <dhokka@cs.princeton.edu>
Fri, 23 Jul 2010 14:29:32 +0000 (10:29 -0400)
plugins/rawdisk.py

index b6f4708..89ba052 100644 (file)
@@ -72,4 +72,8 @@ def GetSlivers(data, config=None, plc=None):
                             os.unlink(path)
                     except:
                         pass
+                    try:
+                        os.makedirs(os.path.dirname(path), 0755)
+                    except:
+                        pass
                     os.mknod(path, st.st_mode, st.st_rdev)