]> sourceware.org Git - lvm2.git/commitdiff
Replace lvm.conf instead of truncating it.
authorMilan Broz <mbroz@redhat.com>
Mon, 24 May 2010 17:18:05 +0000 (17:18 +0000)
committerMilan Broz <mbroz@redhat.com>
Mon, 24 May 2010 17:18:05 +0000 (17:18 +0000)
test/test-utils.sh

index 16638d1250414d163afd6b1f0d366072a3af26ed..b9534f9eccab9fd5f6ddb5fae1ac44d607852bc1 100644 (file)
@@ -358,7 +358,7 @@ prepare_lvmconf() {
                filter='[ "a/dev\/mirror/", "a/dev\/mapper\/.*pv[0-9_]*$/", "r/.*/" ]'
         locktype=
        if test -n "$LVM_TEST_LOCKING"; then locktype="locking_type = $LVM_TEST_LOCKING"; fi
-       cat > $TESTDIR/etc/lvm.conf <<-EOF
+       cat > $TESTDIR/etc/lvm.conf.new <<-EOF
   $LVM_TEST_CONFIG
   devices {
     dir = "$DM_DEV_DIR"
@@ -391,6 +391,8 @@ prepare_lvmconf() {
     polling_interval = 0
   }
 EOF
+       # FIXME remove this workaround after mmap & truncating file problems solved
+       mv $TESTDIR/etc/lvm.conf.new $TESTDIR/etc/lvm.conf
        cat $TESTDIR/etc/lvm.conf
 }
 
This page took 0.40188 seconds and 5 git commands to generate.