* [PATCH 0/3] xfstests: miscellaneous patches
@ 2010-04-29 0:16 Dave Chinner
2010-04-29 0:16 ` [PATCH 1/3] xfsqa: clean up 030 repair output Dave Chinner
` (2 more replies)
0 siblings, 3 replies; 16+ messages in thread
From: Dave Chinner @ 2010-04-29 0:16 UTC (permalink / raw)
To: xfs
I've been carrying the following patches in my workarea for some time now. I
figure I'm always applying them, so I might as well push them upstream.
The first makes 030 pass again by filtering out the additional verbose messages
that the latest repair has. The second adds more debug to test 222 so that if
it fails theres a better chance of working out what went wrong. The last
patch enables debian platforms to configure and compile dbtest and hence run
test 10.
_______________________________________________
xfs mailing list
xfs@oss.sgi.com
http://oss.sgi.com/mailman/listinfo/xfs
^ permalink raw reply [flat|nested] 16+ messages in thread* [PATCH 1/3] xfsqa: clean up 030 repair output 2010-04-29 0:16 [PATCH 0/3] xfstests: miscellaneous patches Dave Chinner @ 2010-04-29 0:16 ` Dave Chinner 2010-04-29 10:18 ` Christoph Hellwig 2010-04-29 0:16 ` [PATCH 2/3] xfsqa: keep xfs_fsr output around in test 222 Dave Chinner 2010-04-29 0:16 ` [PATCH 3/3] xfsqa: build dbtest on debian platforms Dave Chinner 2 siblings, 1 reply; 16+ messages in thread From: Dave Chinner @ 2010-04-29 0:16 UTC (permalink / raw) To: xfs With the new checks in xfs_repair, it outputs more information about errors found than previously. This new output can be ignored for the purposeѕ of this test, so filter it all out. This will allow the test to run on new and old reapir binaries. Signed-off-by: Dave Chinner <david@fromorbit.com> --- common.repair | 5 +++++ 1 files changed, 5 insertions(+), 0 deletions(-) diff --git a/common.repair b/common.repair index ba42b8f..23a1ed6 100644 --- a/common.repair +++ b/common.repair @@ -72,6 +72,11 @@ s/ - generate realtime summary info and bitmap...\n//g; s/\s+- creating \d+ worker thread\(s\)\n//g; s/\s+- reporting progress in intervals of \d+ minutes\n//g; s/\s+- \d+:\d\d:\d\d:.*\n//g; +# 3.1.0 extra accounting output +/^agf_/ && next; # remove agf counts +/^agi_/ && next; # remove agi counts +/^sb_/ && next; # remove sb counts +/^agi unlinked/ && next; # remove agi unlinked bucket warning print;' } -- 1.5.6.5 _______________________________________________ xfs mailing list xfs@oss.sgi.com http://oss.sgi.com/mailman/listinfo/xfs ^ permalink raw reply related [flat|nested] 16+ messages in thread
* Re: [PATCH 1/3] xfsqa: clean up 030 repair output 2010-04-29 0:16 ` [PATCH 1/3] xfsqa: clean up 030 repair output Dave Chinner @ 2010-04-29 10:18 ` Christoph Hellwig 0 siblings, 0 replies; 16+ messages in thread From: Christoph Hellwig @ 2010-04-29 10:18 UTC (permalink / raw) To: Dave Chinner; +Cc: xfs On Thu, Apr 29, 2010 at 10:16:24AM +1000, Dave Chinner wrote: > With the new checks in xfs_repair, it outputs more information > about errors found than previously. This new output can be ignored > for the purpose?? of this test, so filter it all out. This will > allow the test to run on new and old reapir binaries. Oh well, I had promised faking up the new output for too long time but never managed to do it, so let's just put this one in. Reviewed-by: Christoph Hellwig <hch@lst.de> _______________________________________________ xfs mailing list xfs@oss.sgi.com http://oss.sgi.com/mailman/listinfo/xfs ^ permalink raw reply [flat|nested] 16+ messages in thread
* [PATCH 2/3] xfsqa: keep xfs_fsr output around in test 222 2010-04-29 0:16 [PATCH 0/3] xfstests: miscellaneous patches Dave Chinner 2010-04-29 0:16 ` [PATCH 1/3] xfsqa: clean up 030 repair output Dave Chinner @ 2010-04-29 0:16 ` Dave Chinner 2010-04-29 10:19 ` Christoph Hellwig 2010-04-29 0:16 ` [PATCH 3/3] xfsqa: build dbtest on debian platforms Dave Chinner 2 siblings, 1 reply; 16+ messages in thread From: Dave Chinner @ 2010-04-29 0:16 UTC (permalink / raw) To: xfs From: Dave Chinner <dchinner@redhat.com> To confirm that xfs_fsr is doing the right thing, make it output debug and verbose messages and store them in the 222.full file so that it can be checked after the fact for correct operation. Signed-off-by: Dave Chinner <dchinner@redhat.com> --- 222 | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/222 b/222 index 574c181..a65c845 100644 --- a/222 +++ b/222 @@ -51,7 +51,7 @@ _supported_os Linux [ "$XFS_FSR_PROG" = "" ] && _notrun "xfs_fsr not found" -xfs_fsr $TEST_MNT > /dev/null 2>&1 +xfs_fsr -d -v $TEST_MNT > $seq.full 2>&1 echo "--- silence is golden ---" status=0 ; exit -- 1.5.6.5 _______________________________________________ xfs mailing list xfs@oss.sgi.com http://oss.sgi.com/mailman/listinfo/xfs ^ permalink raw reply related [flat|nested] 16+ messages in thread
* Re: [PATCH 2/3] xfsqa: keep xfs_fsr output around in test 222 2010-04-29 0:16 ` [PATCH 2/3] xfsqa: keep xfs_fsr output around in test 222 Dave Chinner @ 2010-04-29 10:19 ` Christoph Hellwig 0 siblings, 0 replies; 16+ messages in thread From: Christoph Hellwig @ 2010-04-29 10:19 UTC (permalink / raw) To: Dave Chinner; +Cc: xfs On Thu, Apr 29, 2010 at 10:16:25AM +1000, Dave Chinner wrote: > From: Dave Chinner <dchinner@redhat.com> > > To confirm that xfs_fsr is doing the right thing, make it output debug > and verbose messages and store them in the 222.full file so that it > can be checked after the fact for correct operation. > > Signed-off-by: Dave Chinner <dchinner@redhat.com> Reviewed-by: Christoph Hellwig <hch@lst.de> _______________________________________________ xfs mailing list xfs@oss.sgi.com http://oss.sgi.com/mailman/listinfo/xfs ^ permalink raw reply [flat|nested] 16+ messages in thread
* [PATCH 3/3] xfsqa: build dbtest on debian platforms 2010-04-29 0:16 [PATCH 0/3] xfstests: miscellaneous patches Dave Chinner 2010-04-29 0:16 ` [PATCH 1/3] xfsqa: clean up 030 repair output Dave Chinner 2010-04-29 0:16 ` [PATCH 2/3] xfsqa: keep xfs_fsr output around in test 222 Dave Chinner @ 2010-04-29 0:16 ` Dave Chinner 2010-04-29 6:49 ` Dave Chinner 2010-04-29 10:20 ` Christoph Hellwig 2 siblings, 2 replies; 16+ messages in thread From: Dave Chinner @ 2010-04-29 0:16 UTC (permalink / raw) To: xfs Set up autoconf to find the correct headers and compat libraries for debian squeeze, and massage the includes to ensure the right headers get included. Also fix a compile warning that was emitted now that it is being compiled. Signed-off-by: Dave Chinner <david@fromorbit.com> --- m4/package_gdbmdev.m4 | 8 ++++++-- src/dbtest.c | 18 +++++++++--------- 2 files changed, 15 insertions(+), 11 deletions(-) diff --git a/m4/package_gdbmdev.m4 b/m4/package_gdbmdev.m4 index d826acd..6580fba 100644 --- a/m4/package_gdbmdev.m4 +++ b/m4/package_gdbmdev.m4 @@ -6,9 +6,13 @@ AC_DEFUN([AC_PACKAGE_WANT_NDBM], ]) AC_DEFUN([AC_PACKAGE_WANT_GDBM], - [ AC_CHECK_HEADERS([gdbm/ndbm.h], [ have_db=true ], [ have_db=false ]) + [ AC_CHECK_HEADERS([gdbm/ndbm.h, gdbm-ndbm.h], [ have_db=true ], [ have_db=false ]) + libgdbm="" + if test $have_db = true -a -f ${libexecdir}${libdirsuffix}/libgdbm_compat.a; then + libgdbm="${libexecdir}${libdirsuffix}/libgdbm_compat.a" + fi if test $have_db = true -a -f ${libexecdir}${libdirsuffix}/libgdbm.a; then - libgdbm="${libexecdir}${libdirsuffix}/libgdbm.a" + libgdbm="${libgdbm} ${libexecdir}${libdirsuffix}/libgdbm.a" fi AC_SUBST(libgdbm) AC_SUBST(have_db) diff --git a/src/dbtest.c b/src/dbtest.c index 48667b7..297540f 100644 --- a/src/dbtest.c +++ b/src/dbtest.c @@ -18,19 +18,17 @@ #include "global.h" -#ifdef HAVE_GDBM_NDBM_H +#ifdef HAVE_GDBM_NDBM_H_ #include <gdbm/ndbm.h> -#else -#ifdef HAVE_GDBM_H +#elif HAVE_GDBM_NDBM_H +#include <gdbm-ndbm.h> +#elif HAVE_GDBM_H #include <gdbm.h> -#else -#ifdef HAVE_NDBM_H +#elif HAVE_NDBM_H #include <ndbm.h> #else bozo! #endif -#endif -#endif /* #define WorkDir "/xfs" */ @@ -144,7 +142,8 @@ int InitDbmLookup(int howmany) fflush(stdout); } dbm = dbm_open(filename, O_WRONLY|O_CREAT, 0644); - if(dbm == NULL) DoSysError("\ndbm_open", (int)dbm); + if(dbm == NULL) + DoSysError("\ndbm_open", -1); if ((KeyArray = (unsigned short *)calloc( howmany, sizeof(unsigned short))) == NULL) @@ -195,7 +194,8 @@ int InitDbmLookup(int howmany) fflush(stdout); } dbm = dbm_open(filename, O_RDONLY, 0); - if(dbm == NULL) DoSysError("\ndbm_open", (int)dbm); + if(dbm == NULL) + DoSysError("\ndbm_open", -1); return 0; } -- 1.5.6.5 _______________________________________________ xfs mailing list xfs@oss.sgi.com http://oss.sgi.com/mailman/listinfo/xfs ^ permalink raw reply related [flat|nested] 16+ messages in thread
* Re: [PATCH 3/3] xfsqa: build dbtest on debian platforms 2010-04-29 0:16 ` [PATCH 3/3] xfsqa: build dbtest on debian platforms Dave Chinner @ 2010-04-29 6:49 ` Dave Chinner 2010-04-29 10:20 ` Christoph Hellwig 2010-04-29 10:46 ` Christoph Hellwig 2010-04-29 10:20 ` Christoph Hellwig 1 sibling, 2 replies; 16+ messages in thread From: Dave Chinner @ 2010-04-29 6:49 UTC (permalink / raw) To: xfs On Thu, Apr 29, 2010 at 10:16:26AM +1000, Dave Chinner wrote: > Set up autoconf to find the correct headers and compat libraries for > debian squeeze, and massage the includes to ensure the right headers get > included. Also fix a compile warning that was emitted now that it is being > compiled. > > Signed-off-by: Dave Chinner <david@fromorbit.com> I missed a O_WRONLY->O_RDWR dbm_open fix (forgot to refresh the patch before sending the patchbomb) in this, so it builds but doesn't run. Updated patch below. Cheers, Dave. -- Dave Chinner david@fromorbit.com xfsqa: build dbtest on debian platforms Set up autoconf to find the correct headers and compat libraries for debian squeeze, and massage the includes to ensure the right headers get included. Also fix a compile warning that was emitted now that it is being compiled. Signed-off-by: Dave Chinner <david@fromorbit.com> --- m4/package_gdbmdev.m4 | 8 ++++++-- src/dbtest.c | 24 ++++++++++++------------ 2 files changed, 18 insertions(+), 14 deletions(-) diff --git a/m4/package_gdbmdev.m4 b/m4/package_gdbmdev.m4 index d826acd..6580fba 100644 --- a/m4/package_gdbmdev.m4 +++ b/m4/package_gdbmdev.m4 @@ -6,9 +6,13 @@ AC_DEFUN([AC_PACKAGE_WANT_NDBM], ]) AC_DEFUN([AC_PACKAGE_WANT_GDBM], - [ AC_CHECK_HEADERS([gdbm/ndbm.h], [ have_db=true ], [ have_db=false ]) + [ AC_CHECK_HEADERS([gdbm/ndbm.h, gdbm-ndbm.h], [ have_db=true ], [ have_db=false ]) + libgdbm="" + if test $have_db = true -a -f ${libexecdir}${libdirsuffix}/libgdbm_compat.a; then + libgdbm="${libexecdir}${libdirsuffix}/libgdbm_compat.a" + fi if test $have_db = true -a -f ${libexecdir}${libdirsuffix}/libgdbm.a; then - libgdbm="${libexecdir}${libdirsuffix}/libgdbm.a" + libgdbm="${libgdbm} ${libexecdir}${libdirsuffix}/libgdbm.a" fi AC_SUBST(libgdbm) AC_SUBST(have_db) diff --git a/src/dbtest.c b/src/dbtest.c index 48667b7..ec8db0b 100644 --- a/src/dbtest.c +++ b/src/dbtest.c @@ -18,19 +18,17 @@ #include "global.h" -#ifdef HAVE_GDBM_NDBM_H +#ifdef HAVE_GDBM_NDBM_H_ #include <gdbm/ndbm.h> -#else -#ifdef HAVE_GDBM_H +#elif HAVE_GDBM_NDBM_H +#include <gdbm-ndbm.h> +#elif HAVE_GDBM_H #include <gdbm.h> -#else -#ifdef HAVE_NDBM_H +#elif HAVE_NDBM_H #include <ndbm.h> #else bozo! #endif -#endif -#endif /* #define WorkDir "/xfs" */ @@ -140,11 +138,12 @@ int InitDbmLookup(int howmany) sprintf(filename, "%s-%d", DBNAME, (int)getpid()); if (debugflg) { - printf("dbm_open(%s, O_WRONLY|O_CREAT, 0644)\n", filename); + printf("dbm_open(%s, O_RDWR|O_CREAT, 0644)\n", filename); fflush(stdout); } - dbm = dbm_open(filename, O_WRONLY|O_CREAT, 0644); - if(dbm == NULL) DoSysError("\ndbm_open", (int)dbm); + dbm = dbm_open(filename, O_RDWR|O_CREAT, 0644); + if(dbm == NULL) + DoSysError("\ndbm_open", -1); if ((KeyArray = (unsigned short *)calloc( howmany, sizeof(unsigned short))) == NULL) @@ -191,11 +190,12 @@ int InitDbmLookup(int howmany) } dbm_close(dbm); /* close to eliminate chance of in-memory caching */ if (debugflg) { - printf("dbm_open(%s, O_RDNLY, 0)\n", filename); + printf("dbm_open(%s, O_RDONLY, 0)\n", filename); fflush(stdout); } dbm = dbm_open(filename, O_RDONLY, 0); - if(dbm == NULL) DoSysError("\ndbm_open", (int)dbm); + if(dbm == NULL) + DoSysError("\ndbm_open", -1); return 0; } _______________________________________________ xfs mailing list xfs@oss.sgi.com http://oss.sgi.com/mailman/listinfo/xfs ^ permalink raw reply related [flat|nested] 16+ messages in thread
* Re: [PATCH 3/3] xfsqa: build dbtest on debian platforms 2010-04-29 6:49 ` Dave Chinner @ 2010-04-29 10:20 ` Christoph Hellwig 2010-04-29 10:46 ` Christoph Hellwig 1 sibling, 0 replies; 16+ messages in thread From: Christoph Hellwig @ 2010-04-29 10:20 UTC (permalink / raw) To: Dave Chinner; +Cc: xfs On Thu, Apr 29, 2010 at 04:49:43PM +1000, Dave Chinner wrote: > On Thu, Apr 29, 2010 at 10:16:26AM +1000, Dave Chinner wrote: > > Set up autoconf to find the correct headers and compat libraries for > > debian squeeze, and massage the includes to ensure the right headers get > > included. Also fix a compile warning that was emitted now that it is being > > compiled. > > > > Signed-off-by: Dave Chinner <david@fromorbit.com> > > I missed a O_WRONLY->O_RDWR dbm_open fix (forgot to refresh the > patch before sending the patchbomb) in this, so it builds but > doesn't run. > > Updated patch below. Well, that needs some documentation in the patch description. _______________________________________________ xfs mailing list xfs@oss.sgi.com http://oss.sgi.com/mailman/listinfo/xfs ^ permalink raw reply [flat|nested] 16+ messages in thread
* Re: [PATCH 3/3] xfsqa: build dbtest on debian platforms 2010-04-29 6:49 ` Dave Chinner 2010-04-29 10:20 ` Christoph Hellwig @ 2010-04-29 10:46 ` Christoph Hellwig 2010-04-30 1:26 ` Dave Chinner 1 sibling, 1 reply; 16+ messages in thread From: Christoph Hellwig @ 2010-04-29 10:46 UTC (permalink / raw) To: Dave Chinner; +Cc: xfs Spoken too soon. While this second patch at least compiles on my Debian testing system it doesn't link: /tmp/ccWcHXtY.o: In function `CleanupDbmLookup': /root/xfstests-dev/src/dbtest.c:304: undefined reference to `dbm_close' /tmp/ccWcHXtY.o: In function `DoDbmLookup': /root/xfstests-dev/src/dbtest.c:220: undefined reference to `dbm_fetch' /root/xfstests-dev/src/dbtest.c:264: undefined reference to `dbm_fetch' /tmp/ccWcHXtY.o: In function `InitDbmLookup': /root/xfstests-dev/src/dbtest.c:144: undefined reference to `dbm_open' /root/xfstests-dev/src/dbtest.c:178: undefined reference to `dbm_store' /root/xfstests-dev/src/dbtest.c:191: undefined reference to `dbm_close' /root/xfstests-dev/src/dbtest.c:196: undefined reference to `dbm_open' collect2: ld returned 1 exit status make[2]: *** [dbtest] Error 1 make[1]: *** [src] Error 2 make: *** [default] Error 2 _______________________________________________ xfs mailing list xfs@oss.sgi.com http://oss.sgi.com/mailman/listinfo/xfs ^ permalink raw reply [flat|nested] 16+ messages in thread
* Re: [PATCH 3/3] xfsqa: build dbtest on debian platforms 2010-04-29 10:46 ` Christoph Hellwig @ 2010-04-30 1:26 ` Dave Chinner 2010-04-30 2:28 ` Alex Elder 0 siblings, 1 reply; 16+ messages in thread From: Dave Chinner @ 2010-04-30 1:26 UTC (permalink / raw) To: Christoph Hellwig; +Cc: xfs On Thu, Apr 29, 2010 at 06:46:11AM -0400, Christoph Hellwig wrote: > Spoken too soon. While this second patch at least compiles on my Debian > testing system it doesn't link: > > /tmp/ccWcHXtY.o: In function `CleanupDbmLookup': /root/xfstests-dev/src/dbtest.c:304: undefined reference to `dbm_close' > /tmp/ccWcHXtY.o: In function `DoDbmLookup': > /root/xfstests-dev/src/dbtest.c:220: undefined reference to `dbm_fetch' > /root/xfstests-dev/src/dbtest.c:264: undefined reference to `dbm_fetch' /tmp/ccWcHXtY.o: In function `InitDbmLookup': > /root/xfstests-dev/src/dbtest.c:144: undefined reference to `dbm_open' > /root/xfstests-dev/src/dbtest.c:178: undefined reference to `dbm_store' > /root/xfstests-dev/src/dbtest.c:191: undefined reference to `dbm_close' > /root/xfstests-dev/src/dbtest.c:196: undefined reference to `dbm_open' > collect2: ld returned 1 exit status > make[2]: *** [dbtest] Error 1 > make[1]: *** [src] Error 2 > make: *** [default] Error 2 Where is libgdbm-compat on your system? Cheers, Dave. -- Dave Chinner david@fromorbit.com _______________________________________________ xfs mailing list xfs@oss.sgi.com http://oss.sgi.com/mailman/listinfo/xfs ^ permalink raw reply [flat|nested] 16+ messages in thread
* Re: [PATCH 3/3] xfsqa: build dbtest on debian platforms 2010-04-30 1:26 ` Dave Chinner @ 2010-04-30 2:28 ` Alex Elder 2010-04-30 3:20 ` Eric Sandeen 2010-04-30 8:55 ` Dave Chinner 0 siblings, 2 replies; 16+ messages in thread From: Alex Elder @ 2010-04-30 2:28 UTC (permalink / raw) To: Dave Chinner; +Cc: Christoph Hellwig, xfs On Fri, 2010-04-30 at 11:26 +1000, Dave Chinner wrote: > On Thu, Apr 29, 2010 at 06:46:11AM -0400, Christoph Hellwig wrote: > > Spoken too soon. While this second patch at least compiles on my Debian > > testing system it doesn't link: > > > > /tmp/ccWcHXtY.o: In function `CleanupDbmLookup': /root/xfstests-dev/src/dbtest.c:304: undefined reference to `dbm_close' > > /tmp/ccWcHXtY.o: In function `DoDbmLookup': > > /root/xfstests-dev/src/dbtest.c:220: undefined reference to `dbm_fetch' > > /root/xfstests-dev/src/dbtest.c:264: undefined reference to `dbm_fetch' /tmp/ccWcHXtY.o: In function `InitDbmLookup': > > /root/xfstests-dev/src/dbtest.c:144: undefined reference to `dbm_open' > > /root/xfstests-dev/src/dbtest.c:178: undefined reference to `dbm_store' > > /root/xfstests-dev/src/dbtest.c:191: undefined reference to `dbm_close' > > /root/xfstests-dev/src/dbtest.c:196: undefined reference to `dbm_open' > > collect2: ld returned 1 exit status > > make[2]: *** [dbtest] Error 1 > > make[1]: *** [src] Error 2 > > make: *** [default] Error 2 > > Where is libgdbm-compat on your system? I think we need to do a better job of defining what's required for this stuff--building and running. I know I had trouble the first time I set things up, and now that it works I have no recollection of the stuff that I did. It would be good to make it easier for people to get testing going, we might get more people actually running them in a wider variety of environments. -Alex _______________________________________________ xfs mailing list xfs@oss.sgi.com http://oss.sgi.com/mailman/listinfo/xfs ^ permalink raw reply [flat|nested] 16+ messages in thread
* Re: [PATCH 3/3] xfsqa: build dbtest on debian platforms 2010-04-30 2:28 ` Alex Elder @ 2010-04-30 3:20 ` Eric Sandeen 2010-04-30 8:55 ` Dave Chinner 1 sibling, 0 replies; 16+ messages in thread From: Eric Sandeen @ 2010-04-30 3:20 UTC (permalink / raw) To: aelder; +Cc: Christoph Hellwig, xfs Alex Elder wrote: > On Fri, 2010-04-30 at 11:26 +1000, Dave Chinner wrote: >> On Thu, Apr 29, 2010 at 06:46:11AM -0400, Christoph Hellwig wrote: >>> Spoken too soon. While this second patch at least compiles on my Debian >>> testing system it doesn't link: >>> >>> /tmp/ccWcHXtY.o: In function `CleanupDbmLookup': /root/xfstests-dev/src/dbtest.c:304: undefined reference to `dbm_close' >>> /tmp/ccWcHXtY.o: In function `DoDbmLookup': >>> /root/xfstests-dev/src/dbtest.c:220: undefined reference to `dbm_fetch' >>> /root/xfstests-dev/src/dbtest.c:264: undefined reference to `dbm_fetch' /tmp/ccWcHXtY.o: In function `InitDbmLookup': >>> /root/xfstests-dev/src/dbtest.c:144: undefined reference to `dbm_open' >>> /root/xfstests-dev/src/dbtest.c:178: undefined reference to `dbm_store' >>> /root/xfstests-dev/src/dbtest.c:191: undefined reference to `dbm_close' >>> /root/xfstests-dev/src/dbtest.c:196: undefined reference to `dbm_open' >>> collect2: ld returned 1 exit status >>> make[2]: *** [dbtest] Error 1 >>> make[1]: *** [src] Error 2 >>> make: *** [default] Error 2 >> Where is libgdbm-compat on your system? > > I think we need to do a better job of defining what's required > for this stuff--building and running. I know I had trouble > the first time I set things up, and now that it works I > have no recollection of the stuff that I did. It would be > good to make it easier for people to get testing going, > we might get more people actually running them in a wider > variety of environments. Making missing stuff gracefully handled runtime helps... I also have a hacked up rpm for this, that way package dependencies take care of it all seamlessly: BuildRequires: autoconf, libtool, xfsprogs-devel, e2fsprogs-devel BuildRequires: libacl-devel, libattr-devel, libaio-devel Requires: bash, xfsprogs, xfsdump, perl, acl, attr, bind-utils Requires: bc, indent, quota If I just knew a decent place to drop the stuff that was compliant with fs hierarchy rules, I'd toss it into fedora, and debian might not be far behind ... -Eric > -Alex > > _______________________________________________ > xfs mailing list > xfs@oss.sgi.com > http://oss.sgi.com/mailman/listinfo/xfs > _______________________________________________ xfs mailing list xfs@oss.sgi.com http://oss.sgi.com/mailman/listinfo/xfs ^ permalink raw reply [flat|nested] 16+ messages in thread
* Re: [PATCH 3/3] xfsqa: build dbtest on debian platforms 2010-04-30 2:28 ` Alex Elder 2010-04-30 3:20 ` Eric Sandeen @ 2010-04-30 8:55 ` Dave Chinner 2010-04-30 16:39 ` Christoph Hellwig 1 sibling, 1 reply; 16+ messages in thread From: Dave Chinner @ 2010-04-30 8:55 UTC (permalink / raw) To: Alex Elder; +Cc: Christoph Hellwig, xfs On Thu, Apr 29, 2010 at 09:28:40PM -0500, Alex Elder wrote: > On Fri, 2010-04-30 at 11:26 +1000, Dave Chinner wrote: > > On Thu, Apr 29, 2010 at 06:46:11AM -0400, Christoph Hellwig wrote: > > > Spoken too soon. While this second patch at least compiles on my Debian > > > testing system it doesn't link: > > > > > > /tmp/ccWcHXtY.o: In function `CleanupDbmLookup': /root/xfstests-dev/src/dbtest.c:304: undefined reference to `dbm_close' > > > /tmp/ccWcHXtY.o: In function `DoDbmLookup': > > > /root/xfstests-dev/src/dbtest.c:220: undefined reference to `dbm_fetch' > > > /root/xfstests-dev/src/dbtest.c:264: undefined reference to `dbm_fetch' /tmp/ccWcHXtY.o: In function `InitDbmLookup': > > > /root/xfstests-dev/src/dbtest.c:144: undefined reference to `dbm_open' > > > /root/xfstests-dev/src/dbtest.c:178: undefined reference to `dbm_store' > > > /root/xfstests-dev/src/dbtest.c:191: undefined reference to `dbm_close' > > > /root/xfstests-dev/src/dbtest.c:196: undefined reference to `dbm_open' > > > collect2: ld returned 1 exit status > > > make[2]: *** [dbtest] Error 1 > > > make[1]: *** [src] Error 2 > > > make: *** [default] Error 2 > > > > Where is libgdbm-compat on your system? > > I think we need to do a better job of defining what's required > for this stuff--building and running. autoconf is supposed to handle that. If you don't have a critical package, autoconf will fail and ask you to install it. For non-critical packages or libraries, it just compiles it out. The above error indicates that my autoconf changes are not detecting the libgdbm_compat library correctly (no surprise, I just hacked a hack to make it work on my system) so once that is sorted dbtest won't even be built unless the libraries are installed and detected. FWIW, Christoph, does the problem go away with a 'make distclean; make'? > I know I had trouble the first time I set things up, and now that > it works I have no recollection of the stuff that I did. It would > be good to make it easier for people to get testing going, we > might get more people actually running them in a wider variety of > environments. A real source package for xfstests is the right way to do this, I think. That way installing the package can pull in the correct dependencies before you try to build it. There's only so much we can do if all you do is a git clone to install it... Cheers, Dave. -- Dave Chinner david@fromorbit.com _______________________________________________ xfs mailing list xfs@oss.sgi.com http://oss.sgi.com/mailman/listinfo/xfs ^ permalink raw reply [flat|nested] 16+ messages in thread
* Re: [PATCH 3/3] xfsqa: build dbtest on debian platforms 2010-04-30 8:55 ` Dave Chinner @ 2010-04-30 16:39 ` Christoph Hellwig 2010-04-30 17:24 ` Alex Elder 0 siblings, 1 reply; 16+ messages in thread From: Christoph Hellwig @ 2010-04-30 16:39 UTC (permalink / raw) To: Dave Chinner; +Cc: Christoph Hellwig, xfs, Alex Elder On Fri, Apr 30, 2010 at 06:55:11PM +1000, Dave Chinner wrote: > autoconf is supposed to handle that. If you don't have a critical > package, autoconf will fail and ask you to install it. For > non-critical packages or libraries, it just compiles it out. The > above error indicates that my autoconf changes are not detecting the > libgdbm_compat library correctly (no surprise, I just hacked a hack > to make it work on my system) so once that is sorted dbtest won't > even be built unless the libraries are installed and detected. > > FWIW, Christoph, does the problem go away with a 'make distclean; > make'? Yes, that fixes it and now I can run 010. Thanks! _______________________________________________ xfs mailing list xfs@oss.sgi.com http://oss.sgi.com/mailman/listinfo/xfs ^ permalink raw reply [flat|nested] 16+ messages in thread
* Re: [PATCH 3/3] xfsqa: build dbtest on debian platforms 2010-04-30 16:39 ` Christoph Hellwig @ 2010-04-30 17:24 ` Alex Elder 0 siblings, 0 replies; 16+ messages in thread From: Alex Elder @ 2010-04-30 17:24 UTC (permalink / raw) To: Christoph Hellwig; +Cc: xfs On Fri, 2010-04-30 at 12:39 -0400, Christoph Hellwig wrote: > On Fri, Apr 30, 2010 at 06:55:11PM +1000, Dave Chinner wrote: > > autoconf is supposed to handle that. If you don't have a critical > > package, autoconf will fail and ask you to install it. For > > non-critical packages or libraries, it just compiles it out. The > > above error indicates that my autoconf changes are not detecting the > > libgdbm_compat library correctly (no surprise, I just hacked a hack > > to make it work on my system) so once that is sorted dbtest won't > > even be built unless the libraries are installed and detected. > > > > FWIW, Christoph, does the problem go away with a 'make distclean; > > make'? > > Yes, that fixes it and now I can run 010. > > Thanks! > OK, I'm about to mark the original post "Reviewed". Meanwhile I think we should discuss packing, but I'll start that discussion in a separate message. -Alex _______________________________________________ xfs mailing list xfs@oss.sgi.com http://oss.sgi.com/mailman/listinfo/xfs ^ permalink raw reply [flat|nested] 16+ messages in thread
* Re: [PATCH 3/3] xfsqa: build dbtest on debian platforms 2010-04-29 0:16 ` [PATCH 3/3] xfsqa: build dbtest on debian platforms Dave Chinner 2010-04-29 6:49 ` Dave Chinner @ 2010-04-29 10:20 ` Christoph Hellwig 1 sibling, 0 replies; 16+ messages in thread From: Christoph Hellwig @ 2010-04-29 10:20 UTC (permalink / raw) To: Dave Chinner; +Cc: xfs On Thu, Apr 29, 2010 at 10:16:26AM +1000, Dave Chinner wrote: > Set up autoconf to find the correct headers and compat libraries for > debian squeeze, and massage the includes to ensure the right headers get > included. Also fix a compile warning that was emitted now that it is being > compiled. > > Signed-off-by: Dave Chinner <david@fromorbit.com> Ah, nice. I've been trying to get this working on Debian off and on again for years, but never got this far. Reviewed-by: Christoph Hellwig <hch@lst.de> _______________________________________________ xfs mailing list xfs@oss.sgi.com http://oss.sgi.com/mailman/listinfo/xfs ^ permalink raw reply [flat|nested] 16+ messages in thread
end of thread, other threads:[~2010-04-30 17:24 UTC | newest] Thread overview: 16+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2010-04-29 0:16 [PATCH 0/3] xfstests: miscellaneous patches Dave Chinner 2010-04-29 0:16 ` [PATCH 1/3] xfsqa: clean up 030 repair output Dave Chinner 2010-04-29 10:18 ` Christoph Hellwig 2010-04-29 0:16 ` [PATCH 2/3] xfsqa: keep xfs_fsr output around in test 222 Dave Chinner 2010-04-29 10:19 ` Christoph Hellwig 2010-04-29 0:16 ` [PATCH 3/3] xfsqa: build dbtest on debian platforms Dave Chinner 2010-04-29 6:49 ` Dave Chinner 2010-04-29 10:20 ` Christoph Hellwig 2010-04-29 10:46 ` Christoph Hellwig 2010-04-30 1:26 ` Dave Chinner 2010-04-30 2:28 ` Alex Elder 2010-04-30 3:20 ` Eric Sandeen 2010-04-30 8:55 ` Dave Chinner 2010-04-30 16:39 ` Christoph Hellwig 2010-04-30 17:24 ` Alex Elder 2010-04-29 10:20 ` Christoph Hellwig
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox