* bring ufs to the latest incarnation of ufs-style object/file/bitmap
removal.
* Make the use of truncate() in diskd.c dependant upon #if USE_TRUNCATE,
like it should be.
/*
- * $Id: diskd.cc,v 1.4 2000/05/29 01:37:11 wessels Exp $
+ * $Id: diskd.cc,v 1.5 2000/06/26 20:17:12 adrian Exp $
*
* DEBUG: section -- External DISKD process implementation.
* AUTHOR: Harvest Derived
static int
do_unlink(diomsg * r, int len, const char *buf)
{
+#if USE_TRUNCATE
if (truncate(buf, 0) < 0) {
+#else
+ if (unlink(buf) < 0) {
+#endif
fprintf(stderr, "%d UNLNK id %d %s: ", (int) mypid, r->id, buf);
perror("truncate");
return -errno;
/*
- * $Id: store_io_ufs.cc,v 1.2 2000/05/12 00:29:20 wessels Exp $
+ * $Id: store_io_ufs.cc,v 1.3 2000/06/26 20:17:13 adrian Exp $
*
* DEBUG: section 79 Storage Manager UFS Interface
* AUTHOR: Duane Wessels
{
debug(79, 3) ("storeUfsUnlink: fileno %08X\n", e->swap_filen);
storeUfsDirReplRemove(e);
+ storeUfsDirMapBitReset(SD, e->swap_filen);
storeUfsDirUnlinkFile(SD, e->swap_filen);
}