volser: restore diskPartition[64] lock_fd comment
authorJeffrey Altman <jaltman@your-file-system.com>
Sat, 5 Mar 2011 15:06:50 +0000 (10:06 -0500)
committerJeffrey Altman <jaltman@openafs.org>
Sat, 5 Mar 2011 23:45:41 +0000 (15:45 -0800)
The diskPartition[64] wire structures contain an int to represent
the file descriptor.  This field is too small to represent the
Windows file descriptor which is a 64-bit HANDLE.  A comment had
been added by Rod Widdowson.  Restore it.

Change-Id: Icf513060802e7f057f6ca735afb26d22edbf6446
Reviewed-on: http://gerrit.openafs.org/4138
Reviewed-by: Rod Widdowson <rdw@steadingsoftware.com>
Tested-by: BuildBot <buildbot@rampaginggeek.com>
Reviewed-by: Jeffrey Altman <jaltman@openafs.org>
Tested-by: Jeffrey Altman <jaltman@openafs.org>

src/volser/volint.xg

index 4d20f0a..5febc63 100644 (file)
@@ -210,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;
@@ -220,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 {