mirror of
git://sourceware.org/git/lvm2.git
synced 2025-03-10 16:58:47 +03:00
test: speedup a bit
Do not wait full 10s if the invalid snapshot is already dropped.
This commit is contained in:
parent
16060b101b
commit
c6f2821b9f
@ -1,5 +1,5 @@
|
||||
#!/bin/bash
|
||||
# Copyright (C) 2010 Red Hat, Inc. All rights reserved.
|
||||
# Copyright (C) 2010-2012 Red Hat, Inc. All rights reserved.
|
||||
#
|
||||
# This copyrighted material is made available to anyone wishing to use,
|
||||
# modify, copy, or redistribute it subject to the terms and conditions
|
||||
@ -32,10 +32,13 @@ mkdir "$mntdir"
|
||||
mount "$DM_DEV_DIR/mapper/$vg-snap" "$mntdir"
|
||||
mount
|
||||
cat /proc/mounts | grep "$mntdir"
|
||||
|
||||
dd if=/dev/zero of="$mntdir/file$1" bs=1M count=17
|
||||
dd if=/dev/zero of="$mntdir/file$1" bs=1M count=16
|
||||
sync
|
||||
sleep 10 # dmeventd only checks every 10 seconds :(
|
||||
#dmeventd only checks every 10 seconds :(
|
||||
for i in {1..10}; do
|
||||
cat /proc/mounts | grep "$mntdir" || break
|
||||
sleep 1
|
||||
done
|
||||
|
||||
cat /proc/mounts | not grep "$mntdir"
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user