After updating our Amanda Backup Server Amun running Debian/Etch from Samba 3.0.28 to 3.2.3 smbclient reports a size of 0 Bytes on some partitions. amun:# smbclient //djhuti.domainname/systembackup -U domainname/backup -c "archive 0; recurse; du" -d1 Enter domainname/backup's password: Domain=[DOMAINNAME] OS=[Windows Server 2003 R2 3790 Service Pack 2] Server=[Windows Server 2003 R2 5.2] 56698 blocks of size 4194304. 49472 blocks available Total number of bytes: 0 To compare here the output of the same command with smbclient 3.0.14a on another host running Debian/Sarge. nuit:~$ smbclient //djhuti.datasysteme/systembackup -U datasysteme/backup -c "archive 0; recurse; du" -d1 Password: Domain=[DATASYSTEME] OS=[Windows Server 2003 R2 3790 Service Pack 2] Server=[Windows Server 2003 R2 5.2] 56698 blocks of size 4194304. 49472 blocks available Total number of bytes: 15942706031 I will attach level 10 debug output from both commands. This is maybe related to bug 5436. Thanks, Martin
Created attachment 3611 [details] Debug Log Level 10 for version 3.2.3 gzipped debug log of smbclient //djhuti.domainname/systembackup -U domainname/backup -c "archive 0; recurse; du" -d10
Created attachment 3612 [details] Debug Log Level 10 for version 3.0.14 gzipped debug log of smbclient //djhuti.domainname/systembackup -U domainname/backup -c "archive 0; recurse; du" -d10
After some additional testing I found that: - smbclient 3.2.3 reports a size of 1537MB for Share //djhuti/C$, no matter if "archive 0" or "archive 1" is used. This drive contains 15GB of data. - The size reported with "archive 1" did not change if I set or clear the "archiv bit" of some Files or a complete root directory recursively. I append the level 10 log of both commands.
Created attachment 3624 [details] smbclient //djhuti.domainname/C$ -c "archive 0; recurse; du" -d10 Level 10 debug log of the following command.//djhuti.domainname/C$ contains 15GB of data, smbclient reports only 2GB with "archive 0" amun:/home/guru# smbclient //djhuti.domainname/C$ -U domainname/backup -c "archive 0; recurse; du" -d10 -l /home/guru Enter domainname/backup's password: 49999 blocks of size 1048576. 41828 blocks available Total number of bytes: 2145877442
(In reply to comment #3) > - smbclient 3.2.3 reports a size of 1537MB for Share //djhuti/C$, no matter if > "archive 0" or "archive 1" is used. This drive contains 15GB of data. Sorry, I mean 2046MB instead of 1537MB.
Created attachment 3625 [details] smbclient //djhuti.domainname/C$ -c "archive 1; recurse; du" -d10 Level 10 debug log of the following command.//djhuti.domainname/C$ contains 15GB of data, smbclient reports only 2GB with "archive 1". No matter how many archive bits are set or cleared. amun:/home/guru# smbclient //djhuti.domainname/C$ -U domainname/backup -c "archive 1; recurse; du" -d10 -l /home/guru Enter domainname/backup's password: 49999 blocks of size 1048576. 41828 blocks available Total number of bytes: 2145741762
*** This bug has been marked as a duplicate of 6021 ***