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

index c222366..727351e 100644 (file)
@@ -68,4 +68,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)