bug-parted
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

parted-3.0: 1 or 2 failed test


From: Guido Trentalancia
Subject: parted-3.0: 1 or 2 failed test
Date: Tue, 31 May 2011 00:00:42 +0200

Hello !

I have built and tested parted version 3.0 and noticed that 1 or 2 tests
are failing: one failure at the first run (t1100-busy-label.sh) and two
failures at the second and subsequent runs (t1100-busy-label.sh and
t9041-undetected-in-use-16th-partition.sh). 

*** FIRST RUN ***

FAIL: t1100-busy-label.sh (exit: 1)
===================================

++ initial_cwd_=/usr/src/parted-3.0/tests
++ fail=0
+++ testdir_prefix_
+++ printf gt
++ pfx_=gt
+++ mktempd_ /usr/src/parted-3.0/tests gt-t1100-busy-label.sh.XXXX
+++ case $# in
+++ destdir_=/usr/src/parted-3.0/tests
+++ template_=gt-t1100-busy-label.sh.XXXX
+++ MAX_TRIES_=4
+++ case $destdir_ in
+++ case $template_ in
++++ unset TMPDIR
++++ mktemp -d -t -p /usr/src/parted-3.0/tests
gt-t1100-busy-label.sh.XXXX
+++ d=/usr/src/parted-3.0/tests/gt-t1100-busy-label.sh.WxgL
+++ case $d in
+++ test -d /usr/src/parted-3.0/tests/gt-t1100-busy-label.sh.WxgL
++++ ls -dgo /usr/src/parted-3.0/tests/gt-t1100-busy-label.sh.WxgL
++++ tr S -
+++ perms='drwx------. 2 4096 May 30
21:43 /usr/src/parted-3.0/tests/gt-t1100-busy-label.sh.WxgL'
+++ case $perms in
+++ test 0 = 0
+++ echo /usr/src/parted-3.0/tests/gt-t1100-busy-label.sh.WxgL
+++ return
++ test_dir_=/usr/src/parted-3.0/tests/gt-t1100-busy-label.sh.WxgL
++ cd /usr/src/parted-3.0/tests/gt-t1100-busy-label.sh.WxgL
++ gl_init_sh_nl_='
'
++ IFS='        
'
++ for sig_ in 1 2 3 13 15
+++ expr 1 + 128
++ eval 'trap '\''Exit 129'\'' 1'
+++ trap 'Exit 129' 1
++ for sig_ in 1 2 3 13 15
+++ expr 2 + 128
++ eval 'trap '\''Exit 130'\'' 2'
+++ trap 'Exit 130' 2
++ for sig_ in 1 2 3 13 15
+++ expr 3 + 128
++ eval 'trap '\''Exit 131'\'' 3'
+++ trap 'Exit 131' 3
++ for sig_ in 1 2 3 13 15
+++ expr 13 + 128
++ eval 'trap '\''Exit 141'\'' 13'
+++ trap 'Exit 141' 13
++ for sig_ in 1 2 3 13 15
+++ expr 15 + 128
++ eval 'trap '\''Exit 143'\'' 15'
+++ trap 'Exit 143' 15
++ trap remove_tmp_ 0
+ path_prepend_ ../parted
+ test 1 '!=' 0
+ path_dir_=../parted
+ case $path_dir_ in
++ cd /usr/src/parted-3.0/tests/../parted
++ echo /usr/src/parted-3.0/parted
+ abs_path_dir_=/usr/src/parted-3.0/parted
+ case $abs_path_dir_ in
+
PATH=/usr/src/parted-3.0/parted:/usr/src/parted-3.0/parted:/usr/local/bin:/usr/bin:/bin:/usr/local/sbin:/usr/sbin:/sbin
+ create_exe_shims_ /usr/src/parted-3.0/parted
+ case $EXEEXT in
+ return 0
+ shift
+ test 0 '!=' 0
+ export PATH
+ require_root_
+ uid_is_privileged_
++ id -u
+ my_uid=0
+ case $my_uid in
+ NON_ROOT_USERNAME=nobody
++ id -g nobody
+ NON_ROOT_GROUP=99
+ require_scsi_debug_module_
+ modprobe -n scsi_debug
+ ss=1024
+ scsi_debug_setup_ sector_size=1024 dev_size_mb=90
+ scsi_debug_acquire_lock_
+ local retries=20
+ local lock_timeout_stale_seconds=120
+ local i=0
+ local incr=1
+ :
+ mkdir /usr/src/parted-3.0/tests/scsi_debug.lock
+ return 0
+ touch stamp
+ modprobe scsi_debug sector_size=1024 dev_size_mb=90
+ scsi_debug_modprobe_succeeded_=1
+ test yes = yes
+ warn_ t1100-busy-label.sh modprobe scsi_debug succeeded
+ echo t1100-busy-label.sh modprobe scsi_debug succeeded
+ local incr=1
+ local i=0
+ local new_dev
+ :
++ new_sdX_
++ local m
+++ grep -lw scsi_debug /sys/block/sda/device/model
++ m=
++ return 1
+ new_dev=
+ sleep .1
++ expr 0 + 1
+ i=1
+ test 1 = 20
+ :
++ new_sdX_
++ local m
+++ grep -lw
scsi_debug /sys/block/sda/device/model /sys/block/sdb/device/model
++ m=/sys/block/sdb/device/model
++ m=sdb/device/model
++ m=sdb
++ echo sdb
++ return 0
+ new_dev=sdb
+ break
+ case $new_dev in
+ local t=/dev/sdb
+ wait_for_dev_to_appear_ /dev/sdb
+ local file=/dev/sdb
+ local i=0
+ local incr=1
+ :
+ ls /dev/sdb
+ return 0
+ echo /dev/sdb
+ return 0
++ cat dev-name
+ dev=/dev/sdb
+ parted -s /dev/sdb mklabel msdos mkpart primary fat32 1 40
+ compare out /dev/null
+ diff -u out /dev/null
+ mkfs.vfat /dev/sdb1
mkfs.vfat 3.0.9 (31 Jan 2010)
++ pwd
+ mount_point=/usr/src/parted-3.0/tests/gt-t1100-busy-label.sh.WxgL/mnt
+ mkdir /usr/src/parted-3.0/tests/gt-t1100-busy-label.sh.WxgL/mnt
+ i=0
+ :
+ test -e /dev/sdb1
+ break
+
mount /dev/sdb1 /usr/src/parted-3.0/tests/gt-t1100-busy-label.sh.WxgL/mnt
+ parted -s /dev/sdb mklabel msdos
+ test 1 = 1
+ echo 'Error: Partition(s) on /dev/sdb are being used.'
+ compare out exp
+ diff -u out exp
+ parted -s /dev/sdb mkpart primary fat32 41 85
+ fail=1
+ compare out /dev/null
+ diff -u out /dev/null
--- out 2011-05-30 21:43:34.517776256 +0000
+++ /dev/null   2011-05-30 18:08:06.383735131 +0000
@@ -1 +0,0 @@
-Error: Partition(s) 1 on /dev/sdb have been written, but we have been
unable to inform the kernel of the change, probably because it/they are
in use.  As a result, the old partition(s) will remain in use.  You
should reboot now before making further changes.
+ fail=1
+ parted -s /dev/sdb u s print
Model: Linux scsi_debug (scsi)
Disk /dev/sdb: 92160s
Sector size (logical/physical): 1024B/1024B
Partition Table: msdos

