From: "Fan He" <[email protected]> Subject: [LTP] [Patch 1/1] Patch for the improvement of enabling the ftruncate04 testcase Date: Mon, 16 Mar 2009 20:30:32 -0600
> [Patch 1/1] Patch for the improvement of enabling the ftruncate04 > testcase > > > -modified two scripts ftruncate.sh and ftruncate_64.sh to improvement > this testcase. > > > > signed-off-by : fredrick he <[email protected]> > ----------------------------------------------------------- > diff -pur > ltp-full-20081031.orig//testcases/kernel/syscalls/ftruncate/ftruncate_64.sh > ltp-full-20081031/testcases/kernel/syscalls/ftruncate/ftruncate_64.sh > --- > ltp-full-20081031.orig//testcases/kernel/syscalls/ftruncate/ftruncate_64.sh > 2009-03-17 > 09:27:18.000000000 +0800 > +++ > ltp-full-20081031/testcases/kernel/syscalls/ftruncate/ftruncate_64.sh > 2009-03-17 10:07:19.000000000 +0800 > @@ -2,8 +2,10 @@ > > cd /tmp > DEV=`df . |grep ^/|awk '{print $1}'` > -mount ${DEV} -o remount,mand || exit 2 > +MOUNT_POINT=`df .| tail -1 |awk '{print $NF}'` > +FLAG=`mount| grep ${DEV} | sed 's/.*(\(.*\)).*/\1/g'` > +mount ${DEV} -o remount,mand || { echo "the ${DEV} remount,mand > failed" ; exit 2;} > ftruncate04_64 > ret=$? > -mount ${DEV} -o remount || exit 2 > +mount -o remount,${FLAG} ${DEV} ${MOUNT_POINT} || { echo "the ${DEV} > remount,${FLAG} failed" ; exit 2; } > exit $ret > diff -pur > ltp-full-20081031.orig//testcases/kernel/syscalls/ftruncate/ftruncate.sh > ltp-full-20081031/testcases/kernel/syscalls/ftruncate/ftruncate.sh > --- > ltp-full-20081031.orig//testcases/kernel/syscalls/ftruncate/ftruncate.sh > 2009-03-17 09:27:18.000000000 +0800 > +++ ltp-full-20081031/testcases/kernel/syscalls/ftruncate/ftruncate.sh > 2009-03-17 10:07:09.000000000 +0800 > @@ -2,8 +2,10 @@ > > cd /tmp > DEV=`df . |grep ^/|awk '{print $1}'` > -mount ${DEV} -o remount,mand || exit 2 > +MOUNT_POINT=`df .| tail -1 |awk '{print $NF}'` > +FLAG=`mount| grep ${DEV} | sed 's/.*(\(.*\)).*/\1/g'` > +mount ${DEV} -o remount,mand || { echo "the ${DEV} remount,mand > failed" ; exit 2;} > ftruncate04 > ret=$? > -mount ${DEV} -o remount || exit 2 > +mount -o remount,${FLAG} ${DEV} ${MOUNT_POINT} || { echo "the ${DEV} > remount,${FLAG} failed" ; exit 2; } > exit $ret > Acked-by: CAI Qian <[email protected]> > > > > > > > -- > > Fan Fredrick He (Fred) > R&D OPS QA Beijing PRC > Room 3603, Beijing Fortune Plaza, Office Tower A, No.7 Dongsanhuan > Zhonglu, Chaoyang District, Beijing, P.R., 100020 > SUSE LINUX Products > [email protected] > Mainland-Mobile (86) 13661278596 > ------------------------------------------------------------------------------ Apps built with the Adobe(R) Flex(R) framework and Flex Builder(TM) are powering Web 2.0 with engaging, cross-platform capabilities. Quickly and easily build your RIAs with Flex Builder, the Eclipse(TM)based development software that enables intelligent coding and step-through debugging. Download the free 60 day trial. http://p.sf.net/sfu/www-adobe-com _______________________________________________ Ltp-list mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/ltp-list
