[OpenAFS] Unable to 'move' volume....volume ID too large / cloned volume not findable?

McKee, Shawn smckee@umich.edu
Thu, 19 Mar 2009 09:26:59 -0400


------=_NextPart_000_0028_01C9A874.DA82D5D0
Content-Type: text/plain;
	charset="UTF-8"
Content-Transfer-Encoding: 7bit

Thanks Jeffrey,

Yes, I agree...you have found the issue.  I  am surprised no one else has hit 
this before (maybe they have but I didn't find this problem in my searching).

I guess this will take a patch to the code for existing versions to get this 
resolved.

Thanks again,

Shawn

-----Original Message-----
From: Jeffrey Altman [mailto:jaltman@secure-endpoints.com]
Sent: Thursday, March 19, 2009 9:19 AM
To: McKee, Shawn
Cc: openafs-info@openafs.org
Subject: Re: [OpenAFS] Unable to 'move' volume....volume ID too large / cloned 
volume not findable?

McKee, Shawn wrote:
> Could not fetch the entry for volume number 18446744072096448530 from VLDB
>
> I am assuming the "large" cloned volume ID is causing the problem as opposed 
> to an inability to create a cloned volume.  I can make replicas on linat08 
> for existing volumes without a problem.
>
> NOTE: The hex representations of the "cloned" volume from the move attempt 
> above and the 'vos examine':
>
> [linat08:local]# 2681864210 = 0x 9FDA0012
> [linat08:local]# 18446744072096448530 = 0x FFFFFFFF9FDA0012
>
> Any suggestions?   This seems like a 64 vs 32 bit issue.

Its a signed vs unsigned int problem.

afsint.h and afscbint.h include

 typedef afs_uint32 VolumeId;

which is used throughout the src/vol package for volume ids.
In volser/vos.c and volser/vsprocs.c the volume id variables are
defined as signed 32-bit (afs_int32).

There are also some signed vs unsigned issued in some of the
protocol structures.  I believe the type VolumeId should be
used consistently to define types of volume id variables.

In vldbint.xg:

struct [nu]vldbentry uses afs_uint32 for the volumeId array but
afs_int32 for the cloneId.  Same for VldbUpdateEntry.

VldbListByAttributes uses afs_int32 for the volumeid.

This is not a full examination but I believe it shows where the
problem lies.

Jeffrey Altman








------=_NextPart_000_0028_01C9A874.DA82D5D0
Content-Type: application/x-pkcs7-signature; name="smime.p7s"
Content-Transfer-Encoding: base64
Content-Disposition: attachment; filename="smime.p7s"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