Hi XFS stuff.
I met a problem with XFS filesystem.
I am using kernel 2.4.18-xfs. Hardware is pentium3 800Mhz,128MB of RAM.
XFS goes to force-shutdown everytime when I execute my test suite.
Do you have any information for this issue?
My test suite consists of a shell-script and a compiled program.
It uses XFS command cvs tree (xfs-cmd.tar.gz) as a data for test.
My Shell-scrippt (org-g.sh) is :
umount /dev/hda7
/usr/src/cmd/xfsprogs/mkfs/mkfs.xfs -f -l agnum=1,size=2000b /dev/hda7
mount /dev/hda7 /mnt/xfs
cd /mnt/xfs
tar zxvf /test/xfs-cmd.tar.gz
/test/test_dev_read
cd /test
rm -rf /mnt/xfs/cmd
and my program (test_dev_read.c) is :
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
#include <unistd.h>
#include <errno.h>
#include <string.h>
int main( argc, argv )
int argc;
const char *argv[];
{
int fd,ret,i,error;
char bufl[4096];
if( ( fd = open( "/dev/hda7" , O_RDONLY , S_IRWXU ) ) < 0 ){
printf( "error= %s\n" , strerror(errno) );
return;
}
for( i=0; i<1; i++ ){
ret = 40;
error = read( fd , bufl , ret );
printf( "test read1 finish = %x \n",(char)bufl[0] );
}
if ( lseek( fd, 4096*16, SEEK_CUR ) == -1 ){
printf( "error2= %s\n" , strerror(errno) );
}
for( i=0; i<1; i++ ){
ret = 40;
error = read( fd , bufl , ret );
printf( "test read2 finish = %x \n",(char)bufl[0] );
}
printf( "test program finish \n" );
close( fd );
}
This test suite shows following results:
[root@bsd241 /root]# /test/org-g.sh
meta-data=/dev/hda7 isize=256 agcount=8, agsize=91620 blks
data = bsize=4096 blocks=732957, imaxpct=25
= sunit=0 swidth=0 blks, unwritten=0
naming =version 2 bsize=4096
log =internal log bsize=4096 blocks=2000
realtime =none extsz=65536 blocks=0, rtextents=0
XFS mounting filesystem ide0(3,7)
cmd/
cmd/CVS/
cmd/CVS/Root
cmd/CVS/Repository
cmd/CVS/Entries
cmd/CVS/Tag
cmd/acl/
cmd/acl/CVS/
cmd/acl/CVS/Root
cmd/acl/CVS/Reposito
.
.
.
cmd/xfstests/tools/fs-walk
cmd/xfstests/tools/interop
cmd/xfstests/tools/srcdiff
cmd/xfstests/tools/srctest
test read1 finish = 58
test read2 finish = 0
test program finish
xfs_iunlink_remove: xfs_itobp() returned an error 990 on ide0(3,7).
Returning error.
xfs_inactive: xfs_ifree() returned an error = 990 on ide0(3,7)
xfs_force_shutdown(ide0(3,7),0x1) called from line 1952 of file
xfs_vnodeops.c. Return address = 0x
c01dadb1
I/O Error Detected. Shutting down filesystem: ide0(3,7)
Please umount the filesystem, and rectify the problem(s)
rm: cannot remove directory `/mnt/xfs/cmd/attr/build': Input/output error
rm: cannot remove directory `/mnt/xfs/cmd/attr': Input/output error
rm: cannot remove directory `/mnt/xfs/cmd': Input/output error
[root@bsd241 /root]#
Please show me why this problem happens.
Regards.
|