~ubuntu-branches/debian/stretch/lvm2/stretch

« back to all changes in this revision

Viewing changes to test/shell/snapshot-maxsize.sh

  • Committer: Package Import Robot
  • Author(s): Bastian Blank
  • Date: 2014-08-19 15:37:06 UTC
  • mfrom: (30.1.11 sid)
  • Revision ID: package-import@ubuntu.com-20140819153706-0p2sc6a53ef7xnvl
Tags: 2.02.109-1
New upstream version.

Show diffs side-by-side

added added

removed removed

Lines of Context:
12
12
# Testing calculation of snapshot space
13
13
# https://bugzilla.redhat.com/show_bug.cgi?id=1035871
14
14
 
15
 
. lib/test
 
15
. lib/inittest
16
16
 
17
17
aux prepare_pvs 1
18
18
 
24
24
 
25
25
dd if=/dev/zero of="$DM_DEV_DIR/$vg/$lv2" bs=1M count=1
26
26
 
27
 
get lv_field $vg/$lv2 lv_attr | tee attrs
28
 
# Snapshot must not be invalid here
29
 
grep -v "....I" attrs
 
27
# Snapshot must not be 'I'nvalid here
 
28
check lv_attr_bit state $vg/$lv2 "a"
30
29
 
31
30
vgremove -f $vg