[OpenAFS] context menu handler slow in OpenAFS 1.5.8 for Windows

Jeffrey Altman jaltman@secure-endpoints.com
Wed, 13 Sep 2006 20:29:12 -0400


This is a cryptographically signed message in MIME format.

--------------ms000100090601080600040501
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit

There you go.  Its taking pioctl() many tries before it can
find the name form that matches the authentication name used
to login the session.  This name is required in order for
authentication to the AFS SMB server to succeed since that is
the only name that will be accepted over the loopback interface.

I don't have a solution for you.  The real fix for this is to
stop using an SMB server and instead begin use of a Network
Redirector.  Completing this work is a long time off.

Jeffrey Altman



Gurganus, Brant L wrote:
> I turned on the pioctl debugging as you suggested and these were the
> results. This is a domain-joined limited user account.
> 
>  
> 
> 0x4c3 is:
> 
> ERROR_SESSION_CREDENTIAL_CONFLICT
> 1219
> 
> 	
> 
> Multiple connections to a server or shared resource by the same user,
> using more than one user name, are not allowed. Disconnect all previous
> connections to the server or shared resource and try again.
> 
>  
> 
>  
> 
>  
> 
> C:\Documents and Settings\gurganbl>fs whereis "My Documents"
> 
> pioctl CreateFile(C:\_._AFS_IOCTL_._) failed: 0x2
> 
>         [The system cannot find the file specified.
> 
> ]
> 
> pioctl Explorer logon user: [gurganbl@rose-hulman.edu]
> 
> pioctl WNetAddConnection2(\\afs,gurganbl@rose-hulman.edu) failed: 0x4C3
> 
> pioctl WNetAddConnection2(\\afs\all,gurganbl@rose-hulman.edu) failed: 0x4C3
> 
> pioctl LSA Principal logon user: [gurganbl@MS.ROSE-HULMAN.EDU]
> 
> pioctl WNetAddConnection2(\\afs,gurganbl@MS.ROSE-HULMAN.EDU) failed: 0x4C3
> 
> pioctl WNetAddConnection2(\\afs\all,gurganbl@MS.ROSE-HULMAN.EDU) failed:
> 0x4C3
> 
> pioctl SamCompatible logon user: [MSROSE-HULMAN\gurganbl]
> 
> pioctl CreateFile(C:\_._AFS_IOCTL_._) failed: 0x2
> 
>         [The system cannot find the file specified.
> 
> ]
> 
> fs: Invalid argument; it is possible that My Documents is not in AFS.
> 
>  
> 
> C:\Documents and Settings\gurganbl>fs whereis "My Documents"
> 
> pioctl CreateFile(C:\_._AFS_IOCTL_._) failed: 0x2
> 
>         [The system cannot find the file specified.
> 
> ]
> 
> pioctl Explorer logon user: [gurganbl@rose-hulman.edu]
> 
> pioctl WNetAddConnection2(\\afs,gurganbl@rose-hulman.edu) failed: 0x4C3
> 
> pioctl WNetAddConnection2(\\afs\all,gurganbl@rose-hulman.edu) failed: 0x4C3
> 
> pioctl LSA Principal logon user: [gurganbl@MS.ROSE-HULMAN.EDU]
> 
> pioctl WNetAddConnection2(\\afs,gurganbl@MS.ROSE-HULMAN.EDU) failed: 0x4C3
> 
> pioctl WNetAddConnection2(\\afs\all,gurganbl@MS.ROSE-HULMAN.EDU) failed:
> 0x4C3
> 
> pioctl SamCompatible logon user: [MSROSE-HULMAN\gurganbl]
> 
> pioctl CreateFile(C:\_._AFS_IOCTL_._) failed: 0x2
> 
>         [The system cannot find the file specified.
> 
> ]
> 
> fs: Invalid argument; it is possible that My Documents is not in AFS.
> 
>  
> 
> -----Original Message-----
> From: Jeffrey Altman [mailto:jaltman@secure-endpoints.com]
> Sent: Wednesday, September 13, 2006 6:37 PM
> To: Gurganus, Brant L
> Cc: openafs-info@openafs.org
> Subject: Re: [OpenAFS] context menu handler slow in OpenAFS 1.5.8 for
> Windows
> 
>  
> 
> Turn on pioctl() debugging (as per the debugging section of the
> 
> OpenAFS Release Notes), and then run the "fs whereis" test again.
> 
>  
> 
> I suspect you will find the problem is that your systems are having a
> 
> hard time authenticating to the AFS Client Service.  In which case
> 
> all operations to AFS are suffering the same delays
> 
>  
> 
> Jeffrey Altman
> 
>  
> 
>  
> 
>  
> 
> Gurganus, Brant L wrote:
> 
>> The delay characteristics are reproducible using the command you
> 
>> mentioned. If it is newly run, there is a delay. If it has recently ran
> 
>> (probably has results in a cache), then it finishes quickly.
> 
>>
> 
>> There appears to be no difference in output of the command when there is
> 
>> a delay and when there is not a delay:
> 
>>
> 
>> C:\DOCUME~1\gurganbl>fs whereis "My Documents"
> 
>> fs: Invalid argument; it is possible that My Documents is not in AFS.
> 
>>
> 
>> C:\DOCUME~1\gurganbl>fs whereis "My Documents"
> 
>> fs: Invalid argument; it is possible that My Documents is not in AFS.
> 


--------------ms000100090601080600040501
Content-Type: application/x-pkcs7-signature; name="smime.p7s"
Content-Transfer-Encoding: base64
Content-Disposition: attachment; filename="smime.p7s"
Content-Description: S/MIME Cryptographic Signature

MIAGCSqGSIb3DQEHAqCAMIACAQExCzAJBgUrDgMCGgUAMIAGCSqGSIb3DQEHAQAAoIIJeTCC
AxcwggKAoAMCAQICEBW00lKwoWJXt8wbmTl1M0kwDQYJKoZIhvcNAQEEBQAwYjELMAkGA1UE
BhMCWkExJTAjBgNVBAoTHFRoYXd0ZSBDb25zdWx0aW5nIChQdHkpIEx0ZC4xLDAqBgNVBAMT
I1RoYXd0ZSBQZXJzb25hbCBGcmVlbWFpbCBJc3N1aW5nIENBMB4XDTA2MDUyNzIyMDMzMloX
DTA3MDUyNzIyMDMzMlowczEPMA0GA1UEBBMGQWx0bWFuMRUwEwYDVQQqEwxKZWZmcmV5IEVy
aWMxHDAaBgNVBAMTE0plZmZyZXkgRXJpYyBBbHRtYW4xKzApBgkqhkiG9w0BCQEWHGphbHRt
YW5Ac2VjdXJlLWVuZHBvaW50cy5jb20wggEiMA0GCSqGSIb3DQEBAQUAA4IBDwAwggEKAoIB
AQC19SD7DncCP/+wfQlLzAAcxf1nJ/7UQgh4o/nxzvuY55XwHdLQjqWuFUnM5vecfyZKwq0o
fGCucDfcQbSIrkhHD9z4TZ8vDaYWVY9Foz8Rp8G0PNdbRFoFtfJbaeVBX5hG3aQXIc/T1b9U
8uN3kLyqXAFIGWKO8DJVGTKKtOiPVOp1U+9CwujyYmUSKF+suutKABhhK1ZGHsTnFczLZ2g0
ma0H7PiFJ2kLfOf///07E1fbr4IRb+cd87kpWLcjtEZ0rbBr9HlOy9dkeEii/qFoo1ahfKCD
A9bNErM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