Whamcloud - gitweb
git://git.whamcloud.com
/
fs
/
lustre-release.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
259b925
)
* always recreat loopback backing file when --reformat is set
author
rread
<rread>
Sat, 7 Sep 2002 20:44:25 +0000
(20:44 +0000)
committer
rread
<rread>
Sat, 7 Sep 2002 20:44:25 +0000
(20:44 +0000)
lustre/utils/lconf
patch
|
blob
|
history
diff --git
a/lustre/utils/lconf
b/lustre/utils/lconf
index
2133794
..
bdf18e1
100755
(executable)
--- a/
lustre/utils/lconf
+++ b/
lustre/utils/lconf
@@
-488,7
+488,7
@@
def init_loop(file, size, fstype):
if dev:
print 'WARNING file:', file, 'already mapped to', dev
return dev
- if not os.access(file, os.R_OK | os.W_OK):
+ if
config.reformat() or
not os.access(file, os.R_OK | os.W_OK):
run("dd if=/dev/zero bs=1k count=0 seek=%d of=%s" %(size, file))
loop = loop_base()
# find next free loop