projects
/
idzebra-moved-to-github.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
The directory of the shadow table file can be specified by the new
[idzebra-moved-to-github.git]
/
bfile
/
mfile.c
diff --git
a/bfile/mfile.c
b/bfile/mfile.c
index
11ee0a6
..
6dd5fa1
100644
(file)
--- a/
bfile/mfile.c
+++ b/
bfile/mfile.c
@@
-4,7
+4,13
@@
* Sebastian Hammer, Adam Dickmeiss
*
* $Log: mfile.c,v $
* Sebastian Hammer, Adam Dickmeiss
*
* $Log: mfile.c,v $
- * Revision 1.15 1995-12-08 16:21:14 adam
+ * Revision 1.17 1996-03-20 13:29:11 quinn
+ * Bug-fix
+ *
+ * Revision 1.16 1995/12/12 15:57:57 adam
+ * Implemented mf_unlink. cf_unlink uses mf_unlink.
+ *
+ * Revision 1.15 1995/12/08 16:21:14 adam
* Work on commit/update.
*
* Revision 1.14 1995/12/05 13:12:37 quinn
* Work on commit/update.
*
* Revision 1.14 1995/12/05 13:12:37 quinn
@@
-399,7
+405,6
@@
int mf_write(MFile mf, int no, int offset, int num, const void *buf)
/* file needs to grow */
while (ps >= mf->files[mf->cur_file].blocks)
{
/* file needs to grow */
while (ps >= mf->files[mf->cur_file].blocks)
{
- logf (LOG_DEBUG, "File grows");
/* file overflow - allocate new file */
if (mf->files[mf->cur_file].dir->max_bytes >= 0 &&
(ps - mf->files[mf->cur_file].blocks + 1) * mf->blocksize >
/* file overflow - allocate new file */
if (mf->files[mf->cur_file].dir->max_bytes >= 0 &&
(ps - mf->files[mf->cur_file].blocks + 1) * mf->blocksize >
@@
-477,7
+482,10
@@
int mf_write(MFile mf, int no, int offset, int num, const void *buf)
*/
int mf_unlink(MFile mf)
{
*/
int mf_unlink(MFile mf)
{
- abort();
+ int i;
+
+ for (i = 0; i < mf->no_files; i++)
+ unlink (mf->files[i].path);
return 0;
}
return 0;
}