Number  Start   End     Size    Type     File system  Flags
 1      1024s   38911s  37888s  primary               lba
 2      39936s  82943s  43008s  primary               lba

+ echo c
+ parted ---pretend-input-tty /dev/sdb mklabel msdos
+ test 1 = 1
+ cat
+ mv out o2
+ sed -e 's,
   *
,,;s, $,,;s/^.*Warning/Warning/' -e
's,^.*/lt-parted: ,parted: ,' o2
+ compare out exp
+ diff -u out exp
+ Exit 1
+ set +e
+ exit 1
+ exit 1
+ remove_tmp_
+ __st=1
+ cleanup_
+ cleanup_fn_
+ umount /dev/sdb1
+ cleanup_final_
+ scsi_debug_cleanup_
+ test -n 1
+ for i in 1 2 3
+ rmmod scsi_debug
ERROR: Module scsi_debug is in use
+ sleep .2
+ for i in 1 2 3
+ rmmod scsi_debug
ERROR: Module scsi_debug is in use
+ sleep .2
+ for i in 1 2 3
+ rmmod scsi_debug
+ test yes = yes
+ warn_ t1100-busy-label.sh rmmod scsi_debug...
+ echo t1100-busy-label.sh rmmod scsi_debug...
+ break
+ rm -fr /usr/src/parted-3.0/tests/scsi_debug.lock
+ cd /usr/src/parted-3.0/tests
+ chmod -R u+rwx /usr/src/parted-3.0/tests/gt-t1100-busy-label.sh.WxgL
+ rm -rf /usr/src/parted-3.0/tests/gt-t1100-busy-label.sh.WxgL
+ exit 1

