[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Rdiff-backup-bugs] [sr #106584] junctions need to be properly processed
From: |
Andrew Ferguson |
Subject: |
[Rdiff-backup-bugs] [sr #106584] junctions need to be properly processed for useful backups |
Date: |
Mon, 22 Dec 2008 17:59:51 +0000 |
User-agent: |
Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.5; en-US; rv:1.9.0.5) Gecko/2008120121 Firefox/3.0.5 |
Follow-up Comment #2, sr #106584 (project rdiff-backup):
Ok, rdiff-backup will now skip over reparse points and do nothing with them.
In the future, we could consider trying to backup reparse points properly.
This would involve code like this:
hfile = win32file.CreateFile("c:UsersDefault User", win32con.GENERIC_READ,
win32con.FILE_SHARE_READ, None, win32con.OPEN_EXISTING,
win32con.FILE_FLAG_BACKUP_SEMANTICS|win32con.FILE_FLAG_OPEN_REPARSE_POINT,
None)
buf = win32file.DeviceIoControl(hfile, winioctlcon.FSCTL_GET_REPARSE_POINT,
'', winnt.MAXIMUM_REPARSE_DATA_BUFFER_SIZE, None)
and then parsing the appropriate string out of the buffer. The buffer
(REPARSE_DATA_BUFFER) is defined here:
http://msdn.microsoft.com/en-us/library/ms791514.aspx
See also:
http://msdn.microsoft.com/en-us/library/aa365507(VS.85).aspx
http://msdn.microsoft.com/en-us/library/aa363858(VS.85).aspx
http://msdn.microsoft.com/en-us/library/aa365503(VS.85).aspx
http://msdn.microsoft.com/en-us/library/aa363940(VS.85).aspx
_______________________________________________________
Reply to this item at:
<http://savannah.nongnu.org/support/?106584>
_______________________________________________
Message sent via/by Savannah
http://savannah.nongnu.org/