/*
- * $Id: store_dir_aufs.cc,v 1.20 2000/12/05 09:11:30 wessels Exp $
+ * $Id: store_dir_aufs.cc,v 1.21 2000/12/09 00:35:01 wessels Exp $
*
* DEBUG: section 47 Store Directory Routines
* AUTHOR: Duane Wessels
struct stat sb;
sd->log.clean.write = NULL;
sd->log.clean.state = NULL;
+ state->new = xstrdup(storeAufsDirSwapLogFile(sd, ".clean"));
state->fd = file_open(state->new, O_WRONLY | O_CREAT | O_TRUNC);
if (state->fd < 0) {
+ xfree(state->new);
xfree(state);
return -1;
}
state->cur = xstrdup(storeAufsDirSwapLogFile(sd, NULL));
- state->new = xstrdup(storeAufsDirSwapLogFile(sd, ".clean"));
state->cln = xstrdup(storeAufsDirSwapLogFile(sd, ".last-clean"));
state->outbuf = xcalloc(CLEAN_BUF_SZ, 1);
state->outbuf_offset = 0;
/*
- * $Id: store_dir_coss.cc,v 1.11 2000/12/05 09:11:31 wessels Exp $
+ * $Id: store_dir_coss.cc,v 1.12 2000/12/09 00:35:04 wessels Exp $
*
* DEBUG: section 81 Store COSS Directory Routines
* AUTHOR: Eric Stern
CossInfo *cs = (CossInfo *) sd->fsdata;
struct _clean_state *state = xcalloc(1, sizeof(*state));
struct stat sb;
+ state->new = xstrdup(storeCossDirSwapLogFile(sd, ".clean"));
state->fd = file_open(state->new, O_WRONLY | O_CREAT | O_TRUNC);
if (state->fd < 0) {
+ xfree(state->new);
xfree(state);
return -1;
}
sd->log.clean.write = NULL;
sd->log.clean.state = NULL;
state->cur = xstrdup(storeCossDirSwapLogFile(sd, NULL));
- state->new = xstrdup(storeCossDirSwapLogFile(sd, ".clean"));
state->cln = xstrdup(storeCossDirSwapLogFile(sd, ".last-clean"));
state->outbuf = xcalloc(CLEAN_BUF_SZ, 1);
state->outbuf_offset = 0;
/*
- * $Id: store_dir_diskd.cc,v 1.27 2000/12/05 09:11:31 wessels Exp $
+ * $Id: store_dir_diskd.cc,v 1.28 2000/12/09 00:35:04 wessels Exp $
*
* DEBUG: section 47 Store Directory Routines
* AUTHOR: Duane Wessels
struct stat sb;
sd->log.clean.write = NULL;
sd->log.clean.state = NULL;
+ state->new = xstrdup(storeDiskdDirSwapLogFile(sd, ".clean"));
state->fd = file_open(state->new, O_WRONLY | O_CREAT | O_TRUNC);
if (state->fd < 0) {
+ xfree(state->new);
xfree(state);
return -1;
}
state->cur = xstrdup(storeDiskdDirSwapLogFile(sd, NULL));
- state->new = xstrdup(storeDiskdDirSwapLogFile(sd, ".clean"));
state->cln = xstrdup(storeDiskdDirSwapLogFile(sd, ".last-clean"));
state->outbuf = xcalloc(CLEAN_BUF_SZ, 1);
state->outbuf_offset = 0;
/*
- * $Id: store_dir_ufs.cc,v 1.17 2000/12/05 09:11:34 wessels Exp $
+ * $Id: store_dir_ufs.cc,v 1.18 2000/12/09 00:35:05 wessels Exp $
*
* DEBUG: section 47 Store Directory Routines
* AUTHOR: Duane Wessels
struct stat sb;
sd->log.clean.write = NULL;
sd->log.clean.state = NULL;
+ state->new = xstrdup(storeUfsDirSwapLogFile(sd, ".clean"));
state->fd = file_open(state->new, O_WRONLY | O_CREAT | O_TRUNC);
if (state->fd < 0) {
+ xfree(state->new);
xfree(state);
return -1;
}
state->cur = xstrdup(storeUfsDirSwapLogFile(sd, NULL));
- state->new = xstrdup(storeUfsDirSwapLogFile(sd, ".clean"));
state->cln = xstrdup(storeUfsDirSwapLogFile(sd, ".last-clean"));
state->outbuf = xcalloc(CLEAN_BUF_SZ, 1);
state->outbuf_offset = 0;