*** SECOND RUN ***

FAIL: t1100-busy-label.sh (exit: 1)
===================================

++ initial_cwd_=/usr/src/parted-3.0/tests
++ fail=0
+++ testdir_prefix_
+++ printf gt
++ pfx_=gt
+++ mktempd_ /usr/src/parted-3.0/tests gt-t1100-busy-label.sh.XXXX
+++ case $# in
+++ destdir_=/usr/src/parted-3.0/tests
+++ template_=gt-t1100-busy-label.sh.XXXX
+++ MAX_TRIES_=4
+++ case $destdir_ in
+++ case $template_ in
++++ unset TMPDIR
++++ mktemp -d -t -p /usr/src/parted-3.0/tests
gt-t1100-busy-label.sh.XXXX
+++ d=/usr/src/parted-3.0/tests/gt-t1100-busy-label.sh.WxsR
+++ case $d in
+++ test -d /usr/src/parted-3.0/tests/gt-t1100-busy-label.sh.WxsR
++++ ls -dgo /usr/src/parted-3.0/tests/gt-t1100-busy-label.sh.WxsR
++++ tr S -
+++ perms='drwx------. 2 4096 May 30
21:50 /usr/src/parted-3.0/tests/gt-t1100-busy-label.sh.WxsR'
+++ case $perms in
+++ test 0 = 0
+++ echo /usr/src/parted-3.0/tests/gt-t1100-busy-label.sh.WxsR
+++ return
++ test_dir_=/usr/src/parted-3.0/tests/gt-t1100-busy-label.sh.WxsR
++ cd /usr/src/parted-3.0/tests/gt-t1100-busy-label.sh.WxsR
++ gl_init_sh_nl_='
'
++ IFS='        
'
++ for sig_ in 1 2 3 13 15
+++ expr 1 + 128
++ eval 'trap '\''Exit 129'\'' 1'
+++ trap 'Exit 129' 1
++ for sig_ in 1 2 3 13 15
+++ expr 2 + 128
++ eval 'trap '\''Exit 130'\'' 2'
+++ trap 'Exit 130' 2
++ for sig_ in 1 2 3 13 15
+++ expr 3 + 128
++ eval 'trap '\''Exit 131'\'' 3'
+++ trap 'Exit 131' 3
++ for sig_ in 1 2 3 13 15
+++ expr 13 + 128
++ eval 'trap '\''Exit 141'\'' 13'
+++ trap 'Exit 141' 13
++ for sig_ in 1 2 3 13 15
+++ expr 15 + 128
++ eval 'trap '\''Exit 143'\'' 15'
+++ trap 'Exit 143' 15
++ trap remove_tmp_ 0
+ path_prepend_ ../parted
+ test 1 '!=' 0
+ path_dir_=../parted
+ case $path_dir_ in
++ cd /usr/src/parted-3.0/tests/../parted
++ echo /usr/src/parted-3.0/parted
+ abs_path_dir_=/usr/src/parted-3.0/parted
+ case $abs_path_dir_ in
+
PATH=/usr/src/parted-3.0/parted:/usr/src/parted-3.0/parted:/usr/local/bin:/usr/bin:/bin:/usr/local/sbin:/usr/sbin:/sbin
+ create_exe_shims_ /usr/src/parted-3.0/parted
+ case $EXEEXT in
+ return 0
+ shift
+ test 0 '!=' 0
+ export PATH
+ require_root_
+ uid_is_privileged_
++ id -u
+ my_uid=0
+ case $my_uid in
+ NON_ROOT_USERNAME=nobody
++ id -g nobody
+ NON_ROOT_GROUP=99
+ require_scsi_debug_module_
+ modprobe -n scsi_debug
+ ss=1024
+ scsi_debug_setup_ sector_size=1024 dev_size_mb=90
+ scsi_debug_acquire_lock_
+ local retries=20
+ local lock_timeout_stale_seconds=120
+ local i=0
+ local incr=1
+ :
+ mkdir /usr/src/parted-3.0/tests/scsi_debug.lock
+ return 0
+ touch stamp
+ modprobe scsi_debug sector_size=1024 dev_size_mb=90
+ scsi_debug_modprobe_succeeded_=1
+ test yes = yes
+ warn_ t1100-busy-label.sh modprobe scsi_debug succeeded
+ echo t1100-busy-label.sh modprobe scsi_debug succeeded
+ local incr=1
+ local i=0
+ local new_dev
+ :
++ new_sdX_
++ local m
+++ grep -lw scsi_debug /sys/block/sda/device/model
++ m=
++ return 1
+ new_dev=
+ sleep .1
++ expr 0 + 1
+ i=1
+ test 1 = 20
+ :
++ new_sdX_
++ local m
+++ grep -lw
scsi_debug /sys/block/sda/device/model /sys/block/sdb/device/model
++ m=/sys/block/sdb/device/model
++ m=sdb/device/model
++ m=sdb
++ echo sdb
++ return 0
+ new_dev=sdb
+ break
+ case $new_dev in
+ local t=/dev/sdb
+ wait_for_dev_to_appear_ /dev/sdb
+ local file=/dev/sdb
+ local i=0
+ local incr=1
+ :
+ ls /dev/sdb
+ return 0
+ echo /dev/sdb
+ return 0
++ cat dev-name
+ dev=/dev/sdb
+ parted -s /dev/sdb mklabel msdos mkpart primary fat32 1 40
+ compare out /dev/null
+ diff -u out /dev/null
+ mkfs.vfat /dev/sdb1
mkfs.vfat 3.0.9 (31 Jan 2010)
++ pwd
+ mount_point=/usr/src/parted-3.0/tests/gt-t1100-busy-label.sh.WxsR/mnt
+ mkdir /usr/src/parted-3.0/tests/gt-t1100-busy-label.sh.WxsR/mnt
+ i=0
+ :
+ test -e /dev/sdb1
+ break
+
mount /dev/sdb1 /usr/src/parted-3.0/tests/gt-t1100-busy-label.sh.WxsR/mnt
+ parted -s /dev/sdb mklabel msdos
+ test 1 = 1
+ echo 'Error: Partition(s) on /dev/sdb are being used.'
+ compare out exp
+ diff -u out exp
+ parted -s /dev/sdb mkpart primary fat32 41 85
+ fail=1
+ compare out /dev/null
+ diff -u out /dev/null
--- out 2011-05-30 21:50:47.698554014 +0000
+++ /dev/null   2011-05-30 18:08:06.383735131 +0000
@@ -1 +0,0 @@
-Error: Partition(s) 1 on /dev/sdb have been written, but we have been
unable to inform the kernel of the change, probably because it/they are
in use.  As a result, the old partition(s) will remain in use.  You
should reboot now before making further changes.
+ fail=1
+ parted -s /dev/sdb u s print
Model: Linux scsi_debug (scsi)
Disk /dev/sdb: 92160s
Sector size (logical/physical): 1024B/1024B
Partition Table: msdos

