smbclient and large file size reporting?

JON GERDES gerdesj at gkn-whl.co.uk
Tue Dec 5 17:41:25 GMT 2000


Sorry, I wasn't watching properly ... You are correct that dfree will not be much use for a share *from* an NT box *to* smbclient.

One thought is you may have hit a file size limitation on Linux AFAIK ext2 is limited to 2Gb files for example, so its possible that Samba is affected in the same way.

I'll try duplicating your problem

Cheers
JG

>>> "Eric A. Sproul" <esproul at cstone.net> 12/05/00 02:35pm >>>
"Eric A. Sproul" wrote:
> 
> JON GERDES wrote:
> >
> > If you run "df" or "du" do you get accurate answers ?  Check out the "dfree command"  parameter in smb.conf.  You can specify your own script if necessary.  See man 5 smb.conf for details.
> 
> Jon,
> Thanks for the advice.  I will try a "dfree" script on tonight's run.

Well it didn't work.  Amanda still reports getting garbage from
smbclient:

calculating for amname '//nitrous/backups', dirname '//nitrous/backups'
sendsize: getting size via smbclient for //nitrous/backups level 0
sendsize: running "/usr/bin/smbclient '\\nitrous\backups' XXXXX -d 0 -U
backup -E -c 'archive 0;recurse;du'"
added interface ip=xxx.xxx.xxx.13 bcast=xxx.xxx.xxx.255
nmask=255.255.255.0

                34727 blocks of size 262144. 15960 blocks available
Total number of bytes: -301180928
.....
(no size line match in above smbclient output)


If the Unix machine is the client, where would the dfree script come
into play?  It looks to me as though dfree is for estimating filesystem
sizes on a share that is being served out *from* the Unix host.  So
smbclient seems not to be utilizing it.

This is my dfree script:
#!/bin/sh
df $1 | tail -1 | awk '{print $3" "$4}'

And in the smb.conf file:
dfree command="/usr/local/samba/bin/dfree /mnt/nitrous"

As mentioned before, even with the dfree script, du and df still
disagree on the total bytes.  I got rid of one of the two 3 GB files
(only one file is now present), and now du reports 3,900,182 KB while df
reports 4,804,352 KB.  And ls reports 3,993,786,368 bytes.  I'm lost.  I
just want to get this sucker backed up!  :)

Anyone else know what I can do?
Thanks,
Eric

-- 
Eric Sproul, Systems Administrator
Cornerstone Networks Inc. (http://www.cstone.net)
-------------------------------------------------
If James Bond was an Amish spy, he would drink buttermilk. Shaken not
churned.






More information about the samba mailing list