[Samba] SMBCLIENT du, recurse and mask

Jeremy Allison jra at samba.org
Thu Nov 12 16:51:51 MST 2009


On Thu, Nov 12, 2009 at 11:47:59AM -0800, dave mathis wrote:
> Recently after installing Amanda backup I discovered that the
> smbclient du command doesn't really work correctly.
> 
> If recurse in on, du starts at '/', with recurse off and
> no arg, 0 is returned.
> 
> If the mask '*' is passed, only files without a dot in the
> filename are considered.  With '*.*' all files are considered
> and du sums only the files in the current directory, no sub-
> directories are summed.
> Behavior is the same if mask is set independently.
> 
> Incorrect behavior exists in smbclient 3.2.4, 3.2.7, 3.3.4 and
> 3.4.3
> CORRECT behavior exists in 3.0.36 with 3.4.3 libraries and support.
> 
> There are release notes that this issue existed some time ago and
> was resolved.  Doesn't seem so in my case.
> 
> 
> SuSE 11.1, samba 3.2.7 as PDC, a few windows clients and a few
> other SuSE clients.
> 
> Anyone else seen du behaving badly?

I just experimented with du in the 3.0.x tree and in
current master, and can't see any difference between
them (except master is faster, probably due to the new
async code).

Can you log a bug with *explicit* instructions to
reproduce the problems you see please ?

Thanks,

Jeremy.


More information about the samba mailing list