Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 4 Apr 2004 21:40:26 +0200
From:      Stefan Walter <sw@gegenunendlich.de>
To:        stable@freebsd.org
Subject:   rsync to a SMB share: "Bad file descriptor"
Message-ID:  <20040404194026.GA930@kyuzo.dunkelkammer.void>

next in thread | raw e-mail | index | archive | help

--vkogqOf2sHV7VnPd
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline

Hi,

I'm having problems with rsync not mirroring some (sub-)subdirectories
to SMB shares of an NT server mounted with mount_smbfs. These
directories are only copied over during the first run of rsync, i.e. if
they don't already exist on the SMB share; during the following runs,
they cause error messages of the form

readdir(path/to/directory): (9) Bad file descriptor

and their contents aren't synchronized, i.e. the old files are left
untouched. ('path/to/directory' is a path relative to the directory that
is being rsync'd.)

Looking at the directories causing these problems, I don't see anything
special - the paths don't contain any special characters nor are they
longer than others, their contents look fine, too, and cp for instance
doesn't have a problem with neither the source nor the target directory.
Their contents don't look special, either (mostly image files).
Furthermore, there aren't any problems if I rsync to a local directory
on an UFS partition; the problems only appear when rsyncing to the NT
server.

The directories are always the same ones, and copies of them seem to
cause the same problems (it doesn't matter if I copy the source
directory and rsync twice or if I just copy the directory existing on
the SMB share and then run rsync - both cause the same error message; if
I copy the destination directory, it will be removed during the rsync
run, though, as it doesn't exist on the FreeBSD machine).

The same problems appear with sysutils/ssync.

uname says: FreeBSD 4.9-STABLE #0: Wed Jan 21 21:04:46 CET 2004
rsync is rsync-2.6.0 from the ports collection

Any hints/suggestions more than welcome.

Thanks for your time,
Stefan

--vkogqOf2sHV7VnPd
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (FreeBSD)

iQGVAwUBQHBkqlaRERsSueCzAQJISgv+LUxyhZ95whkNDdMKgmctUtYwPfqjXBPi
CXkTv4hIc0cK2tShBch1c92Q/eaqVqkOpYsxvKZ+B1Xeb/mZlmkRe6ECHQONZnaQ
B6nlkXKA8N9FzWB7Xwk/eoBfHY/ljoogBnqVkZ/5GPAQYwDppo7a0fEh8zgO8NxI
fX55FjfXduluEWUjMNosHStfUQwuJZFWJbAmTM3nZXlBtAmMXbHd8XEtbdhPwAoU
9urUFnpzY75m7mJe9dXdtKqNjLdqWt7jspiMNuyZjiZ3npxIl+xvNxRFIW4YGzkE
l4YhDUHn27jD69qoTgYdGBtgxtiAEpV/6jjh6y5/M321BvU/TVwI1hSyfar5Y84m
5nwsBgJA1OuJyQI/Xr4xSY3CWg83qy/ty0cRYv0TA/PtB00RQ4j8qLLVXym1/5mi
O0kiiOTlj91sNrRs4Ni64jwIPuDeMQRcBoyRjn2amXP8Q25E/5c+sNvMQjRsZQcX
M/J7lcePsnWdUqCE3eh1ubbQW4eu2pZ1
=j/5v
-----END PGP SIGNATURE-----

--vkogqOf2sHV7VnPd--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20040404194026.GA930>