From e8da13ac82f00a81e0ab1d831e0568952be04e53 Mon Sep 17 00:00:00 2001 From: rread Date: Sat, 7 Sep 2002 20:44:25 +0000 Subject: [PATCH] * always recreat loopback backing file when --reformat is set --- lustre/utils/lconf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lustre/utils/lconf b/lustre/utils/lconf index 2133794..bdf18e1 100755 --- 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 -- 1.8.3.1