static void PurgeHeader_r(Volume * vp);
static void PurgeHeader(Volume * vp);
+/* No lock needed. Only the volserver will call this, and only one transaction
+ * can have a given volume (volid/partition pair) in use at a time
+ */
void
-VPurgeVolume_r(Error * ec, Volume * vp)
+VPurgeVolume(Error * ec, Volume * vp)
{
struct DiskPartition *tpartp = vp->partition;
char purgePath[MAXPATHLEN];
FSYNC_VolOp(V_id(vp), tpartp->name, FSYNC_VOL_BREAKCBKS, 0, NULL);
}
-void
-VPurgeVolume(Error * ec, Volume * vp)
-{
- VOL_LOCK;
- VPurgeVolume_r(ec, vp);
- VOL_UNLOCK;
-}
-
#define MAXOBLITATONCE 1000
/* delete a portion of an index, adjusting offset appropriately. Returns 0 if
things work and we should be called again, 1 if success full and done, and -1