Number  Start   End     Size    Type     File system  Flags
 1      1024s   38911s  37888s  primary               lba
 2      39936s  82943s  43008s  primary               lba

+ echo c
+ parted ---pretend-input-tty /dev/sdb mklabel msdos
+ test 1 = 1
+ cat
+ mv out o2
+ sed -e 's,
   *
,,;s, $,,;s/^.*Warning/Warning/' -e
's,^.*/lt-parted: ,parted: ,' o2
+ compare out exp
+ diff -u out exp
+ Exit 1
+ set +e
+ exit 1
+ exit 1
+ remove_tmp_
+ __st=1
+ cleanup_
+ cleanup_fn_
+ umount /dev/sdb1
+ cleanup_final_
+ scsi_debug_cleanup_
+ test -n 1
+ for i in 1 2 3
+ rmmod scsi_debug
ERROR: Module scsi_debug is in use
+ sleep .2
+ for i in 1 2 3
+ rmmod scsi_debug
+ test yes = yes
+ warn_ t1100-busy-label.sh rmmod scsi_debug...
+ echo t1100-busy-label.sh rmmod scsi_debug...
+ break
+ rm -fr /usr/src/parted-3.0/tests/scsi_debug.lock
+ cd /usr/src/parted-3.0/tests
+ chmod -R u+rwx /usr/src/parted-3.0/tests/gt-t1100-busy-label.sh.WxsR
+ rm -rf /usr/src/parted-3.0/tests/gt-t1100-busy-label.sh.WxsR
+ exit 1

FAIL: t9041-undetected-in-use-16th-partition.sh (exit: 1)
=========================================================

