git://git.onelab.eu
/
nodemanager.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7a15aa4
)
Fix for cciss.
author
Daniel Hokka Zakrisson
<dhokka@cs.princeton.edu>
Fri, 23 Jul 2010 14:29:32 +0000
(10:29 -0400)
committer
Daniel Hokka Zakrisson
<dhokka@cs.princeton.edu>
Fri, 23 Jul 2010 14:29:32 +0000
(10:29 -0400)
plugins/rawdisk.py
patch
|
blob
|
history
diff --git
a/plugins/rawdisk.py
b/plugins/rawdisk.py
index
b6f4708
..
89ba052
100644
(file)
--- a/
plugins/rawdisk.py
+++ b/
plugins/rawdisk.py
@@
-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)