smbclient size report

Dejan Muhamedagic dejan at yunix.co.yu
Sun Apr 19 16:21:40 GMT 1998


Hello everybody,

I'm having problems trying to get smbclient give me right size
for amanda backup.

I'll give two examples:  a 3.6GB w95 share and a 500MB nt4.0 share.
With w95 smbclient gives inconsistent results (I saw in your
maillists' archives that it may be that w95 can't handle that
big partitions).  This is what amanda is using to get the size:

smbclient '\\MSPC\SHARE' XXX -d 3 -U backup -E -W DOM -c 'archive 0;recurse;dir'

With w95 share I got the following:

$ for i in 1 2 3; do
> smbclient '\\W95\3.6GB' XXX -d 3 -U backup -E -W DOM \
> -c 'archive 0;recurse;dir' 2>&1 | tail -2
> done

                65526 blocks of size 32768. 20848 blocks available
Total bytes listed: 1004886137
                65526 blocks of size 32768. 20848 blocks available
Total bytes listed: 1883303817
                65526 blocks of size 32768. 20848 blocks available
Total bytes listed: -2034347422

As you can see all 3 times the result was different.  Actual amount
used on this share is 2.95GB (at least that's what disk:properties
says about it;  however, (65526-20848)*32768 yields only 1464008704,
so there's probably something wrong with this disk;  also, 65526*32768
is ~2GB (!?);  MS, and my coleague, are having problems, again).

On an NT4.0 share smbclient gave consistent but wrong results:

                65012 blocks of size 8192. 3534 blocks available
Total bytes listed: 788769467

(this one holds around 500MB of data).

Where is the problem: with M$ or with samba?

-c 'archive 0;recurse;dir':  there's no documentation on
archive command, or I wasn't able to find it.

smbclient is from the latest distribution: samba-1.9.18p4
compiled with OSF's native cc and our samba-host is an
alpha running DU4.0B.

Since I'm not subscribed to your lists, please e-mail me directly and
I'll send a summary to the list.

Thanks for your time.

Sincerely,

Dejan Muhamedagic   dejan at yunix.co.yu


More information about the samba mailing list