volser: restore diskPartition[64] lock_fd comment
[openafs.git] / src / volser / volint.xg
index 5125f3a..5febc63 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
@@ -51,6 +51,15 @@ statindex 16
 #define     VOLGETSIZE          65537
 #define     VOLDUMPV2           65538
 #define     VOLDISKPART64       65539
+#define     VOLOSDSUPPORT       65540
+#define     VOLTRAVERSE         65541
+#define     VOLWIPECAND         65542
+#define     OLDVOLSALVAGE       65543
+#define     VOLARCHCANDold      65544
+#define     VOLSALVAGE          65545
+#define     VOLLISTOBJECTS      65546
+#define     VOLSPLIT            65547
+#define     VOLARCHCAND         65548
 
 /* Bits for flags for DumpV2 */
 %#define     VOLDUMPV2_OMITDIRS 1
@@ -201,9 +210,10 @@ struct pIDs {
 };
 
 struct diskPartition {
-        char   name[32];       /* Mounted partition name */
-        char   devName[32];    
-        int    lock_fd;
+       char    name[32];       /* Mounted partition name */
+       char    devName[32];
+       int     lock_fd;        /* assigned from DiskPartition FD_t
+                                   which is 64-bit HANDLE on Windows */
        int     totalUsable;
        int     free;
        int     minFree;
@@ -211,13 +221,13 @@ struct diskPartition {
 };
 
 struct diskPartition64 {
-    char       name[256];      /* Mounted partition name */
-    char       devName[256];   
-    int                lock_fd;
-    afs_int64  totalUsable;
-    afs_int64  free;
-    afs_int64  minFree;
-
+        char           name[256];      /* Mounted partition name */
+        char           devName[256];
+        int            lock_fd;        /* assigned from DiskPartition64 FD_t
+                                           which is a 64-bit HANDLE on Windows */
+        afs_int64      totalUsable;
+        afs_int64      free;
+        afs_int64      minFree;
 };
 
 struct restoreCookie {
@@ -434,3 +444,10 @@ proc PartitionInfo64(
     IN string name<>,
     OUT struct diskPartition64 *partition
 ) = VOLDISKPART64;
+
+proc SplitVolume (
+  IN afs_uint32 vid,
+  IN afs_uint32 newid,
+  IN afs_uint32 where,
+  IN afs_int32 verbose
+) split = VOLSPLIT;