X-Git-Url: http://git.indexdata.com/?p=idzebra-moved-to-github.git;a=blobdiff_plain;f=bfile%2Fbfile.c;h=a4b5353b798b8178ccdfaf767e7fd160cec7c5e6;hp=87c644756c753017499f5e9111ea0dd1bfeff907;hb=ecb3935e78cd9bcfdebafdee0834cfb1060d7b5e;hpb=729c4dfa231681232d61ba74f64e2dd70342dd42 diff --git a/bfile/bfile.c b/bfile/bfile.c index 87c6447..a4b5353 100644 --- a/bfile/bfile.c +++ b/bfile/bfile.c @@ -1,4 +1,4 @@ -/* $Id: bfile.c,v 1.45 2005-09-19 09:37:31 adam Exp $ +/* $Id: bfile.c,v 1.47 2006-05-10 08:13:17 adam Exp $ Copyright (C) 1995-2005 Index Data ApS @@ -437,3 +437,28 @@ int bf_free(BFile bf, int no, const zint *blocks) } return 0; } + +int bfs_register_directory_stat(BFiles bfs, int no, const char **directory, + double *used_bytes, double *max_bytes) +{ + return mf_area_directory_stat(bfs->register_area, no, directory, + used_bytes, max_bytes); +} + + +int bfs_shadow_directory_stat(BFiles bfs, int no, const char **directory, + double *used_bytes, double *max_bytes) +{ + if (!bfs->commit_area) + return 0; + return mf_area_directory_stat(bfs->commit_area, no, directory, + used_bytes, max_bytes); +} +/* + * Local variables: + * c-basic-offset: 4 + * indent-tabs-mode: nil + * End: + * vim: shiftwidth=4 tabstop=8 expandtab + */ +