++ initial_cwd_=/usr/src/parted-3.0/tests
++ fail=0
+++ testdir_prefix_
+++ printf gt
++ pfx_=gt
+++ mktempd_ /usr/src/parted-3.0/tests
gt-t9041-undetected-in-use-16th-partition.sh.XXXX
+++ case $# in
+++ destdir_=/usr/src/parted-3.0/tests
+++ template_=gt-t9041-undetected-in-use-16th-partition.sh.XXXX
+++ MAX_TRIES_=4
+++ case $destdir_ in
+++ case $template_ in
++++ unset TMPDIR
++++ mktemp -d -t -p /usr/src/parted-3.0/tests
gt-t9041-undetected-in-use-16th-partition.sh.XXXX
+++
d=/usr/src/parted-3.0/tests/gt-t9041-undetected-in-use-16th-partition.sh.CuSx
+++ case $d in
+++ test
-d /usr/src/parted-3.0/tests/gt-t9041-undetected-in-use-16th-partition.sh.CuSx
++++ tr S -
++++ ls
-dgo /usr/src/parted-3.0/tests/gt-t9041-undetected-in-use-16th-partition.sh.CuSx
+++ perms='drwx------. 2 4096 May 30
21:51 
/usr/src/parted-3.0/tests/gt-t9041-undetected-in-use-16th-partition.sh.Cu-x'
+++ case $perms in
+++ test 0 = 0
+++
echo /usr/src/parted-3.0/tests/gt-t9041-undetected-in-use-16th-partition.sh.CuSx
+++ return
++
test_dir_=/usr/src/parted-3.0/tests/gt-t9041-undetected-in-use-16th-partition.sh.CuSx
++
cd /usr/src/parted-3.0/tests/gt-t9041-undetected-in-use-16th-partition.sh.CuSx
++ gl_init_sh_nl_='
'
++ IFS='        
'
++ for sig_ in 1 2 3 13 15
+++ expr 1 + 128
++ eval 'trap '\''Exit 129'\'' 1'
+++ trap 'Exit 129' 1
++ for sig_ in 1 2 3 13 15
+++ expr 2 + 128
++ eval 'trap '\''Exit 130'\'' 2'
+++ trap 'Exit 130' 2
++ for sig_ in 1 2 3 13 15
+++ expr 3 + 128
++ eval 'trap '\''Exit 131'\'' 3'
+++ trap 'Exit 131' 3
++ for sig_ in 1 2 3 13 15
+++ expr 13 + 128
++ eval 'trap '\''Exit 141'\'' 13'
+++ trap 'Exit 141' 13
++ for sig_ in 1 2 3 13 15
+++ expr 15 + 128
++ eval 'trap '\''Exit 143'\'' 15'
+++ trap 'Exit 143' 15
++ trap remove_tmp_ 0
+ path_prepend_ ../parted
+ test 1 '!=' 0
+ path_dir_=../parted
+ case $path_dir_ in
++ cd /usr/src/parted-3.0/tests/../parted
++ echo /usr/src/parted-3.0/parted
+ abs_path_dir_=/usr/src/parted-3.0/parted
+ case $abs_path_dir_ in
+
PATH=/usr/src/parted-3.0/parted:/usr/src/parted-3.0/parted:/usr/local/bin:/usr/bin:/bin:/usr/local/sbin:/usr/sbin:/sbin
+ create_exe_shims_ /usr/src/parted-3.0/parted
+ case $EXEEXT in
+ return 0
+ shift
+ test 0 '!=' 0
+ export PATH
+ require_root_
+ uid_is_privileged_
++ id -u
+ my_uid=0
+ case $my_uid in
+ NON_ROOT_USERNAME=nobody
++ id -g nobody
+ NON_ROOT_GROUP=99
+ require_scsi_debug_module_
+ modprobe -n scsi_debug
+ grep '^#define USE_BLKID 1' /usr/src/parted-3.0/lib/config.h
+ ss=1024
+ partition_sectors=256
+ n_partitions=17
+ start=2048
+ gpt_slop=34
+ n_sectors=6434
+ sectors_per_MiB=1024
+ n_MiB=7
+ scsi_debug_setup_ sector_size=1024 dev_size_mb=7
+ scsi_debug_acquire_lock_
+ local retries=20
+ local lock_timeout_stale_seconds=120
+ local i=0
+ local incr=1
+ :
+ mkdir /usr/src/parted-3.0/tests/scsi_debug.lock
+ return 0
+ touch stamp
+ modprobe scsi_debug sector_size=1024 dev_size_mb=7
+ scsi_debug_modprobe_succeeded_=1
+ test yes = yes
+ warn_ t9041-undetected-in-use-16th-partition.sh modprobe scsi_debug
succeeded
+ echo t9041-undetected-in-use-16th-partition.sh modprobe scsi_debug
succeeded
+ local incr=1
+ local i=0
+ local new_dev
+ :
++ new_sdX_
++ local m
+++ grep -lw scsi_debug /sys/block/sda/device/model
++ m=
++ return 1
+ new_dev=
+ sleep .1
++ expr 0 + 1
+ i=1
+ test 1 = 20
+ :
++ new_sdX_
++ local m
+++ grep -lw
scsi_debug /sys/block/sda/device/model /sys/block/sdb/device/model
++ m=/sys/block/sdb/device/model
++ m=sdb/device/model
++ m=sdb
++ echo sdb
++ return 0
+ new_dev=sdb
+ break
+ case $new_dev in
+ local t=/dev/sdb
+ wait_for_dev_to_appear_ /dev/sdb
+ local file=/dev/sdb
+ local i=0
+ local incr=1
+ :
+ ls /dev/sdb
+ return 0
+ echo /dev/sdb
+ return 0
++ cat dev-name
+ scsi_dev=/dev/sdb
+ n=7168
+ printf 'BYT;\n/dev/sdb:7168s:scsi:1024:1024:gpt:Linux scsi_debug;\n'
+ parted -s /dev/sdb mklabel gpt
+ parted -s /dev/sdb u s p
Model: Linux scsi_debug (scsi)
Disk /dev/sdb: 7168s
Sector size (logical/physical): 1024B/1024B
Partition Table: gpt

