* [PATCH 1/2 V2] xfstests README: added 'make install' to building steps @ 2012-04-27 10:07 Tom Marek 2012-04-27 10:07 ` [PATCH 2/2 V2] xfstests 273: fix of reading scratch size and removing lost+found Tom Marek 0 siblings, 1 reply; 3+ messages in thread From: Tom Marek @ 2012-04-27 10:07 UTC (permalink / raw) To: xfs; +Cc: Tom Marek, lczerner, dchinner There was no mention of 'make install' step in the README file. run make install added to section 'Building Linux'. Signed-off-by: Tom Marek <tmarek@redhat.com> --- README | 4 +++- 1 files changed, 3 insertions(+), 1 deletions(-) diff --git a/README b/README index 0f52f02..d81ede9 100644 --- a/README +++ b/README @@ -3,7 +3,9 @@ BUILDING THE FSQA SUITE _______________________ Building Linux: - - cd into the xfstests directory and run make. + - cd into the xfstests directory + - run make + - run make install Building IRIX: - cd into the xfstests directory -- 1.7.7.6 _______________________________________________ xfs mailing list xfs@oss.sgi.com http://oss.sgi.com/mailman/listinfo/xfs ^ permalink raw reply related [flat|nested] 3+ messages in thread
* [PATCH 2/2 V2] xfstests 273: fix of reading scratch size and removing lost+found 2012-04-27 10:07 [PATCH 1/2 V2] xfstests README: added 'make install' to building steps Tom Marek @ 2012-04-27 10:07 ` Tom Marek 2012-05-15 15:46 ` Eric Sandeen 0 siblings, 1 reply; 3+ messages in thread From: Tom Marek @ 2012-04-27 10:07 UTC (permalink / raw) To: xfs; +Cc: Tom Marek, lczerner, sandeen, dchinner There were two reasons why test 273 was failing. Firstrly, when running on ext4 fs it was removing everything from SCRATCH_MNT directory at the beginning of tests including the lost+found directory. This caused error while checking scratch fs after finishing test. Secondly, obtaining of the partition size was not counting with with behaviour of df utility which may split the line containg informations about one partition when it is too long thus it may have returned nothing. First problem was solved with removing all unnecessary rm -rf commands and the second one was fixed with alternative awk script which is able to deal with any line splitting possible. Also 'umount $SCRATCH_DEV' was substituted for '_scratch_unmount'. Cc: sandeen@sandeen.net Signed-off-by: Tom Marek <tmarek@redhat.com> --- V2: cleaning of $SCRATCH_MNT removed from cleanup() 273 | 8 +++----- 1 files changed, 3 insertions(+), 5 deletions(-) diff --git a/273 b/273 index 2965132..da9172d 100755 --- a/273 +++ b/273 @@ -35,7 +35,7 @@ trap "_cleanup; exit \$status" 0 1 2 3 15 _cleanup() { cd / - rm -rf $SCRATCH_MNT/* $tmp.* + rm -rf $tmp.* _scratch_unmount } @@ -68,7 +68,7 @@ _file_create() cd $SCRATCH_MNT/origin - _disksize=`df --block-size=1 | grep $SCRATCH_DEV | awk '{print $2}'` + _disksize=`df --block-size=1 $SCRATCH_DEV | awk -v sd=$SCRATCH_DEV 'BEGIN{c=0}{for(i=1;i<=NF;++i){a[c]=$i;++c}}END{for(entry in a){if(a[entry] ~ sd){print a[entry + 3]; break}}}'` _disksize=$(($_disksize / 3)) _num=$(($_disksize / $count / $threads / 4096)) _count=$count @@ -106,8 +106,6 @@ _do_workload() _pids="" _pid=1 - rm -rf $SCRATCH_MNT/* - _threads_set _file_create @@ -134,7 +132,7 @@ echo "------------------------------" rm -f $seq.full -umount $SCRATCH_DEV 2>/dev/null +_scratch_unmount 2>/dev/null _scratch_mkfs_sized $((2 * 1024 * 1024 * 1024)) >>$seq.full 2>&1 _scratch_mount -- 1.7.7.6 _______________________________________________ xfs mailing list xfs@oss.sgi.com http://oss.sgi.com/mailman/listinfo/xfs ^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH 2/2 V2] xfstests 273: fix of reading scratch size and removing lost+found 2012-04-27 10:07 ` [PATCH 2/2 V2] xfstests 273: fix of reading scratch size and removing lost+found Tom Marek @ 2012-05-15 15:46 ` Eric Sandeen 0 siblings, 0 replies; 3+ messages in thread From: Eric Sandeen @ 2012-05-15 15:46 UTC (permalink / raw) To: Tom Marek; +Cc: lczerner, dchinner, Jan Kara, xfs On 4/27/12 5:07 AM, Tom Marek wrote: > There were two reasons why test 273 was failing. Firstrly, when running on > ext4 fs it was removing everything from SCRATCH_MNT directory at the beginning > of tests including the lost+found directory. This caused error while checking > scratch fs after finishing test. Secondly, obtaining of the partition size was > not counting with with behaviour of df utility which may split the line containg > informations about one partition when it is too long thus it may have returned > nothing. > > First problem was solved with removing all unnecessary rm -rf commands and the > second one was fixed with alternative awk script which is able to deal with > any line splitting possible. Also 'umount $SCRATCH_DEV' was substituted for > '_scratch_unmount'. > > Cc: sandeen@sandeen.net > Signed-off-by: Tom Marek <tmarek@redhat.com> Looks fine, I'll merge this today, sorry for the delay. (I'm curious though, why was the df line so long? And is this the only test which has that problem? Maybe all that awk should go to a helper if any other test needs it) -Eric > --- > V2: cleaning of $SCRATCH_MNT removed from cleanup() > > 273 | 8 +++----- > 1 files changed, 3 insertions(+), 5 deletions(-) > > diff --git a/273 b/273 > index 2965132..da9172d 100755 > --- a/273 > +++ b/273 > @@ -35,7 +35,7 @@ trap "_cleanup; exit \$status" 0 1 2 3 15 > _cleanup() > { > cd / > - rm -rf $SCRATCH_MNT/* $tmp.* > + rm -rf $tmp.* > _scratch_unmount > } > > @@ -68,7 +68,7 @@ _file_create() > > cd $SCRATCH_MNT/origin > > - _disksize=`df --block-size=1 | grep $SCRATCH_DEV | awk '{print $2}'` > + _disksize=`df --block-size=1 $SCRATCH_DEV | awk -v sd=$SCRATCH_DEV 'BEGIN{c=0}{for(i=1;i<=NF;++i){a[c]=$i;++c}}END{for(entry in a){if(a[entry] ~ sd){print a[entry + 3]; break}}}'` > _disksize=$(($_disksize / 3)) > _num=$(($_disksize / $count / $threads / 4096)) > _count=$count > @@ -106,8 +106,6 @@ _do_workload() > _pids="" > _pid=1 > > - rm -rf $SCRATCH_MNT/* > - > _threads_set > _file_create > > @@ -134,7 +132,7 @@ echo "------------------------------" > > rm -f $seq.full > > -umount $SCRATCH_DEV 2>/dev/null > +_scratch_unmount 2>/dev/null > _scratch_mkfs_sized $((2 * 1024 * 1024 * 1024)) >>$seq.full 2>&1 > _scratch_mount > _______________________________________________ xfs mailing list xfs@oss.sgi.com http://oss.sgi.com/mailman/listinfo/xfs ^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2012-05-15 15:46 UTC | newest] Thread overview: 3+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2012-04-27 10:07 [PATCH 1/2 V2] xfstests README: added 'make install' to building steps Tom Marek 2012-04-27 10:07 ` [PATCH 2/2 V2] xfstests 273: fix of reading scratch size and removing lost+found Tom Marek 2012-05-15 15:46 ` Eric Sandeen
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox