[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [rdiff-backup-users] os error 22 detecting file system properties on
From: |
Ben Escoto |
Subject: |
Re: [rdiff-backup-users] os error 22 detecting file system properties on cygwin |
Date: |
Tue, 27 Jan 2004 18:16:45 -0800 |
>>>>> "David Kempe" <address@hidden>
>>>>> wrote the following on Tue, 6 Jan 2004 13:01:33 +1100
> Hi I am attempting to do a restore on a cygwin rdiff-backup install.
> I am getting the fs_ablities.py failing on creating a folder. I
> assume the foo file is a test of some sort, I appears to fail with
> OS error 22 instead of just disabling that part of the test. Is
> there some sort of patch we can try to disable this testing? the
> testing is very useful, but needs this tweak for it to restore on
> windows.
Hi, hopefully we can just fix the bugs in the testing, not disable
it. The following patch may fix two of your problems:
--- fs_abilities.py.old 2004-01-27 18:12:56.000000000 -0800
+++ fs_abilities.py 2004-01-27 18:14:28.000000000 -0800
@@ -187,7 +187,7 @@
tmp_rp.chown(uid+1, gid+1) # just choose random uid/gid
tmp_rp.chown(0, 0)
except (IOError, OSError), exc:
- if exc[0] == errno.EPERM:
+ if exc[0] in (errno.EPERM, errno.EINVAL):
log.Log("Warning: ownership cannot be changed
on filesystem "
"at %s" % (self.root_rp.path,),
3)
self.ownership = 0
@@ -202,7 +202,8 @@
hl_source.touch()
try:
hl_dest.hardlink(hl_source.path)
- assert hl_source.getinode() == hl_dest.getinode()
+ if hl_source.getinode() != hl_dest.getinode():
+ raise IOError(errno.EOPNOTSUP, "Hard links
don't compare")
except (IOError, OSError), exc:
if exc[0] in (errno.EOPNOTSUPP, errno.EPERM):
log.Log("Warning: hard linking not supported by
filesystem "
--
Ben Escoto