cb_size.c 449 B

12345678910111213141516171819202122
  1. /** BEGIN COPYRIGHT BLOCK
  2. * Copyright 2001 Sun Microsystems, Inc.
  3. * Portions copyright 1999, 2001-2003 Netscape Communications Corporation.
  4. * All rights reserved.
  5. * END COPYRIGHT BLOCK **/
  6. #include "cb.h"
  7. int
  8. cb_db_size( Slapi_PBlock *pb )
  9. {
  10. /*
  11. ** Return the size in byte of the local database storage
  12. ** Size is 0 for a chaining backend
  13. */
  14. unsigned int size=0;
  15. slapi_pblock_set( pb, SLAPI_DBSIZE, &size );
  16. return 0;
  17. }