From: rread Date: Sat, 7 Sep 2002 20:44:25 +0000 (+0000) Subject: * always recreat loopback backing file when --reformat is set X-Git-Tag: v1_7_100~4839 X-Git-Url: https://git.whamcloud.com/?p=fs%2Flustre-release.git;a=commitdiff_plain;h=e8da13ac82f00a81e0ab1d831e0568952be04e53 * always recreat loopback backing file when --reformat is set --- 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