Rsync over SMBFS - bad filedescriptor

Feczak Szabolcs feczo at geek.hu
Tue May 11 08:30:15 PDT 2004


Bad file descriptor occurs while Im trying to rsync from smbfs

the files are mounted as the following
//USER at SERVER/HDD$ on /mnt/smbfs (smbfs, read-only)

kern.maxfiles is set to 32768
kern.maxfilesperproc is set to 16384
smb.conf, although it might not makes a difference as a client set to
socket options = TCP_NODELAY IPTOS_LOWDELAY SO_SNDBUF=4096 SO_RCVBUF=4096

uname -a
FreeBSD localhost 4.10-RC FreeBSD 4.10-RC #1: Wed Apr 28 20:00:41 CEST 2004     root at localhost:/mnt/data/obj/mnt/data/cvs/src/sys/MYKERNEL i386

## Issuing the following:
# rsync -HLlruv --delete /mnt/smbfs/data/UJKIEG2/ /home/feczo/test

building file list ... readdir(00101/TOBBEF2.DBF): (9) Bad file descriptor
readdir(11102/tobbef2.dbf): (9) Bad file descriptor
readdir(44401/tobbef2.dbf): (9) Bad file descriptor
readdir(44402/tobbef2.dbf): (9) Bad file descriptor
readdir(66601/TOBBEF2.DBF): (9) Bad file descriptor
readdir(88802/TOBBEF2.DBF): (9) Bad file descriptor
done
IO error encountered - skipping file deletion

wrote 30912 bytes  read 20 bytes  61864.00 bytes/sec
total size is 9405275  speedup is 304.06
rsync error: some files could not be transferred (code 23) at main.c(632)

## generates an error

## reading and copy the file is okay though

# cp /mnt/smbfs/data/UJKIEG2/11102/tobbef2.dbf /home/feczo/test2/1 
# cp /mnt/smbfs/data/UJKIEG2/44401/tobbef2.dbf /home/feczo/test2/2
# cp /mnt/smbfs/data/UJKIEG2/44402/tobbef2.dbf /home/feczo/test2/3
# cp /mnt/smbfs/data/UJKIEG2/66601/TOBBEF2.DBF /home/feczo/test2/4
# cp /mnt/smbfs/data/UJKIEG2/88802/TOBBEF2.DBF /home/feczo/test2/5 

# find /home/feczo/test2                                                           ~

## after copy the files are there ...

/home/feczo/test2
/home/feczo/test2/1
/home/feczo/test2/1/tobbef2.dbf
/home/feczo/test2/2
/home/feczo/test2/2/tobbef2.dbf
/home/feczo/test2/3
/home/feczo/test2/3/tobbef2.dbf
/home/feczo/test2/4
/home/feczo/test2/4/TOBBEF2.DBF
/home/feczo/test2/5
/home/feczo/test2/5/TOBBEF2.DBF

Any ideas why ? 

-- 
  _(_)_
 (_. o_)            F3CZ0
   (_,)     http://feczo.nmi.rulez.org
  (    )    __________________________
  // //



More information about the freebsd-questions mailing list