afs_int32 creationTime; /* time the transaction started */
afs_int32 returnCode; /* transaction error code */
struct Volume *volume; /* pointer to open volume */
- afs_uint32 volid; /* open volume's id */
+ VolumeId volid; /* open volume's id */
afs_int32 partition; /* open volume's partition */
afs_int32 dumpTransId; /* other side's trans id during a dump */
afs_int32 dumpSeq; /* next sequence number to use during a dump */
#ifdef AFS_PTHREAD_ENV
#define VTRANS_OBJ_LOCK_INIT(tt) \
- MUTEX_INIT(&((tt)->lock), "vtrans obj", MUTEX_DEFAULT, 0);
+ opr_mutex_init(&((tt)->lock));
#define VTRANS_OBJ_LOCK_DESTROY(tt) \
- MUTEX_DESTROY(&((tt)->lock))
+ opr_mutex_destroy(&((tt)->lock))
#define VTRANS_OBJ_LOCK(tt) \
- MUTEX_ENTER(&((tt)->lock))
+ opr_mutex_enter(&((tt)->lock))
#define VTRANS_OBJ_UNLOCK(tt) \
- MUTEX_EXIT(&((tt)->lock))
+ opr_mutex_exit(&((tt)->lock))
#else
#define VTRANS_OBJ_LOCK_INIT(tt)
#define VTRANS_OBJ_LOCK_DESTROY(tt)
#define RV_NODEL 0x100000
#define RV_RWONLY 0x200000
+/* Values for the UV_ReleaseVolume flags parameters */
+#define REL_COMPLETE 0x000001 /* force a complete release */
+#define REL_FULLDUMPS 0x000002 /* force full dumps */
+#define REL_STAYUP 0x000004 /* dump to clones to avoid offline time */
+
struct ubik_client;
extern afs_uint32 vsu_GetVolumeID(char *astring, struct ubik_client *acstruct, afs_int32 *errp);
extern int vsu_ExtractName(char rname[], char name[]);