[prev in list] [next in list] [prev in thread] [next in thread] 

List:       unison-users
Subject:    [unison-users] Strange handling of directories containing unreadable files
From:       "James F. O'Brien" <job () eecs ! Berkeley ! edu>
Date:       2004-05-30 22:27:04
Message-ID: 200405302227.i4UMR5629173 () imladris ! cs ! berkeley ! edu
[Download RAW message or body]

Unison cannot sync files that are not readable (for obvious reasons),
and when it encounters one, it produces a "Permission denied" error
and skips the file.  I'm also finding that is *sometimes* skips the
entire directory that contains the file.  Worse, it may skip the
directory's parent, and grandparent, etc... directories as well.

However, it does not always skip the parent directories.  It appears
to be determined by weather the directory structure exists on the
target.  The following commands illustrate the problem:

	 # Make two directories to sync
	 mkdir A B
	 
	 # Put something into A
	 mkdir A/D1 A/D1/D2 A/D1/D2/D3
	 touch A/f1 A/D1/f2 A/D1/D2/f3 A/D1/D2/D3/f4 A/D1/D2/D3/x

	 # Make A/D1/D2/D3/x unreadable
	 chmod 000 A/D1/D2/D3/x

         # look at what we have
         find . -print 
	 # Shows the directories and files in A, B empty

         # try to sync
	 unison A B
	 # unison only tries to copy f1, D1 and all of its
	 # readable contents are ignored.

	 # Make the directory structure in B for unison
	 mkdir B/D1 B/D1/D2 B/D1/D2/D3
	 
         # try to sync again
	 unison A B
	 # unison will now copy everything but for the one
	 # unreadable file.


I think this type of behavior is a bug.  I've mucked with the unison
code a bit before, but before I do anything about this, I wanted to
ask:

     1) Is this behavior desirable for some reason I'm missing?

     2) Has anyone else encountered the problem?

     3) Is someone already working on fixing it?



-- 
James F. O'Brien                      Assistant Professor
EECS, Computer Science Division       job@cs.berkeley.edu
University of California, Berkeley    www.cs.berkeley.edu/~job



------------------------ Yahoo! Groups Sponsor --------------------~--> 
Make a clean sweep of pop-up ads. Yahoo! Companion Toolbar.
Now with Pop-Up Blocker. Get it for free!
http://us.click.yahoo.com/L5YrjA/eSIIAA/yQLSAA/26EolB/TM
--------------------------------------------------------------------~-> 

 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
     http://groups.yahoo.com/group/unison-users/

<*> To unsubscribe from this group, send an email to:
     unison-users-unsubscribe@yahoogroups.com

<*> Your use of Yahoo! Groups is subject to:
     http://docs.yahoo.com/info/terms/
 

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic