Doug,

> Is there anyway that a AFS client can detect if a cell is a real AFS
> cell or if it is a cell accessing DFS via the AFS/DFS translator? 

some of the fs commands work via the translator, while some fail, but
tell you that the file in question is not in AFS:
e.g:
$ fs whichcell dce.uni-stuttgart.de
File dce.uni-stuttgart.de lives in cell 'dce.uni-stuttgart.de'
   just works fine, while
$ fs exa dce.uni-stuttgart.de  
fs: Invalid argument; it is possible that dce.uni-stuttgart.de is not in AFS.
   does not.

Looking at the source, both commands are quite similar, the difference being:

fs whichcell  internally calls
     pioctl(ti->data, VIOC_FILE_CELL_NAME, &blob, 1);
and fs examine  calls
     pioctl(ti->data, VIOCGETVOLSTAT, &blob, 1);
hence the failure of the latter on /afs/<cell-name> should indicate this cell 
to be in fact a DFS cell accessed by the translator.

> I am working on a modified aklog which can use the DCE security
> server to get tokens for AFS and/or AFS/DFS translator. 

Btw, I am very interested in such a tool, as it would considerably ease the
migration from AFS to DFS, which we will attack in the very near future.

Regards, Dieter.

-- 
Dr. Dieter Mack                      Phone : +49 711 685 5788
Systems Section                      Fax   : +49 711 682357
Computer Center                      Email : [EMAIL PROTECTED]
University of Stuttgart              Mail  : Allmandring 30
                                             70550 Stuttgart-80
                                             Germany

Reply via email to