From: Jeffrey Altman Date: Sat, 5 Mar 2011 15:06:50 +0000 (-0500) Subject: volser: restore diskPartition[64] lock_fd comment X-Git-Tag: upstream/1.8.0_pre1^2~4097 X-Git-Url: https://git.michaelhowe.org/gitweb/?a=commitdiff_plain;h=03651201ef2b2e3745ff3cf36af41f3ea27154b1;p=packages%2Fo%2Fopenafs.git volser: restore diskPartition[64] lock_fd comment 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 Tested-by: BuildBot Reviewed-by: Jeffrey Altman Tested-by: Jeffrey Altman --- diff --git a/src/volser/volint.xg b/src/volser/volint.xg index 4d20f0a7a..5febc6330 100644 --- a/src/volser/volint.xg +++ b/src/volser/volint.xg @@ -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 {