Difference between revisions of "TDB Locations"

Line 5: Line 5:
 
!TDB File || API || Location || Info
 
!TDB File || API || Location || Info
 
|-
 
|-
|account_policy.tdb  || db          ||    state  ||       
+
|account_policy.tdb  || dbwrap      ||    state  ||       
 
|-
 
|-
|autorid.tdb          || db          ||    state  ||
+
|autorid.tdb          || dbwrap      ||    state  ||
 
|-
 
|-
|brlock.tdb          || db          ||    lock    ||  
+
|brlock.tdb          || dbwrap      ||    lock    ||  
 
|-
 
|-
|connections.tdb      || db          ||    lock    || TDB_CLEAR_IF_FIRST
+
|connections.tdb      || dbwrap      ||    lock    || TDB_CLEAR_IF_FIRST
 
|-
 
|-
 
|eventlog/*.tdb      || tdb        ||    state  ||  
 
|eventlog/*.tdb      || tdb        ||    state  ||  
 
|-
 
|-
|g_lock.tdb          || db          ||    lock    || TDB_CLEAR_IF_FIRST
+
|g_lock.tdb          || dbwrap      ||    lock    || TDB_CLEAR_IF_FIRST
 
|-
 
|-
 
|gencache.tdb        || tdb        ||    lock    || TDB_CLEAR_IF_FIRST*
 
|gencache.tdb        || tdb        ||    lock    || TDB_CLEAR_IF_FIRST*
Line 21: Line 21:
 
|gencache_notrans.tdb || tdb        ||    lock    || TDB_CLEAR_IF_FIRST*
 
|gencache_notrans.tdb || tdb        ||    lock    || TDB_CLEAR_IF_FIRST*
 
|-
 
|-
|group_mapping.tdb    || db          ||    state  ||  
+
|group_mapping.tdb    || dbwrap      ||    state  ||  
 
|-
 
|-
|idmap2.tdb          || db          ||    private ||  
+
|idmap2.tdb          || dbwrap      ||    private ||  
 
|-
 
|-
|locking.tdb          || db          ||    lock    || TDB_CLEAR_IF_FIRST
+
|locking.tdb          || dbwrap      ||    lock    || TDB_CLEAR_IF_FIRST
 
|-
 
|-
 
|login_cache.tdb      || tdb        ||    cache  ||  
 
|login_cache.tdb      || tdb        ||    cache  ||  
Line 35: Line 35:
 
|netsamlogon_cache.tdb|| tdb        ||    cache  || TDB_CLEAR_IF_FIRST*
 
|netsamlogon_cache.tdb|| tdb        ||    cache  || TDB_CLEAR_IF_FIRST*
 
|-
 
|-
|notify.tdb          || wrap_open   ||    lock    || TDB_CLEAR_IF_FIRST
+
|notify.tdb          || tdb_wrapn   ||    lock    || TDB_CLEAR_IF_FIRST
 
|-
 
|-
|notify_onelevel.tdb  || db          ||    lock    || TDB_CLEAR_IF_FIRST
+
|notify_onelevel.tdb  || dbwrap      ||    lock    || TDB_CLEAR_IF_FIRST
 
|-
 
|-
 
|ntdrivers.tdb        || tdb        ||    state  || removed in 3.6
 
|ntdrivers.tdb        || tdb        ||    state  || removed in 3.6
Line 45: Line 45:
 
|ntprinters.tdb      || tdb        ||    state  || removed in 3.6
 
|ntprinters.tdb      || tdb        ||    state  || removed in 3.6
 
|-
 
|-
|passdb.tdb          || db          ||    private ||
+
|passdb.tdb          || dbwrap      ||    private ||
 
|-
 
|-
 
|perfmon/data.tdb    || tdb        ||    state  ||  
 
|perfmon/data.tdb    || tdb        ||    state  ||  
Line 51: Line 51:
 
|perfmon/names.tdb    || tdb        ||    state  ||  
 
|perfmon/names.tdb    || tdb        ||    state  ||  
 
|-
 
|-
|printer_list.tdb    || db          ||    lock    || TDB_CLEAR_IF_FIRST
+
|printer_list.tdb    || dbwrap      ||    lock    || TDB_CLEAR_IF_FIRST
 
|-
 
|-
 
|printing/*.tdb      || tdb        ||    cache  ||  
 
|printing/*.tdb      || tdb        ||    cache  ||  
 
|-
 
|-
|registry.tdb        || db          ||    state  ||  
+
|registry.tdb        || dbwrap      ||    state  ||  
 
|-
 
|-
 
|schannel_store.tdb  || tdb_wrap    ||    private || TDB_CLEAR_IF_FIRST
 
|schannel_store.tdb  || tdb_wrap    ||    private || TDB_CLEAR_IF_FIRST
 
|-
 
|-
|secrets.tdb          || db          ||    private ||  
+
|secrets.tdb          || dbwrap      ||    private ||  
 
|-
 
|-
 
|serverid.tdb        || tdb_wrap    ||    lock    || TDB_CLEAR_IF_FIRST
 
|serverid.tdb        || tdb_wrap    ||    lock    || TDB_CLEAR_IF_FIRST
 
|-
 
|-
|sessionid.tdb        || db          ||    lock    || TDB_CLEAR_IF_FIRST
+
|sessionid.tdb        || dbwrap      ||    lock    || TDB_CLEAR_IF_FIRST
 
|-
 
|-
|share_info.tdb      || db          ||    state  ||  
+
|share_info.tdb      || dbwrap      ||    state  ||  
 
|-
 
|-
 
|winbindd_cache.tdb  || tdb        ||    cache  || TDB_CLEAR_IF_FIRST*
 
|winbindd_cache.tdb  || tdb        ||    cache  || TDB_CLEAR_IF_FIRST*
Line 73: Line 73:
 
|wins.tdb            || tdb        ||    state  || TDB_CLEAR_IF_FIRST
 
|wins.tdb            || tdb        ||    state  || TDB_CLEAR_IF_FIRST
 
|-
 
|-
|xattr.tdb            || db          ||    state  ||  
+
|xattr.tdb            || dbwrap      ||    state  ||  
 
|-
 
|-
 
|                    ||            ||            ||
 
|                    ||            ||            ||
Line 81: Line 81:
 
|test.tdb            || tdb_wrap    ||    torture || Test TDB
 
|test.tdb            || tdb_wrap    ||    torture || Test TDB
 
|-
 
|-
|transtest.tdb        || db          ||    torture || Test TDB
+
|transtest.tdb        || dbwrap      ||    torture || Test TDB
 
|}
 
|}
  

Revision as of 12:50, 3 February 2011

List of Samba3 TDB files and their locations.

TDB File API Location Info
account_policy.tdb dbwrap state
autorid.tdb dbwrap state
brlock.tdb dbwrap lock
connections.tdb dbwrap lock TDB_CLEAR_IF_FIRST
eventlog/*.tdb tdb state
g_lock.tdb dbwrap lock TDB_CLEAR_IF_FIRST
gencache.tdb tdb lock TDB_CLEAR_IF_FIRST*
gencache_notrans.tdb tdb lock TDB_CLEAR_IF_FIRST*
group_mapping.tdb dbwrap state
idmap2.tdb dbwrap private
locking.tdb dbwrap lock TDB_CLEAR_IF_FIRST
login_cache.tdb tdb cache
messages.tdb tdb_wrap lock TDB_CLEAR_IF_FIRST
mutex.tdb tdb_wrap lock
netsamlogon_cache.tdb tdb cache TDB_CLEAR_IF_FIRST*
notify.tdb tdb_wrapn lock TDB_CLEAR_IF_FIRST
notify_onelevel.tdb dbwrap lock TDB_CLEAR_IF_FIRST
ntdrivers.tdb tdb state removed in 3.6
ntforms.tdb tdb state removed in 3.6
ntprinters.tdb tdb state removed in 3.6
passdb.tdb dbwrap private
perfmon/data.tdb tdb state
perfmon/names.tdb tdb state
printer_list.tdb dbwrap lock TDB_CLEAR_IF_FIRST
printing/*.tdb tdb cache
registry.tdb dbwrap state
schannel_store.tdb tdb_wrap private TDB_CLEAR_IF_FIRST
secrets.tdb dbwrap private
serverid.tdb tdb_wrap lock TDB_CLEAR_IF_FIRST
sessionid.tdb dbwrap lock TDB_CLEAR_IF_FIRST
share_info.tdb dbwrap state
winbindd_cache.tdb tdb cache TDB_CLEAR_IF_FIRST*
winbindd_idmap.tdb tdb state
wins.tdb tdb state TDB_CLEAR_IF_FIRST
xattr.tdb dbwrap state
torture.tdb tdb torture Test TDB
test.tdb tdb_wrap torture Test TDB
transtest.tdb dbwrap torture Test TDB


TDB_CLEAR_IF_FIRST means that Samba clears the TDB on each first open (for example after a reboot).
* will be only cleaned if file is corrupt