Displaying 5 results from an estimated 5 matches for "sys_fgetxattr".
2006 Dec 14
1
Compilation error on Mac OS X 10.4.7
...8.7.0: Fri May 26 15:20:53
PDT 2006; root:xnu-792.6.76.obj~1/RELEASE_PPC Power Macintosh powerpc
The errors I get are:
Compiling lib/system.c
lib/system.c: In function 'sys_getxattr':
lib/system.c:1420: error: too few arguments to function 'getxattr'
lib/system.c: In function 'sys_fgetxattr':
lib/system.c:1504: error: too few arguments to function 'fgetxattr'
lib/system.c: In function 'sys_listxattr':
lib/system.c:1705: error: too few arguments to function 'listxattr'
lib/system.c: In function 'sys_flistxattr':
lib/system.c:1741: error: too few argu...
2007 Oct 13
1
Using pre2 for backing up a mac
With the new ACL+xattr support and fake super (I'm glad this made it
in!), it seems like my dream of being able to use rsync --link-dest
to backup my mac is almost within reach!
If you take a look at
http://blog.plasticsfuture.org/2006/03/05/the-state-of-backup-and-
cloning-tools-under-mac-os-x/
you can get an overview of the meta-data which needs to be saved for
faithful backups on
2010 Sep 21
1
Old FreeBSD4.11 build.
...implicit declaration of function
`extattr_get_link'
lib/sysxattrs.c:85: `EXTATTR_NAMESPACE_USER' undeclared (first use in
this function)
lib/sysxattrs.c:85: (Each undeclared identifier is reported only once
lib/sysxattrs.c:85: for each function it appears in.)
lib/sysxattrs.c: In function `sys_fgetxattr':
lib/sysxattrs.c:90: warning: implicit declaration of function
`extattr_get_fd'
lib/sysxattrs.c:90: `EXTATTR_NAMESPACE_USER' undeclared (first use in
this function)
lib/sysxattrs.c: In function `sys_lsetxattr':
lib/sysxattrs.c:95: warning: implicit declaration of function
`extattr_...
2009 Jul 27
1
supporting --fake-super on opensolaris (zfs) destination
...ttrfd = attropen(path, name, O_RDONLY);
+
+ if (attrfd<0) {
+ errno = ENOATTR;
+ return -1;
+ }
+
+
+ for(bufpos=0;bufpos<size;) {
+ r=read(attrfd,value+bufpos,512);
+ if (r==0) break;
+ if(r<0) {
+ return -errno;
+ }
+ bufpos+=r;
+ }
+close(attrfd);
+return (bufpos);
+
+}
+
+ssize_t sys_fgetxattr(int filedes, const char *name, void *value, size_t size)
+{
+ int attrfd;
+ size_t bufpos,r;
+
+ attrfd=openat(filedes,name,O_RDONLY);
+ if (attrfd<0) {
+ errno = ENOATTR;
+ return -1;
+ }
+
+
+ for(bufpos=0;bufpos<size;) {
+ r=read(attrfd,value+bufpos,512);
+ if (r==0) break;
+...
2008 Jun 22
3
Xattrs and Delete over AFP
Hello group,
I have an OSX 10.3.9 Server that I'm trying to back up with rsync 3.0.2.
Since I didn't have any luck with the 10.3.9 patch and I do have 10.4 clients,
I decided to try running the backup over AFP (Apple's file sharing protocol).
I found a way to mount the AFP volume with root permissions and rsync 3.0.2
works very nicely using this on the 10.4 clients, preserving