Coda File System

Re: Connected volume with repair conflicts?

From: Troy Benjegerdes <hozer_at_hozed.org>
Date: Wed, 21 Jul 2004 15:24:11 -0500
It's nicely busted..

Should I be running the latest CVS? (I am at 6.0.6 release)

hozer_at_narn Maildir$ ls cur/cur
ls: cur/cur/1055779073.17995_1.kalmia.hozed.org:2,S: Permission denied
hozer_at_narn Maildir$ cd cur/cur
hozer_at_narn cur$ ls
ls: 1055779073.17995_1.kalmia.hozed.org:2,S: Permission denied
hozer_at_narn cur$ cfs lv .
  Status of volume 0x7f000005 (2130706437) named "u.hozer.mail"
  Volume type is ReadWrite
  Connection State is Connected
  Minimum quota is 0, maximum quota is 1000000
  Current blocks used are 194628
  The partition has 18741524 blocks available out of 19134372
  Write-back is disabled
  *** There are pending conflicts in this volume ***

hozer_at_narn cur$ cfs fl .
        DANGER:   these files will be lost, if disconnected
        Do you really want to do this? [n] y
        Fools rush in where angels fear to tread ........
hozer_at_narn cur$ cfs fl 1055779073.17995_1.kalmia.hozed.org\:2\,S
        DANGER:   these files will be lost, if disconnected
        Do you really want to do this? [n] y
        Fools rush in where angels fear to tread ........
VIOCFLUSH: Permission denied
hozer_at_narn cur$ ctokens

Tokens held by the Cache Manager:
Local username: hozer

        @hozed.org
        Coda user id:    1000
        Expiration time: Thu Jul 22 13:35:07 2004

hozer_at_narn cur$ clog hozer.admin
username: hozer.admin_at_hozed.org
Password:
hozer_at_narn cur$ cfs fl 1055779073.17995_1.kalmia.hozed.org\:2\,S
        DANGER:   these files will be lost, if disconnected
        Do you really want to do this? [n] y
        Fools rush in where angels fear to tread ........
VIOCFLUSH: Permission denied


On Wed, Jul 21, 2004 at 04:05:41PM -0400, Jan Harkes wrote:
> On Tue, Jul 20, 2004 at 08:31:09PM -0500, Troy Benjegerdes wrote:
> > What exactly does this mean?
> > 
> > hozer_at_narn cur$ cfs lv .
> >   Status of volume 0x7f000005 (2130706437) named "u.hozer.mail"
> >   Volume type is ReadWrite
> >   Connection State is Connected
> >   Minimum quota is 0, maximum quota is 1000000
> >   Current blocks used are 194309
> >   The partition has 18741952 blocks available out of 19134372
> >   Write-back is disabled
> >   *** There are pending conflicts in this volume ***
> 
> You are right that that is strange. I didn't know that that was
> even possible or why it got in that state.
> 
> > And I have a file in the formerly conflicted directory that says:
> > 
> > hozer_at_narn cur$ ls -l cur/1055779073.17995_1.kalmia.hozed.org\:2\,S
> > ls: cur/1055779073.17995_1.kalmia.hozed.org:2,S: Permission denied
> 
> I've been having some problems myself that sometimes after a repair the
> local copy of the file isn't correctly flushed from the cache. So you
> end up seeing the old (conflicting) object instead of the correctly
> repaired copy on the server. My quick fix it typically to flush the
> parent directory (in this case 'cfs fl cur'). This should allow the
> client to refetch the correct data from the server along with the
> corrected access permissions.
> 
> > Also, whenever I run 'repair' it seems to think I don't have tokens, but
> > I do. Any ideas?
> 
> That is because repair doesn't know about realms and doesn't know how to
> check if the user has a valid token for the object we're trying to
> repair. I am still split between just removing this message/test or to
> try and infer the realm from either the path or cfs listvol data.
> 
> Jan
> 

-- 
--------------------------------------------------------------------------
Troy Benjegerdes                'da hozer'                hozer_at_hozed.org  

Somone asked my why I work on this free (http://www.fsf.org/philosophy/)
software stuff and not get a real job. Charles Shultz had the best answer:

"Why do musicians compose symphonies and poets write poems? They do it
because life wouldn't have any meaning for them if they didn't. That's why
I draw cartoons. It's my life." -- Charles Shultz
Received on 2004-07-21 16:25:41