Bug 3045 - smbclient tar creation does not handle well write errors
smbclient tar creation does not handle well write errors
Status: NEW
Product: Samba 3.0
Classification: Unclassified
Component: Client Tools
All All
: P3 major
: none
Assigned To: Samba Bugzilla Account
Samba QA Contact
Depends on:
  Show dependency treegraph
Reported: 2005-08-26 05:29 UTC by Pierre Bourgin
Modified: 2005-08-26 05:29 UTC (History)
0 users

See Also:


Note You need to log in before you can comment on or make changes to this bug.
Description Pierre Bourgin 2005-08-26 05:29:28 UTC
smbclient //machine/res pass -U user -Tc /smallfs/test.tar
does not handle well error on writing to file (or tape device).

If the filesystem becomes FULL while write test.tar file:

* In this case, the return code of smclient is 0, which is not right since an
error occured.

* smbclient logs "Error writing to tar file - No space left on device
Didn't get entire file. size=xxx, nread=yyy", but still continue to "download"
files from CIFS ressource. Annoying (waste time and cpu).

This happens (at least) with:
-  samba-3.0.5/Linux RedHat 9.0/x86, 
-  samba-2.2.8a/Solaris8/sparc,
-  samba-3.0.14a/Solaris8/sparc,

Since these releases, the corresponding source code
"trunk/source/client/clitar.c" does not seem to have changed in this way since
these releases.