Displaying 2 results from an estimated 2 matches for "sunwattr_rw".
Did you mean:
sunwattr_ro
2009 Sep 09
3
DO NOT REPLY [Bug 6701] New: permission of attributes are not preserved
...not preserved by -X
(-XX)
Suppose I have this situation
root at opensolaris:~/src/rsync# runat /data/cavalli/test ls -l
total 2
-rw-rw---- 1 cavalli other 13 2009-09-08 08:14 rsync.%stat
-r--r--r-- 1 root root 84 2009-09-08 08:14 SUNWattr_ro
-rw-r--r-- 1 root root 408 2009-09-08 08:14 SUNWattr_rw
Then root does a rsync -XX. We end up with
-rw-rw---- 1 root root 13 2009-09-08 08:14 rsync.%stat
So that user cavalli does no longer see fake-super information in the "backup
of the backup"...
In this case a quick solution could be creating the xattr with read permission
for "o...
2009 Jul 27
1
supporting --fake-super on opensolaris (zfs) destination
...no=ENOTSUP;
+ return -1;
+ }
+
+ dirp = fdopendir(attrdirfd);
+ while ((dp = readdir(dirp))) {
+ if ((strcmp(dp->d_name, ".") == 0) || (strcmp(dp->d_name, "..") == 0) ||
+ (strcmp(dp->d_name, "SUNWattr_ro") == 0) || (strcmp(dp->d_name, "SUNWattr_rw") == 0))
+ continue;
+
+ sprintf(list,dp->d_name);
+ len=len+strlen(dp->d_name);
+ list+=strlen(dp->d_name);
+ list[len]='\0';
+ list+=1;
+
+ }
+
+ close(attrdirfd);
+ closedir(dirp);
+ return(len);
+
+}
#endif