On Wed, 6 Oct 2010, Sergey Zolotorev wrote:

I've have restore system with rdiff-backup tool, it did not restore mtime for symlinks. It is clear because utime() does not support mtime for symlinks...

I don't know anything about 'rdiff-backup', but rsync supports preserving symlink mtimes if both the sending and receiving rsyncs have 'symtimes' in their features.

It does so via the lutimes()[1] function. In glibc under Linux, lutimes() is implemented via the utimensat()[2] system call (so requires kernel >= 2.6.22). utimensat = utime with nanosecond (ns) precision and "at" (see openat()[3]) extensions.

[1] http://www.kernel.org/doc/man-pages/online/pages/man3/futimes.3.html
[2] http://www.kernel.org/doc/man-pages/online/pages/man2/utimensat.2.html
[3] http://www.kernel.org/doc/man-pages/online/pages/man2/openat.2.html


But what should do user after root FS restoration? A half of system seems broken now. Is there any way to say Paludis 'force remove symlink on package unmerge'?

Not that any of the information above helps you if rdiff-backup doesn't maintain the information in its backups. Just mentioning it for completeness: bare-metal recovery doesn't imply that Paludis will lose control of all symlinks.

--
Best,
Ben
_______________________________________________
paludis-user mailing list
[email protected]
http://lists.pioto.org/mailman/listinfo/paludis-user

Reply via email to