cb_size.c 568 B

123456789101112131415161718192021222324252627282930
  1. /** BEGIN COPYRIGHT BLOCK
  2. * Copyright (C) 2001 Sun Microsystems, Inc. Used by permission.
  3. * Copyright (C) 2005 Red Hat, Inc.
  4. * All rights reserved.
  5. *
  6. * License: GPL (version 3 or any later version).
  7. * See LICENSE for details.
  8. * END COPYRIGHT BLOCK **/
  9. #ifdef HAVE_CONFIG_H
  10. # include <config.h>
  11. #endif
  12. #include "cb.h"
  13. int
  14. cb_db_size( Slapi_PBlock *pb )
  15. {
  16. /*
  17. ** Return the size in byte of the local database storage
  18. ** Size is 0 for a chaining backend
  19. */
  20. unsigned int size=0;
  21. slapi_pblock_set( pb, SLAPI_DBSIZE, &size );
  22. return 0;
  23. }