Number  Start  End  Size  File system  Name  Flags

+ i=1
++ date +%s.%N
+ t0=1306792274.590751328
+ :
+ end=2303
+ parted -s /dev/sdb mkpart p1 2048s 2303s
+ printf '1:2048s:2303s:256s::p1:;\n'
+ test 1 = 17
+ start=2304
+ i=2
+ :
+ end=2559
+ parted -s /dev/sdb mkpart p2 2304s 2559s
Warning: The resulting partition is not properly aligned for best
performance.
+ printf '2:2304s:2559s:256s::p2:;\n'
+ test 2 = 17
+ start=2560
+ i=3
+ :
+ end=2815
+ parted -s /dev/sdb mkpart p3 2560s 2815s
Warning: The resulting partition is not properly aligned for best
performance.
+ printf '3:2560s:2815s:256s::p3:;\n'
+ test 3 = 17
+ start=2816
+ i=4
+ :
+ end=3071
+ parted -s /dev/sdb mkpart p4 2816s 3071s
Warning: The resulting partition is not properly aligned for best
performance.
+ printf '4:2816s:3071s:256s::p4:;\n'
+ test 4 = 17
+ start=3072
+ i=5
+ :
+ end=3327
+ parted -s /dev/sdb mkpart p5 3072s 3327s
+ printf '5:3072s:3327s:256s::p5:;\n'
+ test 5 = 17
+ start=3328
+ i=6
+ :
+ end=3583
+ parted -s /dev/sdb mkpart p6 3328s 3583s
Warning: The resulting partition is not properly aligned for best
performance.
+ printf '6:3328s:3583s:256s::p6:;\n'
+ test 6 = 17
+ start=3584
+ i=7
+ :
+ end=3839
+ parted -s /dev/sdb mkpart p7 3584s 3839s
Warning: The resulting partition is not properly aligned for best
performance.
+ printf '7:3584s:3839s:256s::p7:;\n'
+ test 7 = 17
+ start=3840
+ i=8
+ :
+ end=4095
+ parted -s /dev/sdb mkpart p8 3840s 4095s
Warning: The resulting partition is not properly aligned for best
performance.
+ printf '8:3840s:4095s:256s::p8:;\n'
+ test 8 = 17
+ start=4096
+ i=9
+ :
+ end=4351
+ parted -s /dev/sdb mkpart p9 4096s 4351s
+ printf '9:4096s:4351s:256s::p9:;\n'
+ test 9 = 17
+ start=4352
+ i=10
+ :
+ end=4607
+ parted -s /dev/sdb mkpart p10 4352s 4607s
Warning: The resulting partition is not properly aligned for best
performance.
+ printf '10:4352s:4607s:256s::p10:;\n'
+ test 10 = 17
+ start=4608
+ i=11
+ :
+ end=4863
+ parted -s /dev/sdb mkpart p11 4608s 4863s
Warning: The resulting partition is not properly aligned for best
performance.
+ printf '11:4608s:4863s:256s::p11:;\n'
+ test 11 = 17
+ start=4864
+ i=12
+ :
+ end=5119
+ parted -s /dev/sdb mkpart p12 4864s 5119s
Warning: The resulting partition is not properly aligned for best
performance.
+ printf '12:4864s:5119s:256s::p12:;\n'
+ test 12 = 17
+ start=5120
+ i=13
+ :
+ end=5375
+ parted -s /dev/sdb mkpart p13 5120s 5375s
+ printf '13:5120s:5375s:256s::p13:;\n'
+ test 13 = 17
+ start=5376
+ i=14
+ :
+ end=5631
+ parted -s /dev/sdb mkpart p14 5376s 5631s
Warning: The resulting partition is not properly aligned for best
performance.
+ printf '14:5376s:5631s:256s::p14:;\n'
+ test 14 = 17
+ start=5632
+ i=15
+ :
+ end=5887
+ parted -s /dev/sdb mkpart p15 5632s 5887s
Warning: The resulting partition is not properly aligned for best
performance.
+ printf '15:5632s:5887s:256s::p15:;\n'
+ test 15 = 17
+ start=5888
+ i=16
+ :
+ end=6143
+ parted -s /dev/sdb mkpart p16 5888s 6143s
Warning: The resulting partition is not properly aligned for best
performance.
+ printf '16:5888s:6143s:256s::p16:;\n'
+ test 16 = 17
+ start=6144
+ i=17
+ :
+ end=6399
+ parted -s /dev/sdb mkpart p17 6144s 6399s
+ printf '17:6144s:6399s:256s::p17:;\n'
+ test 17 = 17
+ break
++ date +%s.%N
+ t_final=1306792275.277010027
+ gawk 'BEGIN {d = 1306792275.277010027 - 1306792274.590751328; n = 17;
st = 60 < d; printf "created %d partitions in %.2f seconds\n", n, d;
exit st }' /dev/null
created 17 partitions in 0.69 seconds
+ parted -m -s /dev/sdb u s p
+ compare out exp
+ diff -u out exp
+ wait_for_dev_to_appear_ /dev/sdb16
+ local file=/dev/sdb16
+ local i=0
+ local incr=1
+ :
+ ls /dev/sdb16
+ sleep .1
++ expr 0 + 1
+ i=1
+ test 1 = 20
+ :
+ ls /dev/sdb16
+ return 0
+ partitions='/dev/sdb14 /dev/sdb15 /dev/sdb16'
+ for i in '$partitions'
+ mkfs.ext3 /dev/sdb14
mke2fs 1.41.14 (22-Dec-2010)
Filesystem label=
OS type: Linux
Block size=1024 (log=0)
Fragment size=1024 (log=0)
Stride=0 blocks, Stripe width=0 blocks
32 inodes, 256 blocks
12 blocks (4.69%) reserved for the super user
First data block=1
1 block group
8192 blocks per group, 8192 fragments per group
32 inodes per group

