Make VLockFile not DAFS-specific
[openafs.git] / src / vol / volume.h
index 227ec67..d34470b 100644 (file)
@@ -819,6 +819,12 @@ extern void VGetVolumePath(Error * ec, VolId volumeId, char **partitionp,
                           char **namep);
 extern char *vol_DevName(dev_t adev, char *wpath);
 
+struct VLockFile;
+extern void VLockFileInit(struct VLockFile *lf, const char *path);
+extern int VLockFileLock(struct VLockFile *lf, afs_uint32 offset,
+                         int locktype, int nonblock);
+extern void VLockFileUnlock(struct VLockFile *lf, afs_uint32 offset);
+
 #ifdef AFS_DEMAND_ATTACH_FS
 extern Volume *VPreAttachVolumeByName(Error * ec, char *partition, char *name);
 extern Volume *VPreAttachVolumeByName_r(Error * ec, char *partition, char *name);
@@ -847,12 +853,6 @@ extern void VCancelReservation_r(Volume * vp);
 extern int VChildProcReconnectFS_r(void);
 extern void VOfflineForVolOp_r(Error *ec, Volume *vp, char *message);
 
-struct VLockFile;
-extern void VLockFileInit(struct VLockFile *lf, const char *path);
-extern int VLockFileLock(struct VLockFile *lf, afs_uint32 offset,
-                         int locktype, int nonblock);
-extern void VLockFileUnlock(struct VLockFile *lf, afs_uint32 offset);
-
 struct VDiskLock;
 extern void VDiskLockInit(struct VDiskLock *dl, struct VLockFile *lf,
                           afs_uint32 offset);