config-patches
[Top][All Lists]
Advanced

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

sg_xcopy testing


From: Isaac Otsiabah
Subject: sg_xcopy testing
Date: Fri, 2 Nov 2012 10:41:09 -0700 (PDT)

Hi, i tested sg_xcopy and saw that it worked in one case but not all. i performed the two tests below, test 1 passed but test 2 failed.

#Test 1:
dd if=/dev/urandom of=/dev/sde bs=512 count=20
dd if=/dev/zero of=/dev/sdf1 bs=512 count=20
./sg_xcopy if=/dev/sde of=/dev/sdf bs=512 count=20 list_id=0 prio=0
dd if=/dev/sde of=sde.out bs=512 count=20
dd if=/dev/sdf of=sdf.out bs=512 count=20
cmp sde.out sdf.out
echo $?
0   /* successful */

#Test 2
dd if=/dev/urandom of=/dev/sde1 bs=512 count=20
dd if=/dev/zero of=/dev/sdf1 bs=512 count=20
./sg_xcopy if=/dev/sde1 of=/dev/sdf1 bs=512 count=20 list_id=0 prio=0
dd if=/dev/sde1 of=sde1.out bs=512 count=20
dd if=/dev/sdf1 of=sdf1.out bs=512 count=20
cmp sde1.out sdf1.out
echo $?
1      /* failed        */
        /* the "hexdump -v sdf1.out" command shows sdf1.out still contain zero's */

 /dev/sde1 was parted from /dev/sde and /dev/sdf1 was parted from /dev/sdf  but shouldn't it work as it would have worked if i had used the traditional "dd" command? Am i missing something here?

Isaac




reply via email to

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