Displaying 2 results from an estimated 2 matches for "sunwattr_ro".
Did you mean:
sunwattr_rw
2009 Sep 09
3
DO NOT REPLY [Bug 6701] New: permission of attributes are not preserved
...se
xattr are files so have ownership and permission which is 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...
2009 Jul 27
1
supporting --fake-super on opensolaris (zfs) destination
...h, ".", O_RDONLY);
+
+ if (!attrdirfd) {
+ errno=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);
+
+}
#en...