[cifs-protocol] Dirsync control
Matthieu Patou
mat at samba.org
Thu Jan 27 02:42:37 MST 2011
Hello Doc team,
I'm starting to work on the implementation of the dirsync control for
samba4.
I've got some questions about the maxsize parameter in the dirsync control
Paragraph 5.112.1.5 DirSyncControlValue of DRSR.pdf says
size: In the request control value, this field indicates the maximum
number of bytes expected in the
reply. In the reply control value, it is set to 0.
But quite a lot pages on msdn like
http://msdn.microsoft.com/en-us/library/Aa366978, says
maxAttributeCount: Specifies the maximum number of attributes to return.
This value may also be used to limit the amount of data returned.
What is the good definition ?
Also it seems that lower value limit so that if you specify a size (or
maxAttributeCount) smaller than that value it's ignored, I discovered
this by doing like this:
./bin/ldbsearch --controls="dirsync:1:0:200" -H ldap://172.16.100.25 -U
administrator%totoTATA123
./bin/ldbsearch --controls="dirsync:1:0:2000" -H ldap://172.16.100.25 -U
administrator%totoTATA123
./bin/ldbsearch --controls="dirsync:1:0:20000" -H ldap://172.16.100.25
-U administrator%totoTATA123
./bin/ldbsearch --controls="dirsync:1:0:200000" -H ldap://172.16.100.25
-U administrator%totoTATA123
./bin/ldbsearch --controls="dirsync:1:0:2000000" -H ldap://172.16.100.25
-U administrator%totoTATA123
As in every case the same amount of data is returned.
When trying with another bigger partition: schema
./bin/ldbsearch --controls="dirsync:1:0:200000" -H ldap://172.16.100.25
-U administrator%totoTATA123 -b
"CN=Schema,CN=Configuration,DC=w2k8r2,DC=home,DC=matws,DC=net" yield
464 results
./bin/ldbsearch --controls="dirsync:1:0:2000000" -H ldap://172.16.100.25
-U administrator%totoTATA123 -b
"CN=Schema,CN=Configuration,DC=w2k8r2,DC=home,DC=matws,DC=net" yield
879 results
The key value seems to be around 1000000 (1050000 more exactly), can you
confirm if there is a lower value, and if any upper value ? And if so is
it implementation dependent.
Also it seems that even if I specify a size of 2MiB (2 * 10^6 Bytes) the
result size in way bellow this limit, how the size is calculated then ?
Regards.
Matthieu
--
Matthieu Patou
Samba Team http://samba.org
Private repo http://git.samba.org/?p=mat/samba.git;a=summary
More information about the cifs-protocol
mailing list