Writing inode tables: 0/1done                            

Filesystem too small for a journal
Writing superblocks and filesystem accounting information: done

This filesystem will be automatically checked every 35 mounts or
180 days, whichever comes first.  Use tune2fs -c or -i to override.
+ for i in '$partitions'
+ mkfs.ext3 /dev/sdb15
mke2fs 1.41.14 (22-Dec-2010)
Filesystem label=
OS type: Linux
Block size=1024 (log=0)
Fragment size=1024 (log=0)
Stride=0 blocks, Stripe width=0 blocks
32 inodes, 256 blocks
12 blocks (4.69%) reserved for the super user
First data block=1
1 block group
8192 blocks per group, 8192 fragments per group
32 inodes per group

Writing inode tables: 0/1done                            

Filesystem too small for a journal
Writing superblocks and filesystem accounting information: done

This filesystem will be automatically checked every 23 mounts or
180 days, whichever comes first.  Use tune2fs -c or -i to override.
+ for i in '$partitions'
+ mkfs.ext3 /dev/sdb16
mke2fs 1.41.14 (22-Dec-2010)
Filesystem label=
OS type: Linux
Block size=1024 (log=0)
Fragment size=1024 (log=0)
Stride=0 blocks, Stripe width=0 blocks
32 inodes, 256 blocks
12 blocks (4.69%) reserved for the super user
First data block=1
1 block group
8192 blocks per group, 8192 fragments per group
32 inodes per group

