[OpenAFS] OAFS for Windows turns directories into files

ted creedon tcreedon@easystreet.com
Fri, 27 Apr 2007 13:38:55 -0700


1. How does one Identify the FID for the object?
2. Can't access the cell - getting the "network path not found error"
cmdebug localhost -long is below. 
C:\>cmdebug localhost -long
Lock cm_scacheLock status: (none_waiting)
Lock buf_globalLock status: (none_waiting)
Lock cm_serverLock status: (none_waiting)
Lock cm_callbackLock status: (none_waiting)
Lock cm_aclLock status: (none_waiting)
Lock cm_cellLock status: (none_waiting)
Lock cm_connLock status: (none_waiting)
Lock cm_userLock status: (none_waiting)
Lock cm_volumeLock status: (none_waiting)
Lock cm_daemonLock status: (none_waiting)
Lock cm_dnlcLock status: (none_waiting)
Lock cm_utilsLock status: (none_waiting)
Lock smb_globalLock status: (none_waiting)
Lock smb_rctLock status: (none_waiting)
Lock cm_Freelance_Lo status: (none_waiting)
Lock cm_bufGetMutex status: (none_waiting)
Lock cm_Afsdsbmt_Loc status: (none_waiting)
Lock tokenEventLock status: (none_waiting)
Lock smb_ListenerLoc status: (none_waiting)
Lock smb_RawBufLock status: (none_waiting)
Lock smb_Dir_Watch_L status: (none_waiting)
** Cache entry @ 0x02108920 for -1.-1.1.1 []
            2048 bytes  DV            9  refcnt     1
    callback 00000000   expires 0
    0 opens     0 writers
    volume root
    states (0x0)
** Cache entry @ 0x02109880 for -1.-1.4.1 []
              33 bytes  DV            9  refcnt     0
    callback 00000000   expires 0
    0 opens     0 writers
    mount point
    states (0xc), read-only, mt pt valid
** Cache entry @ 0x02108e40 for -1.-1.5.1 []
              33 bytes  DV            9  refcnt     0
    callback 00000000   expires 0
    0 opens     0 writers
    mount point
    states (0xc), read-only, mt pt valid
** Cache entry @ 0x02109da0 for 2.536870954.1.1 [home.ted-doris.fam]
               0 bytes  DV            0  refcnt     0
    callback 00000000   expires 0
    0 opens     0 writers
    normal file
    states (0x0)
** Cache entry @ 0x02109360 for 2.536870955.1.1 [home.ted-doris.fam]
               0 bytes  DV            0  refcnt     0
    callback 00000000   expires 0
    0 opens     0 writers
    normal file
    states (0x4), read-only

C:\>
C:\>z:


-----Original Message-----
From: openafs-info-admin@openafs.org [mailto:openafs-info-admin@openafs.org]
On Behalf Of Jeffrey Altman
Sent: Friday, April 27, 2007 1:25 PM
To: Christopher D. Clausen
Cc: openafs-info@openafs.org
Subject: Re: [OpenAFS] OAFS for Windows turns directories into files

Christopher D. Clausen wrote:
> ted creedon <tcreedon@easystreet.com> wrote:
>> V 1.5.19 on an XP box just turned a directory into a file.
>>
>> I can debug this but it seems too late.
>>
>> All the other clients see the directory.
>>
>> A fresh install this am.
> 
> I too have seen this.  Stopping the AFS client service and deleting the 
> AFSCache file fixed the problem for me.
> 
> I figured it was just a corrupt local client cache issue.
> 
> <<CDC 

Identify the FID for the object and then find that entry in the output
from "cmdebug localhost -long".  If the wrong type is specified in the
cmdebug output.  Save the cache file and if you trust me with the data
that would be in the cache, let me take a look at it so I can try and
determine how the contents have been corrupted.

 Volume in drive J is AFS            Serial number is 0000:04d2
 Directory of  J:\*

 4/27/2007   8:50         <DIR>    .
 4/27/2007   8:50         <DIR>    ..
 9/26/2006  22:04         <DIR>    krbdev
10/27/2004  23:41         <DIR>    Mail
 6/16/1999  18:17         <DIR>    OldFiles
 4/09/2007  20:50         <DIR>    Private
 4/23/2007   9:34         <DIR>    Public
 1/27/2004  15:38         <DIR>    WinData
 5/27/2005  17:09         <DIR>    WINDOWS
 2/05/2007  20:41         <DIR>    www
12/31/2004  19:31          26,966  afsdrive.ico
11/26/2004   0:53             355  desktop.ini
 2/05/2007  20:41               0  index.html
 6/16/1999  18:17             433  README.mail
 6/16/1999  18:17           1,915  welcome
         29,669 bytes in 5 files and 10 dirs    31,744 bytes allocated
1,099,511,626,752 bytes free

[J:\]fs exa public
File public (537235559.3.3) contained in cell athena.mit.edu
Owner jaltman (28180) Group 0
Volume status for vid = 537235559 named user.jaltman is
Current disk quota is 1500000
Current blocks used are 1269394
The partition has 140051764 blocks available out of 511163724
Volume is online

[J:\]cmdebug localhost -long
** Cache entry @ 0x160bd6f4 for 2.537235559.3.3 [athena.mit.edu]
            4096 bytes  DV          460  refcnt     0
    callback 0289b750   expires 796272232
    0 opens     0 writers
    directory
    states (0x0)

Jeffrey Altman
Secure Endpoints Inc.