On Tue, 10 Jan 2006, Ben Escoto wrote:

> > Would it be possible to add this condition to the sanity check in
> > rdiff-backup?
> 
> Sure, the sanity case was just supposed to check whether basic
> characters were allowed.  I just checked in this simple patch: ...

Ok, I got the CVS version, and I upgraded to librsync 0.9.7. I got
rdiff-backup to work within my ext3 filesystem. When I target the SMB
filesystem, this time I got a different error. Any clues? The error
follows and I have some final comments at the bottom:

---
> PYTHONPATH=$RDB_CVS $RDB_CVS/rdiff-backup -v6 ~/bin 
> ~/emory/cgunay/home_backup/
Unable to import module xattr.
Extended attributes not supported on filesystem at /Lab/cengiz/bin
Unable to import module posix1e from pylibacl package.
ACLs not supported on filesystem at /Lab/cengiz/bin
-----------------------------------------------------------------
Detected abilities for source (read only) file system:
  Access control lists                         Off
  Extended attributes                          Off
  Case sensitivity                             On
  Mac OS X style resource forks                Off
  Mac OS X Finder information                  Off
-----------------------------------------------------------------
Making directory 
/Lab/cengiz/emory/cgunay/home_backup/rdiff-backup-data/rdiff-backup.tmp.2
Exception 'local variable 'ext_rp' referenced before assignment' raised of 
class 'exceptions.UnboundLocalError':
  File "/usr/src/rdiff-backup/rdiff_backup/Main.py", line 295, in 
error_check_Main
    try: Main(arglist)
  File "/usr/src/rdiff-backup/rdiff_backup/Main.py", line 315, in Main
    take_action(rps)
  File "/usr/src/rdiff-backup/rdiff_backup/Main.py", line 271, in 
take_action
    elif action == "backup": Backup(rps[0], rps[1])
  File "/usr/src/rdiff-backup/rdiff_backup/Main.py", line 325, in Backup
    rpout.conn.fs_abilities.backup_set_globals(rpin)
  File "/usr/src/rdiff-backup/rdiff_backup/fs_abilities.py", line 602, in 
backup_set_globals
    dest_fsa = FSAbilities('destination').init_readwrite(Globals.rbdir)
  File "/usr/src/rdiff-backup/rdiff_backup/fs_abilities.py", line 137, in 
init_readwrite
    self.set_extended_filenames(subdir)
  File "/usr/src/rdiff-backup/rdiff_backup/fs_abilities.py", line 208, in 
set_extended_filenames
    assert not ext_rp.lstat()

Traceback (most recent call last):
  File "/usr/src/rdiff-backup/rdiff-backup", line 23, in ?
    rdiff_backup.Main.error_check_Main(sys.argv[1:])
  File "/usr/src/rdiff-backup/rdiff_backup/Main.py", line 295, in 
error_check_Main
    try: Main(arglist)
  File "/usr/src/rdiff-backup/rdiff_backup/Main.py", line 315, in Main
    take_action(rps)
  File "/usr/src/rdiff-backup/rdiff_backup/Main.py", line 271, in 
take_action
    elif action == "backup": Backup(rps[0], rps[1])
  File "/usr/src/rdiff-backup/rdiff_backup/Main.py", line 325, in Backup
    rpout.conn.fs_abilities.backup_set_globals(rpin)
  File "/usr/src/rdiff-backup/rdiff_backup/fs_abilities.py", line 602, in 
backup_set_globals
    dest_fsa = FSAbilities('destination').init_readwrite(Globals.rbdir)
  File "/usr/src/rdiff-backup/rdiff_backup/fs_abilities.py", line 137, in 
init_readwrite
    self.set_extended_filenames(subdir)
  File "/usr/src/rdiff-backup/rdiff_backup/fs_abilities.py", line 208, in 
set_extended_filenames
    assert not ext_rp.lstat()
UnboundLocalError: local variable 'ext_rp' referenced before assignment
---

Looking at the code, I see that within the try block, an error occurs 
*before* ext_rp is assigned on line: 

fs_abilities:205:  ext_rp = subdir.append(extended_filename)

but we cannot see this error, because in the else block ext_rp is used 
before assignment. I'm not sure how to modify this code to get to the real 
error.

Cengiz Gunay
--
[EMAIL PROTECTED]  [EMAIL PROTECTED] (MSN)      [EMAIL PROTECTED]
Lab: +1-404-727-3565    Home/Cell: +1-678-559-8694
http://userwww.service.emory.edu/~cgunay/
IMs: ICQ# 21104923, [EMAIL PROTECTED],yahoo.com,Skype}
--


_______________________________________________
rdiff-backup-users mailing list at [email protected]
http://lists.nongnu.org/mailman/listinfo/rdiff-backup-users
Wiki URL: http://rdiff-backup.solutionsfirst.com.au/index.php/RdiffBackupWiki

Reply via email to