I'm running rdiff-backup on freebsd.  Freebsd has some extra flags in
the file system, in particular the schg/noshg flag whic when set, a
process can not change the inode of the file.

For example, running rdiff-backup on the root file system, I get this error:

    Exception: EnvironmentError '[Errno 1] Operation not permitted'
linking /2nd/usr/bin/rdiff-backup.tmp.46775 to /2nd/usr/bin/chfn

of course, it's true if I try to perform this action by hand, I get:

    # ln /2nd/usr/bin/chfn /2nd/usr/bin/rdiff-backup.tmp.46775
    ln: /2nd/usr/bin/rdiff-backup.tmp.46775: Operation not permitted

However, if I remove the schg flag before I perform the ln, it succeeds:

    # ls -lo /2nd/usr/bin/chfn
    -r-sr-xr-x  6 root  wheel  schg 17656 Jul 11  2008 /2nd/usr/bin/chfn*
    # chflags noschg /2nd/usr/bin/chfn
    # ls -lo /2nd/usr/bin/chfn
    -r-sr-xr-x  6 root  wheel  - 17656 Jul 11  2008 /2nd/usr/bin/chfn*
    # ln /2nd/usr/bin/chfn /2nd/usr/bin/rdiff-backup.tmp.46775
    # chflags schg /2nd/usr/bin/chfn

Is there any workaround for this?

Michael Grant

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

Reply via email to