libsysio-commit Mailing List for libsysio (Page 44)
Brought to you by:
lward
You can subscribe to this list here.
2003 |
Jan
|
Feb
|
Mar
|
Apr
(25) |
May
(28) |
Jun
(25) |
Jul
(30) |
Aug
(60) |
Sep
(52) |
Oct
(100) |
Nov
(15) |
Dec
(34) |
---|---|---|---|---|---|---|---|---|---|---|---|---|
2004 |
Jan
(89) |
Feb
(48) |
Mar
(22) |
Apr
(59) |
May
(16) |
Jun
(15) |
Jul
(50) |
Aug
(26) |
Sep
(40) |
Oct
(27) |
Nov
(12) |
Dec
|
2005 |
Jan
(24) |
Feb
(11) |
Mar
|
Apr
|
May
(3) |
Jun
(6) |
Jul
|
Aug
(14) |
Sep
(21) |
Oct
(10) |
Nov
|
Dec
|
2006 |
Jan
(8) |
Feb
(5) |
Mar
(2) |
Apr
(6) |
May
(11) |
Jun
(2) |
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
(3) |
2007 |
Jan
(3) |
Feb
(5) |
Mar
(20) |
Apr
(41) |
May
(21) |
Jun
(3) |
Jul
(5) |
Aug
(12) |
Sep
(21) |
Oct
(5) |
Nov
(16) |
Dec
|
2008 |
Jan
|
Feb
(2) |
Mar
(4) |
Apr
(23) |
May
|
Jun
(22) |
Jul
(13) |
Aug
|
Sep
|
Oct
(9) |
Nov
(3) |
Dec
(13) |
2009 |
Jan
(14) |
Feb
(10) |
Mar
(2) |
Apr
(11) |
May
(7) |
Jun
(1) |
Jul
(1) |
Aug
(36) |
Sep
(12) |
Oct
|
Nov
|
Dec
(10) |
2010 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
(1) |
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
2014 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
(1) |
Oct
|
Nov
|
Dec
|
From: Ruth K. <rk...@us...> - 2003-09-05 16:36:26
|
Update of /cvsroot/libsysio/libsysio/drivers In directory sc8-pr-cvs1:/tmp/cvs-serv8570/drivers Modified Files: Tag: RedStorm_merge Makefile.am Added Files: Tag: RedStorm_merge .cvsignore Log Message: merge changes from Mike Levenhagen --- NEW FILE --- Makefile Index: Makefile.am =================================================================== RCS file: /cvsroot/libsysio/libsysio/drivers/Makefile.am,v retrieving revision 1.2 retrieving revision 1.2.10.1 diff -u -w -b -B -p -r1.2 -r1.2.10.1 --- Makefile.am 24 Mar 2003 22:09:03 -0000 1.2 +++ Makefile.am 5 Sep 2003 16:36:16 -0000 1.2.10.1 @@ -11,4 +11,10 @@ else INCORE_DRIVER = endif -SUBDIRS = $(NATIVE_DRIVER) $(INCORE_DRIVER) +if WITH_REDSTORM_DRIVER +REDSTORM_DRIVER = redstorm +else +REDSTORM_DRIVER = +endif + +SUBDIRS = $(NATIVE_DRIVER) $(INCORE_DRIVER) $(REDSTORM_DRIVER) |
From: Ruth K. <rk...@us...> - 2003-09-05 16:36:26
|
Update of /cvsroot/libsysio/libsysio/dev In directory sc8-pr-cvs1:/tmp/cvs-serv8570/dev Added Files: Tag: RedStorm_merge .cvsignore Log Message: merge changes from Mike Levenhagen --- NEW FILE --- Makefile |
From: Ruth K. <rk...@us...> - 2003-09-05 14:36:25
|
Update of /cvsroot/libsysio/libsysio/drivers/redstorm In directory sc8-pr-cvs1:/tmp/cvs-serv14583/redstorm Log Message: Directory /cvsroot/libsysio/libsysio/drivers/redstorm added to the repository --> Using per-directory sticky tag `RedStorm_merge' |
From: Ruth K. <rk...@us...> - 2003-08-28 13:43:15
|
Update of /cvsroot/libsysio/libsysio In directory sc8-pr-cvs1:/tmp/cvs-serv997 Modified Files: Tag: cplant README configure.in Log Message: merge head changes into cplant branch Index: README =================================================================== RCS file: /cvsroot/libsysio/libsysio/README,v retrieving revision 1.2 retrieving revision 1.2.16.1 diff -u -w -b -B -p -r1.2 -r1.2.16.1 --- README 7 Mar 2003 03:31:35 -0000 1.2 +++ README 28 Aug 2003 13:43:09 -0000 1.2.16.1 @@ -17,8 +17,8 @@ Option --with-tests=yes will cause the t to be enabled. This is set by default; Use "no" to disable. Option --with-automount=<automount-file-name> will cause automount support -to be included. Normally, this should be set to ".mount", matching the -documentation. +to be included. If <automount-file-name> is not supplied, a default value +of ".mount" will be used, matching the Lustre documentation. To build: Index: configure.in =================================================================== RCS file: /cvsroot/libsysio/libsysio/configure.in,v retrieving revision 1.8.2.1 retrieving revision 1.8.2.2 diff -u -w -b -B -p -r1.8.2.1 -r1.8.2.2 --- configure.in 20 Aug 2003 21:05:49 -0000 1.8.2.1 +++ configure.in 28 Aug 2003 13:43:09 -0000 1.8.2.2 @@ -20,7 +20,7 @@ AC_HEADER_STAT AC_HEADER_TIME AC_ARG_WITH(native_driver, - [ --with-native-driver build native test driver], + AC_HELP_STRING([--with-native-driver],[build native test driver]), [ case "${withval}" in yes) ;; no) ;; @@ -30,7 +30,7 @@ AC_ARG_WITH(native_driver, AM_CONDITIONAL(WITH_NATIVE_DRIVER, test x$with_native_driver = xyes) AC_ARG_WITH(incore-driver, - [ --with-incore-driver build incore test driver], + AC_HELP_STRING([--with-incore-driver],[build incore test driver]), [ case "${withval}" in yes) ;; no) ;; @@ -40,7 +40,7 @@ AC_ARG_WITH(incore-driver, AM_CONDITIONAL(WITH_INCORE_DRIVER, test x$with_incore_driver = xyes) AC_ARG_WITH(tests, - [ --with-tests build tests], + AC_HELP_STRING([--with-tests],[build tests]), [ case "${withval}" in yes) ;; no) ;; @@ -50,14 +50,18 @@ AC_ARG_WITH(tests, AM_CONDITIONAL(WITH_TESTS, test x$with_tests = xyes) AC_ARG_WITH(automount, - [ --with-automount=[automount-file-name] with automounts], - [ if test x${withval} != x; then + AC_HELP_STRING([--with-automount@<:@=<automount-file-name>@:>@], + [with automounts @<:@<automount-file-name>=.mount@:>@]), + [ if test x${withval} = xyes; then + AUTOMOUNT=-DAUTOMOUNT_FILE_NAME="\\\".mount\\\"" + elif test x${withval} != x; then AUTOMOUNT=-DAUTOMOUNT_FILE_NAME="\\\"${withval}\\\"" fi]) AC_SUBST(AUTOMOUNT) AC_ARG_WITH(stdfd-dev, - [ --with-stdfd-dev build standard file descriptors pseudo-driver], + AC_HELP_STRING([--with-stdfd-dev], + [build standard file descriptors pseudo-driver]), [ case "${withval}" in yes) ;; no) ;; @@ -67,7 +71,7 @@ AC_ARG_WITH(stdfd-dev, AM_CONDITIONAL(WITH_STDFD_DEV, test x$with_stdfd_dev = xyes) AC_ARG_WITH(cplant_yod, - [ --with-cplant-yod build cplant yod I/O driver], + AC_HELP_STRING([--with-cplant-yod],[build cplant yod I/O driver]), [ case "${withval}" in yes) if test x${with_stdfd_dev} != xyes; then with_stdfd_dev=yes @@ -80,7 +84,8 @@ AC_ARG_WITH(cplant_yod, AM_CONDITIONAL(WITH_CPLANT_YOD, test x$with_cplant_yod = xyes) AC_ARG_WITH(cplant_tests, - [ --with-cplant-tests=[cplant build path] build libsysio tests for cplant platform], + AC_HELP_STRING([--with-cplant-tests=<cplant-build-path>], + [build libsysio tests for cplant platform]), [ case "${withval}" in yes) AC_MSG_ERROR(need path to compiler for --with-cplant-tests);; no) with_cplant_tests=no;; |
From: Ruth K. <rk...@us...> - 2003-08-28 13:43:15
|
Update of /cvsroot/libsysio/libsysio/misc In directory sc8-pr-cvs1:/tmp/cvs-serv997/misc Modified Files: Tag: cplant gdb-libsysio Log Message: merge head changes into cplant branch Index: gdb-libsysio =================================================================== RCS file: /cvsroot/libsysio/libsysio/misc/gdb-libsysio,v retrieving revision 1.2 retrieving revision 1.2.16.1 diff -u -w -b -B -p -r1.2 -r1.2.16.1 --- gdb-libsysio 7 Mar 2003 03:31:36 -0000 1.2 +++ gdb-libsysio 28 Aug 2003 13:43:09 -0000 1.2.16.1 @@ -66,21 +66,45 @@ Dump path-base node and it's aliases Usage: x_dump_pbnode <pbnode> end -define x_dump_mounts - set $x_m = mounts.lh_first - while $x_m - printf "MOUNT %p:", $x_m - if $x_m->mnt_root - printf "\n root " - x_dump_pbnode $x_m->mnt_root->p_base - else - printf "\n" - end - if $x_m->mnt_covers - printf " covers " - x_dump_pbnode $x_m->mnt_covers->p_base +define __x_dump_pnode + printf "%spnode %p, mount %p, base: ", $arg0, $arg1, $arg1->p_mount + x_dump_pbnode $arg1->p_base +end + +define x_dump_pnode + __x_dump_pnode "" $arg0 +end +document x_dump_pnode +Dump path node information + +Usage: x_dump_pnode <pnode> +end + +define x_dump_mount + printf "MOUNT %p: root pnode %p, covers %p\n", \ + $arg0, $arg0->mnt_root, $arg0->mnt_covers + set $_x_dump_mount_var_pno = _sysio_pnodes->tqh_first + while $_x_dump_mount_var_pno != 0 +printf "%p, %p\n", $_x_dump_mount_var_pno, $arg0 + if $_x_dump_mount_var_pno->p_mount == $arg0 + __x_dump_pnode " " $_x_dump_mount_var_pno + end + set $_x_dump_mount_var_pno = \ + $_x_dump_mount_var_pno->p_nodes.tqe_next end - set $x_m = $x_m->mnt_link.le_next +end +document x_dump_mount +Dump single mount record information + +Usage: x_dump_mount <mnt> +end + +define x_dump_mounts + set $__x_dump_mounts_var_mnt = mounts.lh_first + while $__x_dump_mounts_var_mnt + x_dump_mount $__x_dump_mounts_var_mnt + set $__x_dump_mounts_var_mnt = \ + $__x_dump_mounts_var_mnt->mnt_link.le_next end end document x_dump_mounts @@ -89,3 +113,15 @@ Dump the contents of the libsysio mount Usage: x_dump_mounts end +define x_dump_pnodes + set $_x_dump_pnodes_var_pno = _sysio_pnodes.tqh_first + while $_x_dump_pnodes_var_pno + x_dump_pnode $_x_dump_pnodes_var_pno + set $_x_dump_pnodes_var_pno = \ + $_x_dump_pnodes_var_pno->p_nodes.tqe_next + end +end + +br _sysio_unmount_all +run -r /tmp/lee foo bar +x_dump_pnodes |
From: Ruth K. <rk...@us...> - 2003-08-28 13:43:14
|
Update of /cvsroot/libsysio/libsysio/include In directory sc8-pr-cvs1:/tmp/cvs-serv997/include Modified Files: Tag: cplant inode.h Log Message: merge head changes into cplant branch Index: inode.h =================================================================== RCS file: /cvsroot/libsysio/libsysio/include/inode.h,v retrieving revision 1.7 retrieving revision 1.7.2.1 diff -u -w -b -B -p -r1.7 -r1.7.2.1 --- inode.h 25 Jul 2003 14:45:34 -0000 1.7 +++ inode.h 28 Aug 2003 13:43:09 -0000 1.7.2.1 @@ -128,8 +128,9 @@ struct inode_ops { */ struct inode { LIST_ENTRY(inode) i_link; /* FS i-nodes link */ - unsigned i_immune : 1; /* immune from GC */ - unsigned i_zombie : 1; /* stale inode */ + unsigned + i_immune : 1, /* immune from GC */ + i_zombie : 1; /* stale inode */ unsigned i_ref; /* soft ref counter */ ino_t i_num; /* i-num (deprecate!) */ mode_t i_mode; /* mode (see stat.h) */ |
From: Ruth K. <rk...@us...> - 2003-08-28 13:39:28
|
Update of /cvsroot/libsysio/libsysio/tests In directory sc8-pr-cvs1:/tmp/cvs-serv32567 Modified Files: Tag: cplant test_copy.c Log Message: merge head changes into cplant branch Index: test_copy.c =================================================================== RCS file: /cvsroot/libsysio/libsysio/tests/test_copy.c,v retrieving revision 1.6 retrieving revision 1.6.2.1 diff -u -w -b -B -p -r1.6 -r1.6.2.1 --- test_copy.c 14 Aug 2003 18:39:33 -0000 1.6 +++ test_copy.c 28 Aug 2003 13:39:24 -0000 1.6.2.1 @@ -90,7 +90,7 @@ main(int argc, char * const argv[]) #ifdef AUTOMOUNT_FILE_NAME "a" #endif - "i:m:")) != -1) + "r:m:")) != -1) switch (i) { #ifdef AUTOMOUNT_FILE_NAME |
From: Sonja T. <so...@us...> - 2003-08-28 13:38:45
|
Update of /cvsroot/libsysio/libsysio/tests In directory sc8-pr-cvs1:/tmp/cvs-serv32173/libsysio/tests Modified Files: Tag: cplant test_all.pl test_copy.pl test_getcwd.pl test_list.pl test_path.pl test_stats.pl test_stdfd.pl Log Message: Minor bug fixes for tests Index: test_all.pl =================================================================== RCS file: /cvsroot/libsysio/libsysio/tests/test_all.pl,v retrieving revision 1.3.4.1 retrieving revision 1.3.4.2 diff -u -w -b -B -p -r1.3.4.1 -r1.3.4.2 --- test_all.pl 21 Aug 2003 17:00:16 -0000 1.3.4.1 +++ test_all.pl 28 Aug 2003 13:38:08 -0000 1.3.4.2 @@ -6,6 +6,7 @@ # use strict; +use Cwd 'abs_path'; my $alpha_arg = ""; my $is_broke = 1; # Don't test certain areas known to not work on Cplant @@ -41,7 +43,7 @@ system("cp $testdir/helper.pm $cwd/tmp_d if (($alpha_arg eq "") || ($is_broke == 0)) { # Test getdirentries - $res = `perl -I$testdir $testdir/test_list.pl $alpha_arg $cwd/tmp_dir`; + $res = `perl $testdir/test_list.pl $alpha_arg $cwd/tmp_dir`; chop($res); if ($res ne "list test successful") { print "Basic getdirentries test failed with message: $res\n"; @@ -53,8 +55,9 @@ if (($alpha_arg eq "") || ($is_broke == } # Test path -my @resarr = `perl -I$testdir $testdir/test_path.pl $alpha_arg $testdir $cwd $cwd/tmp_dir`; -$res = $testdir.": d\n"; +my $path1 = abs_path($testdir); +my @resarr = `perl $testdir/test_path.pl $alpha_arg $path1 $cwd $cwd/tmp_dir`; +$res = $path1.": d\n"; if ($resarr[0] ne $res) { print "path test returned $resarr[0] instead of $res\n"; $failures++; @@ -77,7 +80,7 @@ if ($resarr[0] ne $res) { if (($alpha_arg eq "") || ($is_broke == 0)) { # Test mount - $res = `perl -I$testdir $testdir/test_list.pl $alpha_arg -m native:$testdir $cwd/tmp_dir/test2`; + $res = `perl $testdir/test_list.pl $alpha_arg -m native:$testdir $cwd/tmp_dir/test2`; chop($res); if ($res ne "list test successful") { print "Mount test failed with message: $res\n"; @@ -87,8 +90,9 @@ if (($alpha_arg eq "") || ($is_broke == print "test_mount finished successfully\n"; } +} # Test getcwd - $res = `perl -I$testdir $testdir/test_getcwd.pl $alpha_arg $cwd/tmp_dir/test1`; +$res = `perl $testdir/test_getcwd.pl $alpha_arg $cwd/tmp_dir/test1`; chop($res); if ($res ne "getcwd test successful") { print "getcwd test failed with message: $res\n"; @@ -97,10 +101,9 @@ if (($alpha_arg eq "") || ($is_broke == $success++; print "test_getcwd finished successfully\n"; } -} # Test copy -$res = `perl -I$testdir $testdir/test_copy.pl $alpha_arg $cwd/tmp_dir/test1/helper.pm $cwd/tmp_dir/helper.pm`; +$res = `perl $testdir/test_copy.pl $alpha_arg $cwd/tmp_dir/test1/helper.pm $cwd/tmp_dir/helper.pm`; chop($res); if ($res ne "copy test successful") { print "copy test failed with message: $res\n"; @@ -111,7 +114,7 @@ if ($res ne "copy test successful") { } # Test stats -$res = `perl -I$testdir $testdir/test_stats.pl $alpha_arg $cwd/tmp_dir/helper.pm`; +$res = `perl $testdir/test_stats.pl $alpha_arg $cwd/tmp_dir/helper.pm`; chop($res); if ($res ne "stat test successful") { print "stat test failed with message: $res\n"; @@ -122,7 +125,7 @@ if ($res ne "stat test successful") { } # Test stdfd -$res = `perl -I$testdir $testdir/test_stdfd.pl $alpha_arg foo_dir`; +$res = `perl $testdir/test_stdfd.pl $alpha_arg foo_dir`; chop($res); if ($res ne "test_stdfd successful") { print "stdfd test failed with message: $res\n"; Index: test_copy.pl =================================================================== RCS file: /cvsroot/libsysio/libsysio/tests/test_copy.pl,v retrieving revision 1.2.6.1 retrieving revision 1.2.6.2 diff -u -w -b -B -p -r1.2.6.1 -r1.2.6.2 --- test_copy.pl 21 Aug 2003 17:00:17 -0000 1.2.6.1 +++ test_copy.pl 28 Aug 2003 13:38:08 -0000 1.2.6.2 @@ -8,6 +8,8 @@ use IPC::Open2; use strict; +use FindBin; +use lib "$FindBin::Bin"; use helper; sub usage Index: test_getcwd.pl =================================================================== RCS file: /cvsroot/libsysio/libsysio/tests/test_getcwd.pl,v retrieving revision 1.2.6.1 retrieving revision 1.2.6.2 diff -u -w -b -B -p -r1.2.6.1 -r1.2.6.2 --- test_getcwd.pl 21 Aug 2003 17:00:17 -0000 1.2.6.1 +++ test_getcwd.pl 28 Aug 2003 13:38:08 -0000 1.2.6.2 @@ -3,6 +3,8 @@ use IPC::Open2; use strict; +use FindBin; +use lib "$FindBin::Bin"; use helper; sub usage Index: test_list.pl =================================================================== RCS file: /cvsroot/libsysio/libsysio/tests/test_list.pl,v retrieving revision 1.2.6.1 retrieving revision 1.2.6.2 diff -u -w -b -B -p -r1.2.6.1 -r1.2.6.2 --- test_list.pl 21 Aug 2003 17:00:17 -0000 1.2.6.1 +++ test_list.pl 28 Aug 2003 13:38:08 -0000 1.2.6.2 @@ -10,6 +10,9 @@ use IPC::Open2; use strict; + +use FindBin; +use lib "$FindBin::Bin"; use helper; sub usage Index: test_path.pl =================================================================== RCS file: /cvsroot/libsysio/libsysio/tests/test_path.pl,v retrieving revision 1.2.6.2 retrieving revision 1.2.6.3 diff -u -w -b -B -p -r1.2.6.2 -r1.2.6.3 --- test_path.pl 21 Aug 2003 17:00:18 -0000 1.2.6.2 +++ test_path.pl 28 Aug 2003 13:38:08 -0000 1.2.6.3 @@ -8,6 +8,8 @@ use IPC::Open2; use strict; +use FindBin; +use lib "$FindBin::Bin"; use helper; use POSIX; Index: test_stats.pl =================================================================== RCS file: /cvsroot/libsysio/libsysio/tests/test_stats.pl,v retrieving revision 1.2.6.1 retrieving revision 1.2.6.2 diff -u -w -b -B -p -r1.2.6.1 -r1.2.6.2 --- test_stats.pl 21 Aug 2003 17:00:18 -0000 1.2.6.1 +++ test_stats.pl 28 Aug 2003 13:38:08 -0000 1.2.6.2 @@ -11,6 +11,8 @@ use IPC::Open2; use strict; +use FindBin; +use lib "$FindBin::Bin"; use helper; sub usage Index: test_stdfd.pl =================================================================== RCS file: /cvsroot/libsysio/libsysio/tests/test_stdfd.pl,v retrieving revision 1.2.6.1 retrieving revision 1.2.6.2 diff -u -w -b -B -p -r1.2.6.1 -r1.2.6.2 --- test_stdfd.pl 21 Aug 2003 17:00:18 -0000 1.2.6.1 +++ test_stdfd.pl 28 Aug 2003 13:38:08 -0000 1.2.6.2 @@ -7,6 +7,8 @@ use IPC::Open2; use strict; +use FindBin; +use lib "$FindBin::Bin"; use helper; sub usage @@ -134,13 +136,12 @@ $testdir =~ s/\/\w+.pl$//; } - my $start = 0; # Get a stat buffer my $cmd = '$buf = ALLOC ( $size = CALL sizeof stat )'."\n"; helper::send_cmd($cmdfh, $outfh, "alloc", $cmd); - + if ($is_alpha == 0) { # Make the test directory $cmd = "CALL mkdir $dirname 0777\n"; helper::send_cmd($cmdfh, $outfh, "mkdir", $cmd); @@ -162,7 +163,7 @@ $testdir =~ s/\/\w+.pl$//; do_open($cmdfh, $outfh, "stdin", "O_RDONLY", 0); do_open($cmdfh, $outfh, "stdout", "O_WRONLY", 1); do_open($cmdfh, $outfh, "stderr", "O_WRONLY", 2); - + } #helper::send_cmd($cmdfh, $outfh, "debug", "CALL debug 5\n"); # Read from stdin, write to stdout and stderr |
From: Lee W. <lw...@us...> - 2003-08-26 19:38:01
|
Update of /cvsroot/libsysio/libsysio/misc In directory sc8-pr-cvs1:/tmp/cvs-serv16460 Modified Files: gdb-libsysio Log Message: Added x_dump_pnode, x_dump_pnodes, and x_dump_mount. Modified x_dump_mounts to dump all the pnode aliases on the mount as well. Index: gdb-libsysio =================================================================== RCS file: /cvsroot/libsysio/libsysio/misc/gdb-libsysio,v retrieving revision 1.2 retrieving revision 1.3 diff -u -w -b -B -p -r1.2 -r1.3 --- gdb-libsysio 7 Mar 2003 03:31:36 -0000 1.2 +++ gdb-libsysio 26 Aug 2003 19:37:55 -0000 1.3 @@ -66,21 +66,45 @@ Dump path-base node and it's aliases Usage: x_dump_pbnode <pbnode> end -define x_dump_mounts - set $x_m = mounts.lh_first - while $x_m - printf "MOUNT %p:", $x_m - if $x_m->mnt_root - printf "\n root " - x_dump_pbnode $x_m->mnt_root->p_base - else - printf "\n" - end - if $x_m->mnt_covers - printf " covers " - x_dump_pbnode $x_m->mnt_covers->p_base +define __x_dump_pnode + printf "%spnode %p, mount %p, base: ", $arg0, $arg1, $arg1->p_mount + x_dump_pbnode $arg1->p_base +end + +define x_dump_pnode + __x_dump_pnode "" $arg0 +end +document x_dump_pnode +Dump path node information + +Usage: x_dump_pnode <pnode> +end + +define x_dump_mount + printf "MOUNT %p: root pnode %p, covers %p\n", \ + $arg0, $arg0->mnt_root, $arg0->mnt_covers + set $_x_dump_mount_var_pno = _sysio_pnodes->tqh_first + while $_x_dump_mount_var_pno != 0 +printf "%p, %p\n", $_x_dump_mount_var_pno, $arg0 + if $_x_dump_mount_var_pno->p_mount == $arg0 + __x_dump_pnode " " $_x_dump_mount_var_pno + end + set $_x_dump_mount_var_pno = \ + $_x_dump_mount_var_pno->p_nodes.tqe_next end - set $x_m = $x_m->mnt_link.le_next +end +document x_dump_mount +Dump single mount record information + +Usage: x_dump_mount <mnt> +end + +define x_dump_mounts + set $__x_dump_mounts_var_mnt = mounts.lh_first + while $__x_dump_mounts_var_mnt + x_dump_mount $__x_dump_mounts_var_mnt + set $__x_dump_mounts_var_mnt = \ + $__x_dump_mounts_var_mnt->mnt_link.le_next end end document x_dump_mounts @@ -89,3 +113,15 @@ Dump the contents of the libsysio mount Usage: x_dump_mounts end +define x_dump_pnodes + set $_x_dump_pnodes_var_pno = _sysio_pnodes.tqh_first + while $_x_dump_pnodes_var_pno + x_dump_pnode $_x_dump_pnodes_var_pno + set $_x_dump_pnodes_var_pno = \ + $_x_dump_pnodes_var_pno->p_nodes.tqe_next + end +end + +br _sysio_unmount_all +run -r /tmp/lee foo bar +x_dump_pnodes |
From: Ruth K. <rk...@us...> - 2003-08-26 18:45:45
|
Update of /cvsroot/libsysio/libsysio/src In directory sc8-pr-cvs1:/tmp/cvs-serv27826 Modified Files: Tag: cplant chdir.c inode.c mount.c Log Message: merge getcwd fix into cplant branch Index: chdir.c =================================================================== RCS file: /cvsroot/libsysio/libsysio/src/chdir.c,v retrieving revision 1.4 retrieving revision 1.4.2.1 diff -u -w -b -B -p -r1.4 -r1.4.2.1 --- chdir.c 14 Aug 2003 18:39:33 -0000 1.4 +++ chdir.c 26 Aug 2003 17:21:39 -0000 1.4.2.1 @@ -98,62 +98,6 @@ chdir(const char *path) return 0; } -char * -getwd(char *buf) -{ - size_t len, n; - struct pnode *tmp; - char *cp; - - /* - * First pass: Traverse to the root of the sub-tree, remembering - * lengths. - */ - len = 0; - tmp = _sysio_cwd; - do { - n = tmp->p_base->pb_name.len; - len += tmp->p_base->pb_name.len; - if (n) - len++; - tmp = tmp->p_parent; - /* - * Traverse mount points. - */ - while (tmp->p_mount->mnt_root == tmp && - tmp != tmp->p_mount->mnt_covers) - tmp = tmp->p_mount->mnt_root; - } while (tmp != tmp->p_parent); - if (!len) - len++; - /* - * Fill in the path buffer -- Backwards, since we're starting - * from the end. - */ - cp = buf; - *cp = PATH_SEPARATOR; - cp += len; - *cp = '\0'; /* NUL term */ - tmp = _sysio_cwd; - do { - cp -= tmp->p_base->pb_name.len; - n = tmp->p_base->pb_name.len; - if (n) { - (void )strncpy(cp, tmp->p_base->pb_name.name, n); - *--cp = PATH_SEPARATOR; - } - tmp = tmp->p_parent; - /* - * Traverse mount points. - */ - while (tmp->p_mount->mnt_root == tmp && - tmp != tmp->p_mount->mnt_covers) - tmp = tmp->p_mount->mnt_root; - } while (tmp != tmp->p_parent); - - return buf; -} - /* * Return path tracked by the path ancestor chain. * @@ -178,12 +122,6 @@ _sysio_p_path(struct pnode *pno, char ** n = 0; do { /* - * Traverse back through mounts. - */ - while (pno->p_mount->mnt_root == pno && - pno != pno->p_mount->mnt_covers) - pno = pno->p_mount->mnt_root; - /* * Add length of this component to running sum and * account for this vertex. */ @@ -217,12 +155,6 @@ _sysio_p_path(struct pnode *pno, char ** *cp = '\0'; /* NUL terminate */ do { /* - * Traverse back through mounts. - */ - while (pno->p_mount->mnt_root == pno && - pno != pno->p_mount->mnt_covers) - pno = pno->p_mount->mnt_root; - /* * Add component and separator. */ cp -= pno->p_base->pb_name.len; @@ -257,3 +189,14 @@ __getcwd(char *buf, size_t size) } #endif +#ifdef PATH_MAX +char * +getwd(char *buf) +{ + + if (!buf) + return -EFAULT; + + return getcwd(buf, PATH_MAX); +} +#endif Index: inode.c =================================================================== RCS file: /cvsroot/libsysio/libsysio/src/inode.c,v retrieving revision 1.8 retrieving revision 1.8.2.1 diff -u -w -b -B -p -r1.8 -r1.8.2.1 --- inode.c 25 Jul 2003 14:45:34 -0000 1.8 +++ inode.c 26 Aug 2003 17:21:39 -0000 1.8.2.1 @@ -497,43 +497,19 @@ _sysio_p_gone(struct pnode *pno) int _sysio_p_validate(struct pnode *pno, struct intent *intnt, const char *path) { - struct pnode *parent; - int err; struct inode *ino; + struct pnode_base *rootpb; + int err; - err = 0; - - /* - * Make sure we can use the parent. We don't validate that - * unless we have to. Beware of this! It's assuming the caller - * recently revalidated. Namei will do this for instance. - */ - parent = pno->p_parent; - if (!parent->p_base->pb_ino) { - err = _sysio_p_validate(parent, NULL, NULL); - if (err) { + ino = pno->p_base->pb_ino; /* - * I really, really want to smash the association - * of the passed path node with it's i-node. Can't - * do it, though, since at least one FS driver can - * still accomplish IO accesses to the currently - * held i-node. For now, the driver needs to - * record that the i-node has become (semi) invalid - * and return appropriate errors itself. - * - * We *might* be able to do this, now, with the - * recent changes to the open file table. Must check - * on it. It is so annoying to have these half - * dead i-nodes hanging around. + * An invalid pnode will not have an associated inode. We'll use + * the FS root inode, then -- It *must* be valid. */ - return err; - } - } - - ino = pno->p_base->pb_ino; - if (!err) + rootpb = pno->p_mount->mnt_root->p_base; + assert(rootpb->pb_ino); err = - parent->p_base->pb_ino->i_ops.inop_lookup(pno, + rootpb->pb_ino->i_ops.inop_lookup(pno, &ino, intnt, path); Index: mount.c =================================================================== RCS file: /cvsroot/libsysio/libsysio/src/mount.c,v retrieving revision 1.5 retrieving revision 1.5.8.1 diff -u -w -b -B -p -r1.5 -r1.5.8.1 --- mount.c 18 Apr 2003 20:24:05 -0000 1.5 +++ mount.c 26 Aug 2003 17:21:39 -0000 1.5.8.1 @@ -106,8 +106,8 @@ _sysio_do_mount(struct filesys *fs, struct inode *ino; /* - * It's really poor form to allow the new root to be - * descendant of the pnode being covered.the one being covered. + * It's really poor form to allow the new root to be a + * descendant of the pnode being covered. */ if (tocover) { struct pnode_base *pb; @@ -142,7 +142,8 @@ _sysio_do_mount(struct filesys *fs, /* * Get alias for the new root. */ - mnt->mnt_root = _sysio_p_new_alias(NULL, rootpb, mnt); + mnt->mnt_root = + _sysio_p_new_alias(tocover ? tocover->p_parent : NULL, rootpb, mnt); if (!mnt->mnt_root) { err = -ENOMEM; goto error; @@ -541,11 +542,12 @@ parse_opts(char *opts, unsigned *flagsp) *dst++ = *src++; while (src != cp); } - *dst = '\0'; if (!*src) break; + *dst = '\0'; src++; /* skip comma */ } + *dst = '\0'; *flagsp = flags; return opts; |
From: Lee W. <lw...@us...> - 2003-08-26 15:54:04
|
Update of /cvsroot/libsysio/libsysio/src In directory sc8-pr-cvs1:/tmp/cvs-serv10929/src Modified Files: chdir.c inode.c mount.c Log Message: Fixed the bug in get{c}wd where names of sub-mounts were ommitted from the returned string. Path alias nodes now have their parent pointing at the parent of the bottom-most, covered node. No need to look for mount-point crossing when ascending the tree. Index: chdir.c =================================================================== RCS file: /cvsroot/libsysio/libsysio/src/chdir.c,v retrieving revision 1.4 retrieving revision 1.5 diff -u -w -b -B -p -r1.4 -r1.5 --- chdir.c 14 Aug 2003 18:39:33 -0000 1.4 +++ chdir.c 26 Aug 2003 15:53:59 -0000 1.5 @@ -98,62 +98,6 @@ chdir(const char *path) return 0; } -char * -getwd(char *buf) -{ - size_t len, n; - struct pnode *tmp; - char *cp; - - /* - * First pass: Traverse to the root of the sub-tree, remembering - * lengths. - */ - len = 0; - tmp = _sysio_cwd; - do { - n = tmp->p_base->pb_name.len; - len += tmp->p_base->pb_name.len; - if (n) - len++; - tmp = tmp->p_parent; - /* - * Traverse mount points. - */ - while (tmp->p_mount->mnt_root == tmp && - tmp != tmp->p_mount->mnt_covers) - tmp = tmp->p_mount->mnt_root; - } while (tmp != tmp->p_parent); - if (!len) - len++; - /* - * Fill in the path buffer -- Backwards, since we're starting - * from the end. - */ - cp = buf; - *cp = PATH_SEPARATOR; - cp += len; - *cp = '\0'; /* NUL term */ - tmp = _sysio_cwd; - do { - cp -= tmp->p_base->pb_name.len; - n = tmp->p_base->pb_name.len; - if (n) { - (void )strncpy(cp, tmp->p_base->pb_name.name, n); - *--cp = PATH_SEPARATOR; - } - tmp = tmp->p_parent; - /* - * Traverse mount points. - */ - while (tmp->p_mount->mnt_root == tmp && - tmp != tmp->p_mount->mnt_covers) - tmp = tmp->p_mount->mnt_root; - } while (tmp != tmp->p_parent); - - return buf; -} - /* * Return path tracked by the path ancestor chain. * @@ -178,12 +122,6 @@ _sysio_p_path(struct pnode *pno, char ** n = 0; do { /* - * Traverse back through mounts. - */ - while (pno->p_mount->mnt_root == pno && - pno != pno->p_mount->mnt_covers) - pno = pno->p_mount->mnt_root; - /* * Add length of this component to running sum and * account for this vertex. */ @@ -217,12 +155,6 @@ _sysio_p_path(struct pnode *pno, char ** *cp = '\0'; /* NUL terminate */ do { /* - * Traverse back through mounts. - */ - while (pno->p_mount->mnt_root == pno && - pno != pno->p_mount->mnt_covers) - pno = pno->p_mount->mnt_root; - /* * Add component and separator. */ cp -= pno->p_base->pb_name.len; @@ -257,3 +189,14 @@ __getcwd(char *buf, size_t size) } #endif +#ifdef PATH_MAX +char * +getwd(char *buf) +{ + + if (!buf) + return -EFAULT; + + return getcwd(buf, PATH_MAX); +} +#endif Index: inode.c =================================================================== RCS file: /cvsroot/libsysio/libsysio/src/inode.c,v retrieving revision 1.8 retrieving revision 1.9 diff -u -w -b -B -p -r1.8 -r1.9 --- inode.c 25 Jul 2003 14:45:34 -0000 1.8 +++ inode.c 26 Aug 2003 15:53:59 -0000 1.9 @@ -497,43 +497,19 @@ _sysio_p_gone(struct pnode *pno) int _sysio_p_validate(struct pnode *pno, struct intent *intnt, const char *path) { - struct pnode *parent; - int err; struct inode *ino; + struct pnode_base *rootpb; + int err; - err = 0; - - /* - * Make sure we can use the parent. We don't validate that - * unless we have to. Beware of this! It's assuming the caller - * recently revalidated. Namei will do this for instance. - */ - parent = pno->p_parent; - if (!parent->p_base->pb_ino) { - err = _sysio_p_validate(parent, NULL, NULL); - if (err) { + ino = pno->p_base->pb_ino; /* - * I really, really want to smash the association - * of the passed path node with it's i-node. Can't - * do it, though, since at least one FS driver can - * still accomplish IO accesses to the currently - * held i-node. For now, the driver needs to - * record that the i-node has become (semi) invalid - * and return appropriate errors itself. - * - * We *might* be able to do this, now, with the - * recent changes to the open file table. Must check - * on it. It is so annoying to have these half - * dead i-nodes hanging around. + * An invalid pnode will not have an associated inode. We'll use + * the FS root inode, then -- It *must* be valid. */ - return err; - } - } - - ino = pno->p_base->pb_ino; - if (!err) + rootpb = pno->p_mount->mnt_root->p_base; + assert(rootpb->pb_ino); err = - parent->p_base->pb_ino->i_ops.inop_lookup(pno, + rootpb->pb_ino->i_ops.inop_lookup(pno, &ino, intnt, path); Index: mount.c =================================================================== RCS file: /cvsroot/libsysio/libsysio/src/mount.c,v retrieving revision 1.6 retrieving revision 1.7 diff -u -w -b -B -p -r1.6 -r1.7 --- mount.c 26 Aug 2003 13:17:20 -0000 1.6 +++ mount.c 26 Aug 2003 15:53:59 -0000 1.7 @@ -106,8 +106,8 @@ _sysio_do_mount(struct filesys *fs, struct inode *ino; /* - * It's really poor form to allow the new root to be - * descendant of the pnode being covered.the one being covered. + * It's really poor form to allow the new root to be a + * descendant of the pnode being covered. */ if (tocover) { struct pnode_base *pb; @@ -142,7 +142,8 @@ _sysio_do_mount(struct filesys *fs, /* * Get alias for the new root. */ - mnt->mnt_root = _sysio_p_new_alias(NULL, rootpb, mnt); + mnt->mnt_root = + _sysio_p_new_alias(tocover ? tocover->p_parent : NULL, rootpb, mnt); if (!mnt->mnt_root) { err = -ENOMEM; goto error; |
From: Lee W. <lw...@us...> - 2003-08-26 13:17:25
|
Update of /cvsroot/libsysio/libsysio/src In directory sc8-pr-cvs1:/tmp/cvs-serv16025 Modified Files: mount.c Log Message: Fix for mount options processing from Jim Schutt: This patch fixes a buglet in options processing. If the current code parses an option string where the first option is a file-system specific option, it will copy that option and return without processing any more options. This happens since under these conditions, src and dst match at least up to the end of the first option, so *dst = '\0' also terminates the source string, and the loop exits early. Index: mount.c =================================================================== RCS file: /cvsroot/libsysio/libsysio/src/mount.c,v retrieving revision 1.5 retrieving revision 1.6 diff -u -w -b -B -p -r1.5 -r1.6 --- mount.c 18 Apr 2003 20:24:05 -0000 1.5 +++ mount.c 26 Aug 2003 13:17:20 -0000 1.6 @@ -541,11 +541,12 @@ parse_opts(char *opts, unsigned *flagsp) *dst++ = *src++; while (src != cp); } - *dst = '\0'; if (!*src) break; + *dst = '\0'; src++; /* skip comma */ } + *dst = '\0'; *flagsp = flags; return opts; |
From: Mei <me...@us...> - 2003-08-22 15:12:27
|
Update of /cvsroot/libsysio/libsysio/src In directory sc8-pr-cvs1:/tmp/cvs-serv15257/src Modified Files: Tag: b_lustre init.c Log Message: remove stdfs/dev part for cygwin Index: init.c =================================================================== RCS file: /cvsroot/libsysio/libsysio/src/init.c,v retrieving revision 1.3.4.1 retrieving revision 1.3.4.2 diff -u -w -b -B -p -r1.3.4.1 -r1.3.4.2 --- init.c 29 Jun 2003 10:15:32 -0000 1.3.4.1 +++ init.c 21 Aug 2003 07:40:43 -0000 1.3.4.2 @@ -78,6 +78,7 @@ _sysio_init() if (err) goto error; +#ifndef __CYGWIN__ err = _sysio_dev_init(); if (err) goto error; @@ -85,6 +86,7 @@ _sysio_init() err = _sysio_stdfd_init(); if (err) goto error; +#endif #endif goto out; |
From: Lee W. <lw...@us...> - 2003-08-22 06:18:59
|
Update of /cvsroot/libsysio/libsysio In directory sc8-pr-cvs1:/tmp/cvs-serv14168 Modified Files: README configure.in Log Message: Configure related changes from Jim Schutt: 1) uses AC_HELP_STRING() to make the help strings look pretty 2) adds a default value of .mount to the option --with-automount. Index: README =================================================================== RCS file: /cvsroot/libsysio/libsysio/README,v retrieving revision 1.2 retrieving revision 1.3 diff -u -w -b -B -p -r1.2 -r1.3 --- README 7 Mar 2003 03:31:35 -0000 1.2 +++ README 21 Aug 2003 23:36:09 -0000 1.3 @@ -17,8 +17,8 @@ Option --with-tests=yes will cause the t to be enabled. This is set by default; Use "no" to disable. Option --with-automount=<automount-file-name> will cause automount support -to be included. Normally, this should be set to ".mount", matching the -documentation. +to be included. If <automount-file-name> is not supplied, a default value +of ".mount" will be used, matching the Lustre documentation. To build: Index: configure.in =================================================================== RCS file: /cvsroot/libsysio/libsysio/configure.in,v retrieving revision 1.8 retrieving revision 1.9 diff -u -w -b -B -p -r1.8 -r1.9 --- configure.in 18 Aug 2003 15:52:20 -0000 1.8 +++ configure.in 21 Aug 2003 23:36:09 -0000 1.9 @@ -20,7 +20,7 @@ AC_HEADER_STAT AC_HEADER_TIME AC_ARG_WITH(native_driver, - [ --with-native-driver build native test driver], + AC_HELP_STRING([--with-native-driver],[build native test driver]), [ case "${withval}" in yes) ;; no) ;; @@ -30,7 +30,7 @@ AC_ARG_WITH(native_driver, AM_CONDITIONAL(WITH_NATIVE_DRIVER, test x$with_native_driver = xyes) AC_ARG_WITH(incore-driver, - [ --with-incore-driver build incore test driver], + AC_HELP_STRING([--with-incore-driver],[build incore test driver]), [ case "${withval}" in yes) ;; no) ;; @@ -40,7 +40,7 @@ AC_ARG_WITH(incore-driver, AM_CONDITIONAL(WITH_INCORE_DRIVER, test x$with_incore_driver = xyes) AC_ARG_WITH(tests, - [ --with-tests build tests], + AC_HELP_STRING([--with-tests],[build tests]), [ case "${withval}" in yes) ;; no) ;; @@ -50,14 +50,18 @@ AC_ARG_WITH(tests, AM_CONDITIONAL(WITH_TESTS, test x$with_tests = xyes) AC_ARG_WITH(automount, - [ --with-automount=[automount-file-name] with automounts], - [ if test x${withval} != x; then + AC_HELP_STRING([--with-automount@<:@=<automount-file-name>@:>@], + [with automounts @<:@<automount-file-name>=.mount@:>@]), + [ if test x${withval} = xyes; then + AUTOMOUNT=-DAUTOMOUNT_FILE_NAME="\\\".mount\\\"" + elif test x${withval} != x; then AUTOMOUNT=-DAUTOMOUNT_FILE_NAME="\\\"${withval}\\\"" fi]) AC_SUBST(AUTOMOUNT) AC_ARG_WITH(stdfd-dev, - [ --with-stdfd-dev build standard file descriptors pseudo-driver], + AC_HELP_STRING([--with-stdfd-dev], + [build standard file descriptors pseudo-driver]), [ case "${withval}" in yes) ;; no) ;; @@ -67,7 +71,7 @@ AC_ARG_WITH(stdfd-dev, AM_CONDITIONAL(WITH_STDFD_DEV, test x$with_stdfd_dev = xyes) AC_ARG_WITH(cplant_yod, - [ --with-cplant-yod build cplant yod I/O driver], + AC_HELP_STRING([--with-cplant-yod],[build cplant yod I/O driver]), [ case "${withval}" in yes) if test x${with_stdfd_dev} != xyes; then with_stdfd_dev=yes @@ -80,7 +84,8 @@ AC_ARG_WITH(cplant_yod, AM_CONDITIONAL(WITH_CPLANT_YOD, test x$with_cplant_yod = xyes) AC_ARG_WITH(cplant_tests, - [ --with-cplant-tests=[cplant build path] build libsysio tests for cplant platform], + AC_HELP_STRING([--with-cplant-tests=<cplant-build-path>], + [build libsysio tests for cplant platform]), [ case "${withval}" in yes) AC_MSG_ERROR(need path to compiler for --with-cplant-tests);; no) with_cplant_tests=no;; |
From: Sonja T. <so...@us...> - 2003-08-22 02:24:03
|
Update of /cvsroot/libsysio/libsysio/tests In directory sc8-pr-cvs1:/tmp/cvs-serv9632/libsysio/tests Modified Files: Tag: cplant test_all.pl test_copy.pl test_getcwd.pl test_list.pl test_path.pl test_stats.pl test_stdfd.pl Log Message: Bug fixes to test_driver.c and modified tests to not rely on given directory structure Index: test_all.pl =================================================================== RCS file: /cvsroot/libsysio/libsysio/tests/test_all.pl,v retrieving revision 1.3 retrieving revision 1.3.4.1 diff -u -w -b -B -p -r1.3 -r1.3.4.1 --- test_all.pl 18 Aug 2003 15:52:20 -0000 1.3 +++ test_all.pl 21 Aug 2003 17:00:16 -0000 1.3.4.1 @@ -14,27 +14,34 @@ if ((@ARGV > 0) && ($ARGV[0] eq "-alpha" } else { my $alpha_env = $ENV{"IS_ALPHA"}; # If there is no command line arg, check the environment vars - if ($alpha_env eq "yes") { + if (defined($alpha_env) && ($alpha_env eq "yes")) { $alpha_arg = "-alpha"; } } -# Will use this directory... -system("mkdir -p ./tmp_dir"); - my $failures = 0; my $success = 0; # Get cwd.. my $cwd = $ENV{PWD}; -# Get the sysio dir -my $sysdir = $cwd; -$sysdir =~ s/\/\w+$//; +# Get tests directory +my $testdir = $0; +$testdir =~ s/\/\w+.pl$//; + my $res; +# Will use this directory... +system("mkdir -p $cwd/tmp_dir"); + +# Create a couple of files and subdirectories for use in the tests +system("mkdir -p $cwd/tmp_dir/test1"); +system("mkdir -p $cwd/tmp_dir/test2"); + +system("cp $testdir/helper.pm $cwd/tmp_dir/test1"); + if (($alpha_arg eq "") || ($is_broke == 0)) { # Test getdirentries - $res = `./test_list.pl $alpha_arg $sysdir`; + $res = `perl -I$testdir $testdir/test_list.pl $alpha_arg $cwd/tmp_dir`; chop($res); if ($res ne "list test successful") { print "Basic getdirentries test failed with message: $res\n"; @@ -46,8 +53,8 @@ if (($alpha_arg eq "") || ($is_broke == } # Test path -my @resarr = `./test_path.pl $alpha_arg $sysdir $cwd $cwd/tmp_dir`; -$res = $sysdir.": d\n"; +my @resarr = `perl -I$testdir $testdir/test_path.pl $alpha_arg $testdir $cwd $cwd/tmp_dir`; +$res = $testdir.": d\n"; if ($resarr[0] ne $res) { print "path test returned $resarr[0] instead of $res\n"; $failures++; @@ -70,7 +77,7 @@ if ($resarr[0] ne $res) { if (($alpha_arg eq "") || ($is_broke == 0)) { # Test mount - $res = `./test_list.pl $alpha_arg -m native:$sysdir $cwd/tmp_dir`; + $res = `perl -I$testdir $testdir/test_list.pl $alpha_arg -m native:$testdir $cwd/tmp_dir/test2`; chop($res); if ($res ne "list test successful") { print "Mount test failed with message: $res\n"; @@ -81,7 +88,7 @@ if (($alpha_arg eq "") || ($is_broke == } # Test getcwd - $res = `./test_getcwd.pl $alpha_arg $sysdir`; + $res = `perl -I$testdir $testdir/test_getcwd.pl $alpha_arg $cwd/tmp_dir/test1`; chop($res); if ($res ne "getcwd test successful") { print "getcwd test failed with message: $res\n"; @@ -93,7 +100,7 @@ if (($alpha_arg eq "") || ($is_broke == } # Test copy -$res = `./test_copy.pl $alpha_arg $sysdir/README $cwd/tmp_dir/README`; +$res = `perl -I$testdir $testdir/test_copy.pl $alpha_arg $cwd/tmp_dir/test1/helper.pm $cwd/tmp_dir/helper.pm`; chop($res); if ($res ne "copy test successful") { print "copy test failed with message: $res\n"; @@ -104,7 +111,7 @@ if ($res ne "copy test successful") { } # Test stats -$res = `./test_stats.pl $alpha_arg $cwd/tmp_dir/README`; +$res = `perl -I$testdir $testdir/test_stats.pl $alpha_arg $cwd/tmp_dir/helper.pm`; chop($res); if ($res ne "stat test successful") { print "stat test failed with message: $res\n"; @@ -115,7 +122,7 @@ if ($res ne "stat test successful") { } # Test stdfd -$res = `./test_stdfd.pl $alpha_arg foo_dir`; +$res = `perl -I$testdir $testdir/test_stdfd.pl $alpha_arg foo_dir`; chop($res); if ($res ne "test_stdfd successful") { print "stdfd test failed with message: $res\n"; @@ -128,6 +135,6 @@ if ($res ne "test_stdfd successful") { print "$failures tests failed and $success tests succeeded\n"; # cleanup -system(`rm -rf tmp_dir`); +system(`rm -rf $cwd/tmp_dir`); exit $failures; Index: test_copy.pl =================================================================== RCS file: /cvsroot/libsysio/libsysio/tests/test_copy.pl,v retrieving revision 1.2 retrieving revision 1.2.6.1 diff -u -w -b -B -p -r1.2 -r1.2.6.1 --- test_copy.pl 14 Aug 2003 21:16:33 -0000 1.2 +++ test_copy.pl 21 Aug 2003 17:00:17 -0000 1.2.6.1 @@ -20,12 +20,15 @@ sub process_cmd { my ($src, $dest, $is_alpha) = @_; +# Get tests directory +my $testdir = $0; +$testdir =~ s/\/\w+.pl$//; eval { if ($is_alpha == 0) { - open2(\*OUTFILE, \*CMDFILE, "./test_driver --np"); + open2(\*OUTFILE, \*CMDFILE, "$testdir/test_driver --np"); } else { - open2(\*OUTFILE, \*CMDFILE, "yod -quiet -sz 1 ./test_driver --np"); + open2(\*OUTFILE, \*CMDFILE, "yod -quiet -sz 1 $testdir/test_driver --np"); } }; Index: test_getcwd.pl =================================================================== RCS file: /cvsroot/libsysio/libsysio/tests/test_getcwd.pl,v retrieving revision 1.2 retrieving revision 1.2.6.1 diff -u -w -b -B -p -r1.2 -r1.2.6.1 --- test_getcwd.pl 14 Aug 2003 21:16:33 -0000 1.2 +++ test_getcwd.pl 21 Aug 2003 17:00:17 -0000 1.2.6.1 @@ -43,12 +43,16 @@ sub process_cmd { my ($dir, $is_alpha) = @_; +# Get tests directory +my $testdir = $0; +$testdir =~ s/\/\w+.pl$//; + eval { if ($is_alpha == 0) { - open2(\*OUTFILE, \*CMDFILE, "./test_driver --np"); + open2(\*OUTFILE, \*CMDFILE, "$testdir/test_driver --np"); } else { open2(\*OUTFILE, \*CMDFILE, - "yod -batch -quiet -sz 1 ./test_driver --np"); + "yod -batch -quiet -sz 1 $testdir/test_driver --np"); } }; Index: test_list.pl =================================================================== RCS file: /cvsroot/libsysio/libsysio/tests/test_list.pl,v retrieving revision 1.2 retrieving revision 1.2.6.1 diff -u -w -b -B -p -r1.2 -r1.2.6.1 --- test_list.pl 14 Aug 2003 21:16:33 -0000 1.2 +++ test_list.pl 21 Aug 2003 17:00:17 -0000 1.2.6.1 @@ -125,11 +125,15 @@ sub process_cmd my $size = 8192; my $done_files = 0; +# Get tests directory +my $testdir = $0; +$testdir =~ s/\/\w+.pl$//; + eval { if ($is_alpha == 1) { - open2(\*OUTFILE, \*CMDFILE, "yod -quiet -sz 1 ./test_driver --np"); + open2(\*OUTFILE, \*CMDFILE, "yod -quiet -sz 1 $testdir/test_driver --np"); } else { - open2(\*OUTFILE, \*CMDFILE, "./test_driver --np"); + open2(\*OUTFILE, \*CMDFILE, "$testdir/test_driver --np"); } }; Index: test_path.pl =================================================================== RCS file: /cvsroot/libsysio/libsysio/tests/test_path.pl,v retrieving revision 1.2.6.1 retrieving revision 1.2.6.2 diff -u -w -b -B -p -r1.2.6.1 -r1.2.6.2 --- test_path.pl 20 Aug 2003 21:05:49 -0000 1.2.6.1 +++ test_path.pl 21 Aug 2003 17:00:18 -0000 1.2.6.2 @@ -84,12 +84,16 @@ sub process_cmd my $path; + # Get tests directory + my $testdir = $0; + $testdir =~ s/\/\w+.pl$//; + eval { if ($isalpha == 0) { - open2(\*OUTFILE, \*CMDFILE, "./test_driver --np"); + open2(\*OUTFILE, \*CMDFILE, "$testdir/test_driver --np"); } else { open2(\*OUTFILE, \*CMDFILE, - "yod -batch -quiet -sz 1 ./test_driver --np"); + "yod -batch -quiet -sz 1 $testdir/test_driver --np"); } }; Index: test_stats.pl =================================================================== RCS file: /cvsroot/libsysio/libsysio/tests/test_stats.pl,v retrieving revision 1.2 retrieving revision 1.2.6.1 diff -u -w -b -B -p -r1.2 -r1.2.6.1 --- test_stats.pl 14 Aug 2003 21:16:33 -0000 1.2 +++ test_stats.pl 21 Aug 2003 17:00:18 -0000 1.2.6.1 @@ -92,12 +92,16 @@ sub process_cmd { my ($file, $is_alpha) = @_; +# Get tests directory +my $testdir = $0; +$testdir =~ s/\/\w+.pl$//; + eval { if ($is_alpha == 0) { - open2(\*OUTFILE, \*CMDFILE, "./test_driver --np"); + open2(\*OUTFILE, \*CMDFILE, "$testdir/test_driver --np"); } else { open2(\*OUTFILE, \*CMDFILE, - "yod -batch -quiet -sz 1 ./test_driver --np"); + "yod -batch -quiet -sz 1 $testdir/test_driver --np"); } }; @@ -163,25 +167,33 @@ sub process_cmd $cmdstr = '$buf2 = ALLOC ( $size2 = CALL sizeof statvfs )'."\n"; helper::send_cmd($cmdfh, $outfh, "alloc", $cmdstr); + # Clear out the buffer + $cmdstr = 'CALL clear $buf2'."\n"; + helper::send_cmd($cmdfh, $outfh, "CLEAR", $cmdstr); + $cmdstr = 'CALL statvfs '."$file ".'$buf2'."\n"; helper::send_cmd($cmdfh, $outfh, "statvfs", $cmdstr); helper::verify_cmd($cmdfh, $outfh, "statvfs"); # Print out the statvfs buffer - $cmdstr = 'PRINT $buf2 0 40 INT 44 8 LONG'."\n"; + $cmdstr = 'PRINT $buf2 0 16 LONG 16 32 INT 48 16 LONG'."\n"; helper::send_cmd($cmdfh, $outfh, "PRINT", $cmdstr); my $res = <$outfh>; chop($res); my @vfsstats1 = split(' ', $res); + # Clear out the buffer + $cmdstr = 'CALL clear $buf2'."\n"; + helper::send_cmd($cmdfh, $outfh, "CLEAR", $cmdstr); + # Now do fstatvfs $cmdstr = 'CALL fstatvfs $fd $buf2'."\n"; helper::send_cmd($cmdfh, $outfh, "fstatvfs", $cmdstr); helper::verify_cmd($cmdfh, $outfh, "fstatvfs"); # Print out the statvfs buffer - $cmdstr = 'PRINT $buf2 0 40 INT 44 8 LONG'."\n"; + $cmdstr = 'PRINT $buf2 0 16 LONG 16 32 INT 48 16 LONG'."\n"; helper::send_cmd($cmdfh, $outfh, "PRINT", $cmdstr); $res = <$outfh>; @@ -196,7 +208,7 @@ sub process_cmd my $i=0; foreach my $stat1 (@vfsstats1) { if ($stat1 ne $vfsstats2[$i++]) { - my $str = sprintf("vfsstats field %d are not equal (%x != %x)\n", + my $str = sprintf("vfsstats field %d are not equal (%s != %s)\n", $i-1, $stat1, $vfsstats2[$i-1]); helper::print_and_exit($cmdfh, $outfh, 1, $str); } Index: test_stdfd.pl =================================================================== RCS file: /cvsroot/libsysio/libsysio/tests/test_stdfd.pl,v retrieving revision 1.2 retrieving revision 1.2.6.1 diff -u -w -b -B -p -r1.2 -r1.2.6.1 --- test_stdfd.pl 14 Aug 2003 21:16:33 -0000 1.2 +++ test_stdfd.pl 21 Aug 2003 17:00:18 -0000 1.2.6.1 @@ -105,11 +105,15 @@ sub process_cmd { my ($dirname, $do_print, $is_alpha) = @_; +# Get tests directory +my $testdir = $0; +$testdir =~ s/\/\w+.pl$//; + eval { if ($is_alpha == 1) { - open2(\*OUTFILE, \*CMDFILE, "yod -sz 1 -quiet -batch ./test_driver --np"); + open2(\*OUTFILE, \*CMDFILE, "yod -sz 1 -quiet -batch $testdir/test_driver --np"); } else { - open2(\*OUTFILE, \*CMDFILE, "./test_driver --np"); + open2(\*OUTFILE, \*CMDFILE, "$testdir/test_driver --np"); } }; |
From: Lee W. <lw...@us...> - 2003-08-22 02:16:28
|
Update of /cvsroot/libsysio/libsysio/include In directory sc8-pr-cvs1:/tmp/cvs-serv4562 Modified Files: inode.h Log Message: Don't need multiple bit fields to represent two 1-bit flags. Coalesced them into one. Index: inode.h =================================================================== RCS file: /cvsroot/libsysio/libsysio/include/inode.h,v retrieving revision 1.7 retrieving revision 1.8 diff -u -w -b -B -p -r1.7 -r1.8 --- inode.h 25 Jul 2003 14:45:34 -0000 1.7 +++ inode.h 21 Aug 2003 19:48:37 -0000 1.8 @@ -128,8 +128,9 @@ struct inode_ops { */ struct inode { LIST_ENTRY(inode) i_link; /* FS i-nodes link */ - unsigned i_immune : 1; /* immune from GC */ - unsigned i_zombie : 1; /* stale inode */ + unsigned + i_immune : 1, /* immune from GC */ + i_zombie : 1; /* stale inode */ unsigned i_ref; /* soft ref counter */ ino_t i_num; /* i-num (deprecate!) */ mode_t i_mode; /* mode (see stat.h) */ |
From: Lee W. <lw...@us...> - 2003-08-21 20:48:44
|
Update of /cvsroot/libsysio/libsysio/tests In directory sc8-pr-cvs1:/tmp/cvs-serv3131 Modified Files: test_copy.c Log Message: Per Jim Schutt, fix a bug in the the getopt format string. Now recognizes the -r option correctly. Index: test_copy.c =================================================================== RCS file: /cvsroot/libsysio/libsysio/tests/test_copy.c,v retrieving revision 1.6 retrieving revision 1.7 diff -u -w -b -B -p -r1.6 -r1.7 --- test_copy.c 14 Aug 2003 18:39:33 -0000 1.6 +++ test_copy.c 21 Aug 2003 19:39:13 -0000 1.7 @@ -90,7 +90,7 @@ main(int argc, char * const argv[]) #ifdef AUTOMOUNT_FILE_NAME "a" #endif - "i:m:")) != -1) + "r:m:")) != -1) switch (i) { #ifdef AUTOMOUNT_FILE_NAME |
From: Ruth K. <rk...@us...> - 2003-08-21 16:59:49
|
Update of /cvsroot/libsysio/libsysio/tests In directory sc8-pr-cvs1:/tmp/cvs-serv20601/tests Modified Files: Tag: cplant Makefile.am helper.pm sysio_stubs.c sysio_tests.c test_driver.c test_path.pl test_stats.c Log Message: backport to RH6.2 cplant environment Index: Makefile.am =================================================================== RCS file: /cvsroot/libsysio/libsysio/tests/Makefile.am,v retrieving revision 1.12.2.1 retrieving revision 1.12.2.2 diff -u -w -b -B -p -r1.12.2.1 -r1.12.2.2 --- Makefile.am 18 Aug 2003 19:47:17 -0000 1.12.2.1 +++ Makefile.am 20 Aug 2003 21:05:49 -0000 1.12.2.2 @@ -36,7 +36,7 @@ endif if WITH_CPLANT_YOD YOD_DRIVER_NAME=yod YOD_DRIVER_CFLAGS= -DCPLANT_YOD -YOD_DRIVER_LIB= $(top_builddir)/drivers/yod/libyod.a +YOD_DRIVER_LIB= $(top_builddir)/drivers/yod/libsysio_yod.a else YOD_DRIVER_NAME= YOD_DRIVER_CFLAGS= @@ -46,7 +46,7 @@ DRIVERS=$(NATIVE_DRIVER_NAME) $(INCORE_D CMNSRC=drv_init_all.c drv_data.c BUILT_SOURCES=drv_data.c -check_PROGRAMS=test_driver +#check_PROGRAMS=test_driver if TEST_ALPHA_ARG TESTS_ENVIRONMENT=IS_ALPHA=yes else @@ -54,7 +54,7 @@ TESTS_ENVIRONMENT=IS_ALPHA=no endif TESTS=test_all.pl -CFL=$(AM_CFLAGS) $(AM_CPPFLAGS) \ +AM_CFLAGS = $(AM_CPPFLAGS) \ $(NATIVE_DRIVER_CFLAGS) $(INCORE_DRIVER_CFLAGS) \ $(STDFD_DEV_CFLAGS) $(YOD_DRIVER_CFLAGS) @@ -63,42 +63,42 @@ LIBS=$(NATIVE_DRIVER_LIB) $(INCORE_DRIVE $(top_builddir)/src/libsysio.a test_copy_SOURCES=test_copy.c $(CMNSRC) -test_copy_CFLAGS=$(CFL) +test_copy_CFLAGS=$(AM_CFLAGS) test_copy_LDADD=$(LIBS) test_copy_DEPENDENCIES=$(LIBS) test_stats_SOURCES=test_stats.c $(CMNSRC) -test_stats_CFLAGS=$(CFL) +test_stats_CFLAGS=$(AM_CFLAGS) test_stats_LDADD=$(LIBS) test_stats_DEPENDENCIES=$(LIBS) test_path_SOURCES=test_path.c $(CMNSRC) -test_path_CFLAGS=$(CFL) +test_path_CFLAGS=$(AM_CFLAGS) test_path_LDADD=$(LIBS) test_path_DEPENDENCIES=$(LIBS) test_mounts_SOURCES=test_mounts.c $(CMNSRC) -test_mounts_CFLAGS=$(CFL) +test_mounts_CFLAGS=$(AM_CFLAGS) test_mounts_LDADD=$(LIBS) test_mounts_DEPENDENCIES=$(LIBS) test_list_SOURCES=test_list.c $(CMNSRC) -test_list_CFLAGS=$(CFL) +test_list_CFLAGS=$(AM_CFLAGS) test_list_LDADD=$(LIBS) test_list_DEPENDENCIES=$(LIBS) test_getcwd_SOURCES=test_getcwd.c $(CMNSRC) -test_getcwd_CFLAGS=$(CFL) +test_getcwd_CFLAGS=$(AM_CFLAGS) test_getcwd_LDADD=$(LIBS) test_getcwd_DEPENDENCIES=$(LIBS) test_stdfd_SOURCES=test_stdfd.c $(CMNSRC) -test_stdfd_CFLAGS=$(CFL) +test_stdfd_CFLAGS=$(AM_CFLAGS) test_stdfd_LDADD=$(LIBS) test_stdfd_DEPENDENCIES=$(LIBS) test_driver_SOURCES=test_driver.c sysio_tests.c sysio_stubs.c help.c $(CMNSRC) -test_driver_CFLAGS=$(CFL) +test_driver_CFLAGS=$(AM_CFLAGS) test_driver_LDADD=$(LIBS) test_driver_DEPENDENCIES=$(LIBS) Index: helper.pm =================================================================== RCS file: /cvsroot/libsysio/libsysio/tests/helper.pm,v retrieving revision 1.2 retrieving revision 1.2.6.1 diff -u -w -b -B -p -r1.2 -r1.2.6.1 --- helper.pm 14 Aug 2003 21:16:33 -0000 1.2 +++ helper.pm 20 Aug 2003 21:05:49 -0000 1.2.6.1 @@ -7,7 +7,7 @@ package helper; use strict; -use Fcntl ':mode'; +use POSIX; BEGIN{} Index: sysio_stubs.c =================================================================== RCS file: /cvsroot/libsysio/libsysio/tests/sysio_stubs.c,v retrieving revision 1.2 retrieving revision 1.2.6.1 diff -u -w -b -B -p -r1.2 -r1.2.6.1 --- sysio_stubs.c 14 Aug 2003 21:16:33 -0000 1.2 +++ sysio_stubs.c 20 Aug 2003 21:05:49 -0000 1.2.6.1 @@ -7,7 +7,7 @@ #include <fcntl.h> #include <unistd.h> #include <sys/uio.h> -#include <linux/fs.h> +#include <sys/mount.h> #include <sys/stat.h> #include <sys/statvfs.h> @@ -1251,6 +1251,7 @@ struct cmd_map ioctl_cmds[] = { { "BLKGETSIZE", BLKGETSIZE, 3 }, { "BLKRASET", BLKRASET, 3 }, { "BLKRAGET", BLKRAGET, 3 }, +#if 0 { "BLKSECTSET", BLKSECTSET, 3 }, { "BLKSECTGET", BLKSECTGET, 3 }, { "BLKSSZGET", BLKSSZGET, 3 }, @@ -1260,6 +1261,7 @@ struct cmd_map ioctl_cmds[] = { { "BLKBSZSET", BLKBSZSET, 3 }, { "FIBMAP", FIBMAP, 3 }, { "FIGETBSZ", FIGETBSZ, 3}, +#endif { NULL, -1, 0 } }; Index: sysio_tests.c =================================================================== RCS file: /cvsroot/libsysio/libsysio/tests/sysio_tests.c,v retrieving revision 1.2 retrieving revision 1.2.6.1 diff -u -w -b -B -p -r1.2 -r1.2.6.1 --- sysio_tests.c 14 Aug 2003 21:16:33 -0000 1.2 +++ sysio_tests.c 20 Aug 2003 21:05:49 -0000 1.2.6.1 @@ -824,7 +824,11 @@ void print_statvfs(struct statvfs *st) DBG(3, sprintf(output, "%s f_ffree: %x\n", output, (unsigned int) st->f_ffree)); DBG(3, sprintf(output, "%s f_favail: %x\n", output, (unsigned int) st->f_favail)); DBG(3, sprintf(output, "%s f_files: %x\n", output, (unsigned int) st->f_files)); +#if (__GLIBC__ == 2 && __GLIBC_MINOR__ == 1) + DBG(3, sprintf(output, "%s f_fsid: %x\n", output, (unsigned int) st->f_fsid.__val[1])); +#else DBG(3, sprintf(output, "%s f_fsid: %x\n", output, (unsigned int) st->f_fsid)); +#endif DBG(3, sprintf(output, "%s f_flag: %x\n", output, (unsigned int) st->f_flag)); DBG(3, sprintf(output, "%s f_fnamemax: %x\n", output, (unsigned int) st->f_namemax)); } Index: test_driver.c =================================================================== RCS file: /cvsroot/libsysio/libsysio/tests/test_driver.c,v retrieving revision 1.2 retrieving revision 1.2.6.1 diff -u -w -b -B -p -r1.2 -r1.2.6.1 --- test_driver.c 14 Aug 2003 21:16:33 -0000 1.2 +++ test_driver.c 20 Aug 2003 21:05:49 -0000 1.2.6.1 @@ -120,8 +120,8 @@ void * alloc_buff32(unsigned int size, i long buf_ptr; int err; /* - if ((err = posix_memalign(&buf, align, size)) != 0) { - perror("posix_memalign"); + if ((err = memalign(&buf, align, size)) != 0) { + perror("memalign"); return 0; } */ @@ -145,7 +145,7 @@ long alloc_buff64(unsigned int size, int char * buf; long ret_value; - if (posix_memalign((void **)&buf, align, size)) + if (memalign((void **)&buf, align, size)) return 0; ret_value = (long)buf; Index: test_path.pl =================================================================== RCS file: /cvsroot/libsysio/libsysio/tests/test_path.pl,v retrieving revision 1.2 retrieving revision 1.2.6.1 diff -u -w -b -B -p -r1.2 -r1.2.6.1 --- test_path.pl 14 Aug 2003 21:16:33 -0000 1.2 +++ test_path.pl 20 Aug 2003 21:05:49 -0000 1.2.6.1 @@ -9,7 +9,7 @@ use IPC::Open2; use strict; use helper; -use Fcntl ':mode'; +use POSIX; sub usage { Index: test_stats.c =================================================================== RCS file: /cvsroot/libsysio/libsysio/tests/test_stats.c,v retrieving revision 1.4 retrieving revision 1.4.2.1 diff -u -w -b -B -p -r1.4 -r1.4.2.1 --- test_stats.c 14 Aug 2003 18:39:33 -0000 1.4 +++ test_stats.c 20 Aug 2003 21:05:49 -0000 1.4.2.1 @@ -170,7 +170,14 @@ do_stats(const char *path) (void )fprintf(stderr, "%s: [f]stat info mismatch\n", path); goto out; } - if (stvfsbuf1.f_fsid != stvfsbuf2.f_fsid) { + if ( +#if (__GLIBC__ == 2 && __GLIBC_MINOR__ == 1) + stvfsbuf1.f_fsid.__val[0] != stvfsbuf2.f_fsid.__val[0] || + stvfsbuf1.f_fsid.__val[1] != stvfsbuf2.f_fsid.__val[1] +#else + stvfsbuf1.f_fsid != stvfsbuf2.f_fsid +#endif + ) { (void )fprintf(stderr, "%s: [f]statvfs info mismatch\n", path); } printf("%s:" |
From: Ruth K. <rk...@us...> - 2003-08-21 16:59:48
|
Update of /cvsroot/libsysio/libsysio/drivers/yod In directory sc8-pr-cvs1:/tmp/cvs-serv20601/drivers/yod Modified Files: Tag: cplant fs_yod.c Log Message: backport to RH6.2 cplant environment Index: fs_yod.c =================================================================== RCS file: /cvsroot/libsysio/libsysio/drivers/yod/fs_yod.c,v retrieving revision 1.2 retrieving revision 1.2.4.1 diff -u -w -b -B -p -r1.2 -r1.2.4.1 --- fs_yod.c 14 Aug 2003 18:39:33 -0000 1.2 +++ fs_yod.c 20 Aug 2003 21:05:49 -0000 1.2.4.1 @@ -1136,7 +1136,12 @@ yod_inop_statvfs(struct pnode *pno, buf->f_files = fs.f_files; /* Total number serial numbers */ buf->f_ffree = fs.f_ffree; /* Number free serial numbers */ buf->f_favail = fs.f_ffree; /* Number free ser num for non-privileged*/ +#if (__GLIBC__ == 2 && __GLIBC_MINOR__ == 1) + buf->f_fsid.__val[0] = fs.f_fsid.__val[0]; + buf->f_fsid.__val[1] = fs.f_fsid.__val[1]; +#else buf->f_fsid = fs.f_fsid.__val[1]; +#endif buf->f_flag = 0; /* No equiv in statfs; maybe use type? */ buf->f_namemax = fs.f_namelen; return 0; |
From: Ruth K. <rk...@us...> - 2003-08-21 12:06:06
|
Update of /cvsroot/libsysio/libsysio/drivers/native In directory sc8-pr-cvs1:/tmp/cvs-serv20601/drivers/native Modified Files: Tag: cplant fs_native.c Log Message: backport to RH6.2 cplant environment Index: fs_native.c =================================================================== RCS file: /cvsroot/libsysio/libsysio/drivers/native/fs_native.c,v retrieving revision 1.16 retrieving revision 1.16.2.1 diff -u -w -b -B -p -r1.16 -r1.16.2.1 --- fs_native.c 14 Aug 2003 18:39:33 -0000 1.16 +++ fs_native.c 20 Aug 2003 21:05:49 -0000 1.16.2.1 @@ -155,6 +155,11 @@ do { #define __SYS_UTIME SYS_utime #endif +#if defined(USE_GETDENTS64) +#define __SYS_GETDENTS SYS_getdents64 +#else +#define __SYS_GETDENTS SYS_getdents +#endif /* * Native file identifiers format. */ @@ -847,7 +852,7 @@ native_getdirentries(struct inode *ino, SEEK_SET) == -1) return -errno; nino->ni_fpos = result; - cc = syscall(SYS_getdents64, nino->ni_fd, buf, nbytes); + cc = syscall(__SYS_GETDENTS, nino->ni_fd, buf, nbytes); if (cc < 0) return -errno; nino->ni_fpos += cc; @@ -1220,7 +1225,12 @@ native_inop_statvfs(struct pnode *pno, buf->f_files = fs.f_files; /* Total number serial numbers */ buf->f_ffree = fs.f_ffree; /* Number free serial numbers */ buf->f_favail = fs.f_ffree; /* Number free ser num for non-privileged*/ +#if (__GLIBC__ == 2 && __GLIBC_MINOR__ == 1) + buf->f_fsid.__val[0] = fs.f_fsid.__val[0]; + buf->f_fsid.__val[1] = fs.f_fsid.__val[1]; +#else buf->f_fsid = fs.f_fsid.__val[1]; +#endif buf->f_flag = 0; /* No equiv in statfs; maybe use type? */ buf->f_namemax = fs.f_namelen; return 0; |
From: Ruth K. <rk...@us...> - 2003-08-21 12:06:06
|
Update of /cvsroot/libsysio/libsysio/drivers/incore In directory sc8-pr-cvs1:/tmp/cvs-serv20601/drivers/incore Modified Files: Tag: cplant fs_incore.c Log Message: backport to RH6.2 cplant environment Index: fs_incore.c =================================================================== RCS file: /cvsroot/libsysio/libsysio/drivers/incore/fs_incore.c,v retrieving revision 1.5 retrieving revision 1.5.2.1 diff -u -w -b -B -p -r1.5 -r1.5.2.1 --- fs_incore.c 31 Jul 2003 22:21:36 -0000 1.5 +++ fs_incore.c 20 Aug 2003 21:05:49 -0000 1.5.2.1 @@ -1478,7 +1478,11 @@ _sysio_incore_inop_statvfs(struct pnode buf->f_files = buf->f_blocks; buf->f_ffree = buf->f_files - 1; buf->f_favail = buf->f_ffree; +#if (__GLIBC__ == 2 && __GLIBC_MINOR__ == 1) + buf->f_fsid.__val[1] = (int )fs->fs_id; +#else buf->f_fsid = fs->fs_id; +#endif buf->f_flag = 0; buf->f_namemax = ULONG_MAX; |
From: Ruth K. <rk...@us...> - 2003-08-21 11:28:14
|
Update of /cvsroot/libsysio/libsysio In directory sc8-pr-cvs1:/tmp/cvs-serv20601 Modified Files: Tag: cplant configure.in Log Message: backport to RH6.2 cplant environment Index: configure.in =================================================================== RCS file: /cvsroot/libsysio/libsysio/configure.in,v retrieving revision 1.8 retrieving revision 1.8.2.1 diff -u -w -b -B -p -r1.8 -r1.8.2.1 --- configure.in 18 Aug 2003 15:52:20 -0000 1.8 +++ configure.in 20 Aug 2003 21:05:49 -0000 1.8.2.1 @@ -167,13 +167,30 @@ fi # AC_MSG_CHECKING(for alpha linux) alpha_linux_env=no -if test ${machine:0:5} = alpha && \ - test ${os:0:5} = linux; then - alpha_linux_env=yes +if test `expr ${machine} : "alpha"` = 5 && \ + test `expr ${os} : "linux"` = 5; then + alpha_linux_env=yes; AC_DEFINE(ALPHA_LINUX) fi AC_MSG_RESULT($alpha_linux_env) AM_CONDITIONAL(TEST_ALPHA_ARG, test x$alpha_linux_env = xyes) + +# check for 64 bit getdents syscall +# +AC_MSG_CHECKING(for 64 bit getdents call) +AC_TRY_COMPILE([ +#include <sys/stat.h> +#include <syscall.h> +extern int syscall();], +[int fd; char buf[10]; size_t nbytes; +syscall(SYS_getdents64, fd, buf, nbytes); +], + getdents64_exists=yes, + getdents64_exists=no) +AC_MSG_RESULT($getdents64_exists) +if test x$getdents64_exists = xyes; then + AC_DEFINE(USE_GETDENTS64) +fi # check for 64 bit stat, fstat, truncate, ftruncate syscalls # |
From: Ruth K. <rk...@us...> - 2003-08-18 19:47:20
|
Update of /cvsroot/libsysio/libsysio/tests In directory sc8-pr-cvs1:/tmp/cvs-serv3136 Modified Files: Tag: cplant Makefile.am Log Message: missing def for yod lib Index: Makefile.am =================================================================== RCS file: /cvsroot/libsysio/libsysio/tests/Makefile.am,v retrieving revision 1.12 retrieving revision 1.12.2.1 diff -u -w -b -B -p -r1.12 -r1.12.2.1 --- Makefile.am 18 Aug 2003 15:52:20 -0000 1.12 +++ Makefile.am 18 Aug 2003 19:47:17 -0000 1.12.2.1 @@ -36,6 +36,7 @@ endif if WITH_CPLANT_YOD YOD_DRIVER_NAME=yod YOD_DRIVER_CFLAGS= -DCPLANT_YOD +YOD_DRIVER_LIB= $(top_builddir)/drivers/yod/libyod.a else YOD_DRIVER_NAME= YOD_DRIVER_CFLAGS= |
From: Sonja T. <so...@us...> - 2003-08-18 15:52:24
|
Update of /cvsroot/libsysio/libsysio In directory sc8-pr-cvs1:/tmp/cvs-serv20431/libsysio Modified Files: configure.in Log Message: Making "make check" work for executing the basic sanity tests Index: configure.in =================================================================== RCS file: /cvsroot/libsysio/libsysio/configure.in,v retrieving revision 1.7 retrieving revision 1.8 diff -u -w -b -B -p -r1.7 -r1.8 --- configure.in 14 Aug 2003 18:39:32 -0000 1.7 +++ configure.in 18 Aug 2003 15:52:20 -0000 1.8 @@ -173,6 +173,7 @@ if test ${machine:0:5} = alpha && \ AC_DEFINE(ALPHA_LINUX) fi AC_MSG_RESULT($alpha_linux_env) +AM_CONDITIONAL(TEST_ALPHA_ARG, test x$alpha_linux_env = xyes) # check for 64 bit stat, fstat, truncate, ftruncate syscalls # |
From: Sonja T. <so...@us...> - 2003-08-18 15:52:24
|
Update of /cvsroot/libsysio/libsysio/tests In directory sc8-pr-cvs1:/tmp/cvs-serv20431/libsysio/tests Modified Files: Makefile.am README test_all.pl Log Message: Making "make check" work for executing the basic sanity tests Index: Makefile.am =================================================================== RCS file: /cvsroot/libsysio/libsysio/tests/Makefile.am,v retrieving revision 1.11 retrieving revision 1.12 diff -u -w -b -B -p -r1.11 -r1.12 --- Makefile.am 14 Aug 2003 21:16:33 -0000 1.11 +++ Makefile.am 18 Aug 2003 15:52:20 -0000 1.12 @@ -47,7 +47,13 @@ CMNSRC=drv_init_all.c drv_data.c BUILT_SOURCES=drv_data.c check_PROGRAMS=test_driver +if TEST_ALPHA_ARG +TESTS_ENVIRONMENT=IS_ALPHA=yes +else +TESTS_ENVIRONMENT=IS_ALPHA=no +endif TESTS=test_all.pl + CFL=$(AM_CFLAGS) $(AM_CPPFLAGS) \ $(NATIVE_DRIVER_CFLAGS) $(INCORE_DRIVER_CFLAGS) \ $(STDFD_DEV_CFLAGS) $(YOD_DRIVER_CFLAGS) Index: README =================================================================== RCS file: /cvsroot/libsysio/libsysio/tests/README,v retrieving revision 1.2 retrieving revision 1.3 diff -u -w -b -B -p -r1.2 -r1.3 --- README 14 Aug 2003 21:16:33 -0000 1.2 +++ README 18 Aug 2003 15:52:20 -0000 1.3 @@ -1,8 +1,12 @@ -To run the tests, just do ./test_all.pl (at some point I will -integrate that into the build environment). This will run the 6 -basic functionality tests (explained below) and report the total -number of passes and failures. This is not currently working on -alpha/cplant architectures, however. +To run the tests, just do a "make check" in the tests subdirectory. +On the CPlant alpha systems, 3 of the 7 tests in test_all.pl are excluded +due to known problems (problems as of the date of writing this; they +may have since been fixed). You can also manually run the individual +tests or ./test_all.pl. If you are running on CPlant, you need to +run test_all.pl with a -alpha argument. Either "make check" or +test_all.pl will run the 7 basic functionality tests (explained +below) and report the total number of passes and failures. +number of passes and failures. -----------------------SCRIPTS--------------------------------- Index: test_all.pl =================================================================== RCS file: /cvsroot/libsysio/libsysio/tests/test_all.pl,v retrieving revision 1.2 retrieving revision 1.3 diff -u -w -b -B -p -r1.2 -r1.3 --- test_all.pl 14 Aug 2003 21:16:33 -0000 1.2 +++ test_all.pl 18 Aug 2003 15:52:20 -0000 1.3 @@ -11,11 +11,16 @@ my $alpha_arg = ""; my $is_broke = 1; # Don't test certain areas known to not work on Cplant if ((@ARGV > 0) && ($ARGV[0] eq "-alpha")) { $alpha_arg = "-alpha"; +} else { + my $alpha_env = $ENV{"IS_ALPHA"}; + # If there is no command line arg, check the environment vars + if ($alpha_env eq "yes") { + $alpha_arg = "-alpha"; + } } - # Will use this directory... -system("mkdir ./tmp_dir"); +system("mkdir -p ./tmp_dir"); my $failures = 0; my $success = 0; @@ -124,3 +129,5 @@ print "$failures tests failed and $succe # cleanup system(`rm -rf tmp_dir`); + +exit $failures; |