diff options
author | Jeremy Allison <jra@samba.org> | 2000-12-02 01:04:11 +0000 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 2000-12-02 01:04:11 +0000 |
commit | 040de369b2bb983c853577f57da1c972a93a0acf (patch) | |
tree | f0158c4165a50b799ff7b6e44e311865c0f889b0 /source3/tdb/tdbtool.c | |
parent | e23067ad65778aed2437d96719968757101ec08e (diff) | |
download | samba-040de369b2bb983c853577f57da1c972a93a0acf.tar.gz samba-040de369b2bb983c853577f57da1c972a93a0acf.tar.xz samba-040de369b2bb983c853577f57da1c972a93a0acf.zip |
Added print_freelist command.
Jeremy.
(This used to be commit ee89ca9e68abb23fc26cd1378e02e56d0d725e55)
Diffstat (limited to 'source3/tdb/tdbtool.c')
-rw-r--r-- | source3/tdb/tdbtool.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/source3/tdb/tdbtool.c b/source3/tdb/tdbtool.c index 4400f5d8e0..0373aee9a7 100644 --- a/source3/tdb/tdbtool.c +++ b/source3/tdb/tdbtool.c @@ -67,6 +67,7 @@ tdbtool: store key data : store a record (replace) show key : show a record by key delete key : delete a record by key + free : print the database freelist "); } @@ -273,6 +274,8 @@ int main(int argc, char *argv[]) tdb_traverse(tdb, print_rec, NULL); } else if (strcmp(tok,"info") == 0) { info_tdb(); + } else if (strcmp(tok, "free") == 0) { + tdb_printfreelist(tdb); } else { help(); } |