Writing inode tables: 0/1done                            

Filesystem too small for a journal
Writing superblocks and filesystem accounting information: done

This filesystem will be automatically checked every 20 mounts or
180 days, whichever comes first.  Use tune2fs -c or -i to override.
+ for part_dev in '$partitions'
+ n=14
++ pwd
+
mount_point=/usr/src/parted-3.0/tests/gt-t9041-undetected-in-use-16th-partition.sh.CuSx/m-14
+
mkdir 
/usr/src/parted-3.0/tests/gt-t9041-undetected-in-use-16th-partition.sh.CuSx/m-14
+
mount /dev/sdb14 
/usr/src/parted-3.0/tests/gt-t9041-undetected-in-use-16th-partition.sh.CuSx/m-14
+ parted -s /dev/sdb rm 14
+ fail=1
+ echo 'Error: Partition /dev/sdb14 is being used.' 'You must unmount it
before you modify it with Parted.'
+ compare out exp-error
+ diff -u out exp-error
--- out 2011-05-30 21:51:16.668986800 +0000
+++ exp-error   2011-05-30 21:51:16.669986815 +0000
@@ -1 +1 @@
-Error: Partition(s) 14 on /dev/sdb have been written, but we have been
unable to inform the kernel of the change, probably because it/they are
in use.  As a result, the old partition(s) will remain in use.  You
should reboot now before making further changes.
+Error: Partition /dev/sdb14 is being used. You must unmount it before
you modify it with Parted.
+ fail=1
+ for part_dev in '$partitions'
+ n=15
++ pwd
+
mount_point=/usr/src/parted-3.0/tests/gt-t9041-undetected-in-use-16th-partition.sh.CuSx/m-15
+
mkdir 
/usr/src/parted-3.0/tests/gt-t9041-undetected-in-use-16th-partition.sh.CuSx/m-15
+
mount /dev/sdb15 
/usr/src/parted-3.0/tests/gt-t9041-undetected-in-use-16th-partition.sh.CuSx/m-15
+ parted -s /dev/sdb rm 15
+ echo 'Error: Partition /dev/sdb15 is being used.' 'You must unmount it
before you modify it with Parted.'
+ compare out exp-error
+ diff -u out exp-error
+ for part_dev in '$partitions'
+ n=16
++ pwd
+
mount_point=/usr/src/parted-3.0/tests/gt-t9041-undetected-in-use-16th-partition.sh.CuSx/m-16
+
mkdir 
/usr/src/parted-3.0/tests/gt-t9041-undetected-in-use-16th-partition.sh.CuSx/m-16
+
mount /dev/sdb16 
/usr/src/parted-3.0/tests/gt-t9041-undetected-in-use-16th-partition.sh.CuSx/m-16
+ parted -s /dev/sdb rm 16
+ echo 'Error: Partition /dev/sdb16 is being used.' 'You must unmount it
before you modify it with Parted.'
+ compare out exp-error
+ diff -u out exp-error
+ Exit 1
+ set +e
+ exit 1
+ exit 1
+ remove_tmp_
+ __st=1
+ cleanup_
+ cleanup_fn_
+ for i in '$partitions'
+ umount /dev/sdb14
+ for i in '$partitions'
+ umount /dev/sdb15
+ for i in '$partitions'
+ umount /dev/sdb16
+ cleanup_final_
+ scsi_debug_cleanup_
+ test -n 1
+ for i in 1 2 3
+ rmmod scsi_debug
ERROR: Module scsi_debug is in use
+ sleep .2
+ for i in 1 2 3
+ rmmod scsi_debug
ERROR: Module scsi_debug is in use
+ sleep .2
+ for i in 1 2 3
+ rmmod scsi_debug
+ test yes = yes
+ warn_ t9041-undetected-in-use-16th-partition.sh rmmod scsi_debug...
+ echo t9041-undetected-in-use-16th-partition.sh rmmod scsi_debug...
+ break
+ rm -fr /usr/src/parted-3.0/tests/scsi_debug.lock
+ cd /usr/src/parted-3.0/tests
+ chmod -R u
+rwx /usr/src/parted-3.0/tests/gt-t9041-undetected-in-use-16th-partition.sh.CuSx
+ rm
-rf /usr/src/parted-3.0/tests/gt-t9041-undetected-in-use-16th-partition.sh.CuSx
+ exit 1




reply via email to

[Prev in Thread] Current Thread [Next in Thread]