Hi folks, Does anyone know a good way to sync files between two gpfs filesystems, while preserving NFSv4 ACL's? I've tried rsync and cp - neither of which seem to copy over acls. Sample test: # mkdir test # mmeditacl -k nfs4 test # mmgetacl test #NFSv4 ACL #owner:root #group:root group:1234:rwxc:allow:FileInherit:DirInherit (X)READ/LIST (X)WRITE/CREATE (X)MKDIR (X)SYNCHRONIZE (X)READ_ACL (X)READ_ATTR (-)READ_NAMED (-)DELETE (X)DELETE_CHILD (X)CHOWN (X)EXEC/SEARCH (X)WRITE_ACL (X)WRITE_ATTR (-)WRITE_NAMED # rsync -av test/ test2/ [root@mwvm06 nasdev]# mmgetacl -k nfs4 test2 #NFSv4 ACL #owner:root #group:root special:owner@:---c:allow (-)READ/LIST (-)WRITE/CREATE (-)MKDIR (X)SYNCHRONIZE (X)READ_ACL (X)READ_ATTR (-)READ_NAMED (-)DELETE (-)DELETE_CHILD (X)CHOWN (-)EXEC/SEARCH (X)WRITE_ACL (X)WRITE_ATTR (-)WRITE_NAMED special:group@:----:allow (-)READ/LIST (-)WRITE/CREATE (-)MKDIR (X)SYNCHRONIZE (X)READ_ACL (X)READ_ATTR (-)READ_NAMED (-)DELETE (-)DELETE_CHILD (-)CHOWN (-)EXEC/SEARCH (-)WRITE_ACL (-)WRITE_ATTR (-)WRITE_NAMED special:everyone@:----:allow (-)READ/LIST (-)WRITE/CREATE (-)MKDIR (X)SYNCHRONIZE (X)READ_ACL (X)READ_ATTR (-)READ_NAMED (-)DELETE (-)DELETE_CHILD (-)CHOWN (-)EXEC/SEARCH (-)WRITE_ACL (-)WRITE_ATTR (-)WRITE_NAMED -- -- Dr Orlando Richards Information Services IT Infrastructure Division Unix Section Tel: 0131 650 4994 The University of Edinburgh is a charitable body, registered in Scotland, with registration number SC005336.
Is your rsync patched for ACLs? -- On 28 September 2012 11:03, Orlando Richards <orlando.richards@ed.ac.uk> wrote:
Hi folks,
Does anyone know a good way to sync files between two gpfs filesystems, while preserving NFSv4 ACL's?
I've tried rsync and cp - neither of which seem to copy over acls.
Sample test:
# mkdir test # mmeditacl -k nfs4 test # mmgetacl test #NFSv4 ACL #owner:root #group:root group:1234:rwxc:allow:FileInherit:DirInherit (X)READ/LIST (X)WRITE/CREATE (X)MKDIR (X)SYNCHRONIZE (X)READ_ACL (X)READ_ATTR (-)READ_NAMED (-)DELETE (X)DELETE_CHILD (X)CHOWN (X)EXEC/SEARCH (X)WRITE_ACL (X)WRITE_ATTR (-)WRITE_NAMED
# rsync -av test/ test2/ [root@mwvm06 nasdev]# mmgetacl -k nfs4 test2 #NFSv4 ACL #owner:root #group:root special:owner@:---c:allow (-)READ/LIST (-)WRITE/CREATE (-)MKDIR (X)SYNCHRONIZE (X)READ_ACL (X)READ_ATTR (-)READ_NAMED (-)DELETE (-)DELETE_CHILD (X)CHOWN (-)EXEC/SEARCH (X)WRITE_ACL (X)WRITE_ATTR (-)WRITE_NAMED
special:group@:----:allow (-)READ/LIST (-)WRITE/CREATE (-)MKDIR (X)SYNCHRONIZE (X)READ_ACL (X)READ_ATTR (-)READ_NAMED (-)DELETE (-)DELETE_CHILD (-)CHOWN (-)EXEC/SEARCH (-)WRITE_ACL (-)WRITE_ATTR (-)WRITE_NAMED
special:everyone@:----:allow (-)READ/LIST (-)WRITE/CREATE (-)MKDIR (X)SYNCHRONIZE (X)READ_ACL (X)READ_ATTR (-)READ_NAMED (-)DELETE (-)DELETE_CHILD (-)CHOWN (-)EXEC/SEARCH (-)WRITE_ACL (-)WRITE_ATTR (-)WRITE_NAMED
-- -- Dr Orlando Richards Information Services IT Infrastructure Division Unix Section Tel: 0131 650 4994
The University of Edinburgh is a charitable body, registered in Scotland, with registration number SC005336. _______________________________________________ gpfsug-discuss mailing list gpfsug-discuss@gpfsug.org http://gpfsug.org/mailman/listinfo/gpfsug-discuss
-- Pete Smith DevOp/System Administrator Realise Studio 12/13 Poland Street, London W1F 8QB T. +44 (0)20 7165 9644 realisestudio.com
On 28/09/12 11:12, Pete Smith wrote:
Is your rsync patched for ACLs?
Not by me - though I did find this patch from IBM back in 2008, but I can't get it to build against any version 3.0.x of rsync (I didn't go further back), and there was no follow up on the list that I can see (apart from one immediate response attempting to initiate dialogue). http://lists.samba.org/archive/rsync/2008-October/021963.html I'm currently entertaining doing: dsmc incr -> dsmc restore!
-- On 28 September 2012 11:03, Orlando Richards <orlando.richards@ed.ac.uk> wrote:
Hi folks,
Does anyone know a good way to sync files between two gpfs filesystems, while preserving NFSv4 ACL's?
I've tried rsync and cp - neither of which seem to copy over acls.
Sample test:
# mkdir test # mmeditacl -k nfs4 test # mmgetacl test #NFSv4 ACL #owner:root #group:root group:1234:rwxc:allow:FileInherit:DirInherit (X)READ/LIST (X)WRITE/CREATE (X)MKDIR (X)SYNCHRONIZE (X)READ_ACL (X)READ_ATTR (-)READ_NAMED (-)DELETE (X)DELETE_CHILD (X)CHOWN (X)EXEC/SEARCH (X)WRITE_ACL (X)WRITE_ATTR (-)WRITE_NAMED
# rsync -av test/ test2/ [root@mwvm06 nasdev]# mmgetacl -k nfs4 test2 #NFSv4 ACL #owner:root #group:root special:owner@:---c:allow (-)READ/LIST (-)WRITE/CREATE (-)MKDIR (X)SYNCHRONIZE (X)READ_ACL (X)READ_ATTR (-)READ_NAMED (-)DELETE (-)DELETE_CHILD (X)CHOWN (-)EXEC/SEARCH (X)WRITE_ACL (X)WRITE_ATTR (-)WRITE_NAMED
special:group@:----:allow (-)READ/LIST (-)WRITE/CREATE (-)MKDIR (X)SYNCHRONIZE (X)READ_ACL (X)READ_ATTR (-)READ_NAMED (-)DELETE (-)DELETE_CHILD (-)CHOWN (-)EXEC/SEARCH (-)WRITE_ACL (-)WRITE_ATTR (-)WRITE_NAMED
special:everyone@:----:allow (-)READ/LIST (-)WRITE/CREATE (-)MKDIR (X)SYNCHRONIZE (X)READ_ACL (X)READ_ATTR (-)READ_NAMED (-)DELETE (-)DELETE_CHILD (-)CHOWN (-)EXEC/SEARCH (-)WRITE_ACL (-)WRITE_ATTR (-)WRITE_NAMED
-- -- Dr Orlando Richards Information Services IT Infrastructure Division Unix Section Tel: 0131 650 4994
The University of Edinburgh is a charitable body, registered in Scotland, with registration number SC005336. _______________________________________________ gpfsug-discuss mailing list gpfsug-discuss@gpfsug.org http://gpfsug.org/mailman/listinfo/gpfsug-discuss
-- Pete Smith DevOp/System Administrator Realise Studio 12/13 Poland Street, London W1F 8QB T. +44 (0)20 7165 9644 realisestudio.com _______________________________________________ gpfsug-discuss mailing list gpfsug-discuss@gpfsug.org http://gpfsug.org/mailman/listinfo/gpfsug-discuss
-- -- Dr Orlando Richards Information Services IT Infrastructure Division Unix Section Tel: 0131 650 4994 The University of Edinburgh is a charitable body, registered in Scotland, with registration number SC005336.
Just tried rsync -A (preserve acl's) on this end, no joy there either. two filesystems, same machine. sounds very, very evil but have you tried robocopy from one share to another? Not ideal. Cheers, Barry On 28 Sep 2012, at 11:03, Orlando Richards <orlando.richards@ed.ac.uk> wrote:
Hi folks,
Does anyone know a good way to sync files between two gpfs filesystems, while preserving NFSv4 ACL's?
I've tried rsync and cp - neither of which seem to copy over acls.
Sample test:
# mkdir test # mmeditacl -k nfs4 test # mmgetacl test #NFSv4 ACL #owner:root #group:root group:1234:rwxc:allow:FileInherit:DirInherit (X)READ/LIST (X)WRITE/CREATE (X)MKDIR (X)SYNCHRONIZE (X)READ_ACL (X)READ_ATTR (-)READ_NAMED (-)DELETE (X)DELETE_CHILD (X)CHOWN (X)EXEC/SEARCH (X)WRITE_ACL (X)WRITE_ATTR (-)WRITE_NAMED
# rsync -av test/ test2/ [root@mwvm06 nasdev]# mmgetacl -k nfs4 test2 #NFSv4 ACL #owner:root #group:root special:owner@:---c:allow (-)READ/LIST (-)WRITE/CREATE (-)MKDIR (X)SYNCHRONIZE (X)READ_ACL (X)READ_ATTR (-)READ_NAMED (-)DELETE (-)DELETE_CHILD (X)CHOWN (-)EXEC/SEARCH (X)WRITE_ACL (X)WRITE_ATTR (-)WRITE_NAMED
special:group@:----:allow (-)READ/LIST (-)WRITE/CREATE (-)MKDIR (X)SYNCHRONIZE (X)READ_ACL (X)READ_ATTR (-)READ_NAMED (-)DELETE (-)DELETE_CHILD (-)CHOWN (-)EXEC/SEARCH (-)WRITE_ACL (-)WRITE_ATTR (-)WRITE_NAMED
special:everyone@:----:allow (-)READ/LIST (-)WRITE/CREATE (-)MKDIR (X)SYNCHRONIZE (X)READ_ACL (X)READ_ATTR (-)READ_NAMED (-)DELETE (-)DELETE_CHILD (-)CHOWN (-)EXEC/SEARCH (-)WRITE_ACL (-)WRITE_ATTR (-)WRITE_NAMED
-- -- Dr Orlando Richards Information Services IT Infrastructure Division Unix Section Tel: 0131 650 4994
The University of Edinburgh is a charitable body, registered in Scotland, with registration number SC005336. _______________________________________________ gpfsug-discuss mailing list gpfsug-discuss@gpfsug.org http://gpfsug.org/mailman/listinfo/gpfsug-discuss
Here's the rsync patch from Ronnie Sahlberg back from '08. Never tried it and not sure if it's actually part of rsync now, but it sounds pretty cool: http://samba.2283325.n4.nabble.com/Patch-for-GPFS-support-td2508779.html Cheers, Barry On 28 Sep 2012, at 11:28, Barry Evans <bevans@canditmedia.co.uk> wrote:
Just tried rsync -A (preserve acl's) on this end, no joy there either. two filesystems, same machine.
sounds very, very evil but have you tried robocopy from one share to another? Not ideal.
Cheers, Barry
On 28 Sep 2012, at 11:03, Orlando Richards <orlando.richards@ed.ac.uk> wrote:
Hi folks,
Does anyone know a good way to sync files between two gpfs filesystems, while preserving NFSv4 ACL's?
I've tried rsync and cp - neither of which seem to copy over acls.
Sample test:
# mkdir test # mmeditacl -k nfs4 test # mmgetacl test #NFSv4 ACL #owner:root #group:root group:1234:rwxc:allow:FileInherit:DirInherit (X)READ/LIST (X)WRITE/CREATE (X)MKDIR (X)SYNCHRONIZE (X)READ_ACL (X)READ_ATTR (-)READ_NAMED (-)DELETE (X)DELETE_CHILD (X)CHOWN (X)EXEC/SEARCH (X)WRITE_ACL (X)WRITE_ATTR (-)WRITE_NAMED
# rsync -av test/ test2/ [root@mwvm06 nasdev]# mmgetacl -k nfs4 test2 #NFSv4 ACL #owner:root #group:root special:owner@:---c:allow (-)READ/LIST (-)WRITE/CREATE (-)MKDIR (X)SYNCHRONIZE (X)READ_ACL (X)READ_ATTR (-)READ_NAMED (-)DELETE (-)DELETE_CHILD (X)CHOWN (-)EXEC/SEARCH (X)WRITE_ACL (X)WRITE_ATTR (-)WRITE_NAMED
special:group@:----:allow (-)READ/LIST (-)WRITE/CREATE (-)MKDIR (X)SYNCHRONIZE (X)READ_ACL (X)READ_ATTR (-)READ_NAMED (-)DELETE (-)DELETE_CHILD (-)CHOWN (-)EXEC/SEARCH (-)WRITE_ACL (-)WRITE_ATTR (-)WRITE_NAMED
special:everyone@:----:allow (-)READ/LIST (-)WRITE/CREATE (-)MKDIR (X)SYNCHRONIZE (X)READ_ACL (X)READ_ATTR (-)READ_NAMED (-)DELETE (-)DELETE_CHILD (-)CHOWN (-)EXEC/SEARCH (-)WRITE_ACL (-)WRITE_ATTR (-)WRITE_NAMED
-- -- Dr Orlando Richards Information Services IT Infrastructure Division Unix Section Tel: 0131 650 4994
The University of Edinburgh is a charitable body, registered in Scotland, with registration number SC005336. _______________________________________________ gpfsug-discuss mailing list gpfsug-discuss@gpfsug.org http://gpfsug.org/mailman/listinfo/gpfsug-discuss
Google finds me Star by the ever productive Jorg Schilling. http://cdrecord.berlios.de/private/star-acl.html Kind Regards, Vic Vic Cornell Application Support Engineer DataDirect Networks Davidson House Forbury Square Reading RG1 3EU United Kingdom Mobile 07900 660 266 Skype viccornell www.ddn.com This email may contain confidential and privileged material for the sole use of the intended recipient. Any review or distribution by others is strictly prohibited. If you are not the intended recipient please contact the sender and delete all copies On 28 Sep 2012, at 11:37, Barry Evans <bevans@canditmedia.co.uk> wrote: Here's the rsync patch from Ronnie Sahlberg back from '08. Never tried it and not sure if it's actually part of rsync now, but it sounds pretty cool: http://samba.2283325.n4.nabble.com/Patch-for-GPFS-support-td2508779.html Cheers, Barry On 28 Sep 2012, at 11:28, Barry Evans <bevans@canditmedia.co.uk> wrote: Just tried rsync -A (preserve acl's) on this end, no joy there either. two filesystems, same machine. sounds very, very evil but have you tried robocopy from one share to another? Not ideal. Cheers, Barry On 28 Sep 2012, at 11:03, Orlando Richards <orlando.richards@ed.ac.uk> wrote: Hi folks, Does anyone know a good way to sync files between two gpfs filesystems, while preserving NFSv4 ACL's? I've tried rsync and cp - neither of which seem to copy over acls. Sample test: # mkdir test # mmeditacl -k nfs4 test # mmgetacl test #NFSv4 ACL #owner:root #group:root group:1234:rwxc:allow:FileInherit:DirInherit (X)READ/LIST (X)WRITE/CREATE (X)MKDIR (X)SYNCHRONIZE (X)READ_ACL (X)READ_ATTR (-)READ_NAMED (-)DELETE (X)DELETE_CHILD (X)CHOWN (X)EXEC/SEARCH (X)WRITE_ACL (X)WRITE_ATTR (-)WRITE_NAMED # rsync -av test/ test2/ [root@mwvm06 nasdev]# mmgetacl -k nfs4 test2 #NFSv4 ACL #owner:root #group:root special:owner@:---c:allow (-)READ/LIST (-)WRITE/CREATE (-)MKDIR (X)SYNCHRONIZE (X)READ_ACL (X)READ_ATTR (-)READ_NAMED (-)DELETE (-)DELETE_CHILD (X)CHOWN (-)EXEC/SEARCH (X)WRITE_ACL (X)WRITE_ATTR (-)WRITE_NAMED special:group@:----:allow (-)READ/LIST (-)WRITE/CREATE (-)MKDIR (X)SYNCHRONIZE (X)READ_ACL (X)READ_ATTR (-)READ_NAMED (-)DELETE (-)DELETE_CHILD (-)CHOWN (-)EXEC/SEARCH (-)WRITE_ACL (-)WRITE_ATTR (-)WRITE_NAMED special:everyone@:----:allow (-)READ/LIST (-)WRITE/CREATE (-)MKDIR (X)SYNCHRONIZE (X)READ_ACL (X)READ_ATTR (-)READ_NAMED (-)DELETE (-)DELETE_CHILD (-)CHOWN (-)EXEC/SEARCH (-)WRITE_ACL (-)WRITE_ATTR (-)WRITE_NAMED -- -- Dr Orlando Richards Information Services IT Infrastructure Division Unix Section Tel: 0131 650 4994 The University of Edinburgh is a charitable body, registered in Scotland, with registration number SC005336. _______________________________________________ gpfsug-discuss mailing list gpfsug-discuss@gpfsug.org http://gpfsug.org/mailman/listinfo/gpfsug-discuss _______________________________________________ gpfsug-discuss mailing list gpfsug-discuss@gpfsug.org http://gpfsug.org/mailman/listinfo/gpfsug-discuss
On 28/09/12 11:28, Barry Evans wrote:
Just tried rsync -A (preserve acl's) on this end, no joy there either. two filesystems, same machine.
sounds very, very evil but have you tried robocopy from one share to another? Not ideal.
I've considered it - but not yet desperate enough to try it :) Still looking for something sane. Good to see I'm not just missing something blatantly obvious though!
Cheers, Barry
On 28 Sep 2012, at 11:03, Orlando Richards <orlando.richards@ed.ac.uk <mailto:orlando.richards@ed.ac.uk>> wrote:
Hi folks,
Does anyone know a good way to sync files between two gpfs filesystems, while preserving NFSv4 ACL's?
I've tried rsync and cp - neither of which seem to copy over acls.
Sample test:
# mkdir test # mmeditacl -k nfs4 test # mmgetacl test #NFSv4 ACL #owner:root #group:root group:1234:rwxc:allow:FileInherit:DirInherit (X)READ/LIST (X)WRITE/CREATE (X)MKDIR (X)SYNCHRONIZE (X)READ_ACL (X)READ_ATTR (-)READ_NAMED (-)DELETE (X)DELETE_CHILD (X)CHOWN (X)EXEC/SEARCH (X)WRITE_ACL (X)WRITE_ATTR (-)WRITE_NAMED
# rsync -av test/ test2/ [root@mwvm06 nasdev]# mmgetacl -k nfs4 test2 #NFSv4 ACL #owner:root #group:root special:owner@:---c:allow (-)READ/LIST (-)WRITE/CREATE (-)MKDIR (X)SYNCHRONIZE (X)READ_ACL (X)READ_ATTR (-)READ_NAMED (-)DELETE (-)DELETE_CHILD (X)CHOWN (-)EXEC/SEARCH (X)WRITE_ACL (X)WRITE_ATTR (-)WRITE_NAMED
special:group@:----:allow (-)READ/LIST (-)WRITE/CREATE (-)MKDIR (X)SYNCHRONIZE (X)READ_ACL (X)READ_ATTR (-)READ_NAMED (-)DELETE (-)DELETE_CHILD (-)CHOWN (-)EXEC/SEARCH (-)WRITE_ACL (-)WRITE_ATTR (-)WRITE_NAMED
special:everyone@:----:allow (-)READ/LIST (-)WRITE/CREATE (-)MKDIR (X)SYNCHRONIZE (X)READ_ACL (X)READ_ATTR (-)READ_NAMED (-)DELETE (-)DELETE_CHILD (-)CHOWN (-)EXEC/SEARCH (-)WRITE_ACL (-)WRITE_ATTR (-)WRITE_NAMED
-- -- Dr Orlando Richards Information Services IT Infrastructure Division Unix Section Tel: 0131 650 4994
The University of Edinburgh is a charitable body, registered in Scotland, with registration number SC005336. _______________________________________________ gpfsug-discuss mailing list gpfsug-discuss@gpfsug.org <mailto:gpfsug-discuss@gpfsug.org> http://gpfsug.org/mailman/listinfo/gpfsug-discuss
_______________________________________________ gpfsug-discuss mailing list gpfsug-discuss@gpfsug.org http://gpfsug.org/mailman/listinfo/gpfsug-discuss
-- -- Dr Orlando Richards Information Services IT Infrastructure Division Unix Section Tel: 0131 650 4994 The University of Edinburgh is a charitable body, registered in Scotland, with registration number SC005336.
On Fri, 2012-09-28 at 12:06 +0100, Orlando Richards wrote:
On 28/09/12 11:28, Barry Evans wrote:
Just tried rsync -A (preserve acl's) on this end, no joy there either. two filesystems, same machine.
sounds very, very evil but have you tried robocopy from one share to another? Not ideal.
I've considered it - but not yet desperate enough to try it :)
When I have tried doing this from Windows file servers the results where not nice as Windows has ACL's for things like administrators etc. that robocopy attempted to copy over. It was also painfully slow. I found xcopy was a lot faster, though as my source was a Windows server the resultant ACL's were still borked.
Still looking for something sane.
Would AFM not do the trick?
Good to see I'm not just missing something blatantly obvious though!
What's your coding like? Depending how often you are going to be attempting this I would fix the IBM patches for rsync so they work on a modern version of rsync. Patch does not look to complicated to me. JAB. -- Jonathan A. Buzzard Email: jonathan (at) buzzard.me.uk Fife, United Kingdom.
On 28/09/12 12:30, Jonathan Buzzard wrote:
On Fri, 2012-09-28 at 12:06 +0100, Orlando Richards wrote:
On 28/09/12 11:28, Barry Evans wrote:
Just tried rsync -A (preserve acl's) on this end, no joy there either. two filesystems, same machine.
sounds very, very evil but have you tried robocopy from one share to another? Not ideal.
I've considered it - but not yet desperate enough to try it :)
When I have tried doing this from Windows file servers the results where not nice as Windows has ACL's for things like administrators etc. that robocopy attempted to copy over. It was also painfully slow. I found xcopy was a lot faster, though as my source was a Windows server the resultant ACL's were still borked.
Still looking for something sane.
Would AFM not do the trick?
Good to see I'm not just missing something blatantly obvious though!
What's your coding like? Depending how often you are going to be attempting this I would fix the IBM patches for rsync so they work on a modern version of rsync. Patch does not look to complicated to me.
Beyond my abilities it seems. If anyone fancies having a friday afternoon coding challenge, here's the problem: I'm trying to apply this patch: http://lists.samba.org/archive/rsync/attachments/20081021/015484b1/rsync_gpf... to rsync - let's say version 3.0.6: http://rsync.samba.org/ftp/rsync/src/rsync-3.0.6.tar.gz So I do: mkdir -p src/rsync cd src/rsync wget http://rsync.samba.org/ftp/rsync/src/rsync-3.0.6.tar.gz wget http://lists.samba.org/archive/rsync/attachments/20081021/015484b1/rsync_gpf... tar -zxf rsync-3.0.6.tar.gz cd rsync-3.0.6 patch -p1 -F3 -i ../rsync_gpfs_attrs-git.diff ./configure --prefix=/tmp make Error message is: $ make gcc -std=gnu99 -I. -I. -g -O2 -DHAVE_CONFIG_H -Wall -W -c gpfs.c -o gpfs.o In file included from rsync.h:920:0, from gpfs.c:20: proto.h:111:28: warning: ‘struct rsync_gpfs_attr’ declared inside parameter list [enabled by default] proto.h:111:28: warning: its scope is only this definition or declaration, which is probably not what you want [enabled by default] gpfs.c:130:6: error: conflicting types for ‘gpfs_free_attr’ proto.h:111:6: note: previous declaration of ‘gpfs_free_attr’ was here gpfs.c: In function ‘gpfs_free_sxp’: gpfs.c:142:10: error: ‘stat_x’ has no member named ‘gpfs_attr’ gpfs.c:144:20: error: ‘stat_x’ has no member named ‘gpfs_attr’ gpfs.c:145:10: error: ‘stat_x’ has no member named ‘gpfs_attr’ gpfs.c:146:5: error: ‘stat_x’ has no member named ‘gpfs_attr’ gpfs.c: In function ‘gpfs_free_list’: gpfs.c:162:3: warning: implicit declaration of function ‘DEBUG_GTE’ [-Wimplicit-function-declaration] gpfs.c:162:17: error: ‘ACL’ undeclared (first use in this function) gpfs.c:162:17: note: each undeclared identifier is reported only once for each function it appears in gpfs.c: In function ‘gpfs_receive_attr_int’: gpfs.c:212:16: error: ‘ACL’ undeclared (first use in this function) gpfs.c: In function ‘gpfs_find_attr’: gpfs.c:344:20: error: ‘ACL’ undeclared (first use in this function) gpfs.c: In function ‘gpfs_cache_attr’: gpfs.c:382:33: error: ‘stat_x’ has no member named ‘gpfs_attr’ gpfs.c: In function ‘gpfs_send_attr’: gpfs.c:398:33: error: ‘stat_x’ has no member named ‘gpfs_attr’ gpfs.c:403:17: error: ‘ACL’ undeclared (first use in this function) gpfs.c: In function ‘gpfs_get_attr’: gpfs.c:519:5: error: ‘stat_x’ has no member named ‘gpfs_attr’ gpfs.c:522:16: error: ‘ACL’ undeclared (first use in this function) gpfs.c: In function ‘gpfs_set_attr’: gpfs.c:538:16: error: ‘ACL’ undeclared (first use in this function) gpfs.c: In function ‘gpfs_attr_get_changed’: gpfs.c:587:10: error: ‘stat_x’ has no member named ‘gpfs_attr’ gpfs.c:595:37: error: ‘stat_x’ has no member named ‘gpfs_attr’ gpfs.c:597:21: error: ‘stat_x’ has no member named ‘gpfs_attr’ gpfs.c:598:7: error: ‘stat_x’ has no member named ‘gpfs_attr’ gpfs.c:601:16: error: ‘ACL’ undeclared (first use in this function) make: *** [gpfs.o] Error 1 -- -- Dr Orlando Richards Information Services IT Infrastructure Division Unix Section Tel: 0131 650 4994 The University of Edinburgh is a charitable body, registered in Scotland, with registration number SC005336.
Well, since it's Friday and I've just been tracing gpfs_get_winattr issues all the way back from SAMBAs vfs_gpfs.h to gpfs.so, might as well have a punt. Grabbing rsync latest git.
-----Original Message----- From: gpfsug-discuss-bounces@gpfsug.org [mailto:gpfsug-discuss- bounces@gpfsug.org] On Behalf Of Orlando Richards Sent: 28 September 2012 15:11 To: gpfsug-discuss@gpfsug.org Subject: Re: [gpfsug-discuss] Copying ACLs between filesystems
On 28/09/12 12:30, Jonathan Buzzard wrote:
On Fri, 2012-09-28 at 12:06 +0100, Orlando Richards wrote:
On 28/09/12 11:28, Barry Evans wrote:
Just tried rsync -A (preserve acl's) on this end, no joy there either. two filesystems, same machine.
sounds very, very evil but have you tried robocopy from one share to another? Not ideal.
I've considered it - but not yet desperate enough to try it :)
When I have tried doing this from Windows file servers the results where not nice as Windows has ACL's for things like administrators etc. that robocopy attempted to copy over. It was also painfully slow. I found xcopy was a lot faster, though as my source was a Windows server the resultant ACL's were still borked.
Still looking for something sane.
Would AFM not do the trick?
Good to see I'm not just missing something blatantly obvious though!
What's your coding like? Depending how often you are going to be attempting this I would fix the IBM patches for rsync so they work on a modern version of rsync. Patch does not look to complicated to me.
Beyond my abilities it seems. If anyone fancies having a friday afternoon coding challenge, here's the problem:
I'm trying to apply this patch:
http://lists.samba.org/archive/rsync/attachments/20081021/015484b1/rsync _gpfs_attrs-git.obj
to rsync - let's say version 3.0.6:
http://rsync.samba.org/ftp/rsync/src/rsync-3.0.6.tar.gz
So I do: mkdir -p src/rsync cd src/rsync wget http://rsync.samba.org/ftp/rsync/src/rsync-3.0.6.tar.gz wget http://lists.samba.org/archive/rsync/attachments/20081021/015484b1/rsync _gpfs_attrs-git.obj tar -zxf rsync-3.0.6.tar.gz cd rsync-3.0.6 patch -p1 -F3 -i ../rsync_gpfs_attrs-git.diff
./configure --prefix=/tmp make
Error message is:
$ make gcc -std=gnu99 -I. -I. -g -O2 -DHAVE_CONFIG_H -Wall -W -c gpfs.c -o gpfs.o In file included from rsync.h:920:0, from gpfs.c:20: proto.h:111:28: warning: 'struct rsync_gpfs_attr' declared inside parameter list [enabled by default] proto.h:111:28: warning: its scope is only this definition or declaration, which is probably not what you want [enabled by default] gpfs.c:130:6: error: conflicting types for 'gpfs_free_attr' proto.h:111:6: note: previous declaration of 'gpfs_free_attr' was here gpfs.c: In function 'gpfs_free_sxp': gpfs.c:142:10: error: 'stat_x' has no member named 'gpfs_attr' gpfs.c:144:20: error: 'stat_x' has no member named 'gpfs_attr' gpfs.c:145:10: error: 'stat_x' has no member named 'gpfs_attr' gpfs.c:146:5: error: 'stat_x' has no member named 'gpfs_attr' gpfs.c: In function 'gpfs_free_list': gpfs.c:162:3: warning: implicit declaration of function 'DEBUG_GTE' [-Wimplicit-function-declaration] gpfs.c:162:17: error: 'ACL' undeclared (first use in this function) gpfs.c:162:17: note: each undeclared identifier is reported only once for each function it appears in gpfs.c: In function 'gpfs_receive_attr_int': gpfs.c:212:16: error: 'ACL' undeclared (first use in this function) gpfs.c: In function 'gpfs_find_attr': gpfs.c:344:20: error: 'ACL' undeclared (first use in this function) gpfs.c: In function 'gpfs_cache_attr': gpfs.c:382:33: error: 'stat_x' has no member named 'gpfs_attr' gpfs.c: In function 'gpfs_send_attr': gpfs.c:398:33: error: 'stat_x' has no member named 'gpfs_attr' gpfs.c:403:17: error: 'ACL' undeclared (first use in this function) gpfs.c: In function 'gpfs_get_attr': gpfs.c:519:5: error: 'stat_x' has no member named 'gpfs_attr' gpfs.c:522:16: error: 'ACL' undeclared (first use in this function) gpfs.c: In function 'gpfs_set_attr': gpfs.c:538:16: error: 'ACL' undeclared (first use in this function) gpfs.c: In function 'gpfs_attr_get_changed': gpfs.c:587:10: error: 'stat_x' has no member named 'gpfs_attr' gpfs.c:595:37: error: 'stat_x' has no member named 'gpfs_attr' gpfs.c:597:21: error: 'stat_x' has no member named 'gpfs_attr' gpfs.c:598:7: error: 'stat_x' has no member named 'gpfs_attr' gpfs.c:601:16: error: 'ACL' undeclared (first use in this function) make: *** [gpfs.o] Error 1
-- -- Dr Orlando Richards Information Services IT Infrastructure Division Unix Section Tel: 0131 650 4994
The University of Edinburgh is a charitable body, registered in Scotland, with registration number SC005336. _______________________________________________ gpfsug-discuss mailing list gpfsug-discuss@gpfsug.org http://gpfsug.org/mailman/listinfo/gpfsug-discuss
Some progress at my end - installing libacl1-dev on my ubuntu dev box has helped a bit, as has setting: CFLAGS=-g -O2 -DHAVE_CONFIG_H -DSUPPORT_GPFS -Wall -W in the Makefile built by configure. New errors though: gcc -std=gnu99 -I. -I. -g -O2 -DHAVE_CONFIG_H -DSUPPORT_GPFS -Wall -W -c gpfs.c -o gpfs.o gpfs.c: In function ‘gpfs_free_list’: gpfs.c:162:3: warning: implicit declaration of function ‘DEBUG_GTE’ [-Wimplicit-function-declaration] gpfs.c:162:17: error: ‘ACL’ undeclared (first use in this function) gpfs.c:162:17: note: each undeclared identifier is reported only once for each function it appears in gpfs.c: In function ‘gpfs_receive_attr_int’: gpfs.c:212:16: error: ‘ACL’ undeclared (first use in this function) gpfs.c: In function ‘gpfs_find_attr’: gpfs.c:344:20: error: ‘ACL’ undeclared (first use in this function) gpfs.c: In function ‘gpfs_send_attr’: gpfs.c:403:17: error: ‘ACL’ undeclared (first use in this function) gpfs.c: In function ‘gpfs_get_attr’: gpfs.c:522:16: error: ‘ACL’ undeclared (first use in this function) gpfs.c: In function ‘gpfs_set_attr’: gpfs.c:538:16: error: ‘ACL’ undeclared (first use in this function) gpfs.c: In function ‘gpfs_attr_get_changed’: gpfs.c:601:16: error: ‘ACL’ undeclared (first use in this function) make: *** [gpfs.o] Error 1 On 28/09/12 15:46, Jez Tucker wrote:
Well, since it's Friday and I've just been tracing gpfs_get_winattr issues all the way back from SAMBAs vfs_gpfs.h to gpfs.so, might as well have a punt. Grabbing rsync latest git.
-----Original Message----- From: gpfsug-discuss-bounces@gpfsug.org [mailto:gpfsug-discuss- bounces@gpfsug.org] On Behalf Of Orlando Richards Sent: 28 September 2012 15:11 To: gpfsug-discuss@gpfsug.org Subject: Re: [gpfsug-discuss] Copying ACLs between filesystems
On 28/09/12 12:30, Jonathan Buzzard wrote:
On Fri, 2012-09-28 at 12:06 +0100, Orlando Richards wrote:
On 28/09/12 11:28, Barry Evans wrote:
Just tried rsync -A (preserve acl's) on this end, no joy there either. two filesystems, same machine.
sounds very, very evil but have you tried robocopy from one share to another? Not ideal.
I've considered it - but not yet desperate enough to try it :)
When I have tried doing this from Windows file servers the results where not nice as Windows has ACL's for things like administrators etc. that robocopy attempted to copy over. It was also painfully slow. I found xcopy was a lot faster, though as my source was a Windows server the resultant ACL's were still borked.
Still looking for something sane.
Would AFM not do the trick?
Good to see I'm not just missing something blatantly obvious though!
What's your coding like? Depending how often you are going to be attempting this I would fix the IBM patches for rsync so they work on a modern version of rsync. Patch does not look to complicated to me.
Beyond my abilities it seems. If anyone fancies having a friday afternoon coding challenge, here's the problem:
I'm trying to apply this patch:
http://lists.samba.org/archive/rsync/attachments/20081021/015484b1/rsync _gpfs_attrs-git.obj
to rsync - let's say version 3.0.6:
http://rsync.samba.org/ftp/rsync/src/rsync-3.0.6.tar.gz
So I do: mkdir -p src/rsync cd src/rsync wget http://rsync.samba.org/ftp/rsync/src/rsync-3.0.6.tar.gz wget http://lists.samba.org/archive/rsync/attachments/20081021/015484b1/rsync _gpfs_attrs-git.obj tar -zxf rsync-3.0.6.tar.gz cd rsync-3.0.6 patch -p1 -F3 -i ../rsync_gpfs_attrs-git.diff
./configure --prefix=/tmp make
Error message is:
$ make gcc -std=gnu99 -I. -I. -g -O2 -DHAVE_CONFIG_H -Wall -W -c gpfs.c -o gpfs.o In file included from rsync.h:920:0, from gpfs.c:20: proto.h:111:28: warning: 'struct rsync_gpfs_attr' declared inside parameter list [enabled by default] proto.h:111:28: warning: its scope is only this definition or declaration, which is probably not what you want [enabled by default] gpfs.c:130:6: error: conflicting types for 'gpfs_free_attr' proto.h:111:6: note: previous declaration of 'gpfs_free_attr' was here gpfs.c: In function 'gpfs_free_sxp': gpfs.c:142:10: error: 'stat_x' has no member named 'gpfs_attr' gpfs.c:144:20: error: 'stat_x' has no member named 'gpfs_attr' gpfs.c:145:10: error: 'stat_x' has no member named 'gpfs_attr' gpfs.c:146:5: error: 'stat_x' has no member named 'gpfs_attr' gpfs.c: In function 'gpfs_free_list': gpfs.c:162:3: warning: implicit declaration of function 'DEBUG_GTE' [-Wimplicit-function-declaration] gpfs.c:162:17: error: 'ACL' undeclared (first use in this function) gpfs.c:162:17: note: each undeclared identifier is reported only once for each function it appears in gpfs.c: In function 'gpfs_receive_attr_int': gpfs.c:212:16: error: 'ACL' undeclared (first use in this function) gpfs.c: In function 'gpfs_find_attr': gpfs.c:344:20: error: 'ACL' undeclared (first use in this function) gpfs.c: In function 'gpfs_cache_attr': gpfs.c:382:33: error: 'stat_x' has no member named 'gpfs_attr' gpfs.c: In function 'gpfs_send_attr': gpfs.c:398:33: error: 'stat_x' has no member named 'gpfs_attr' gpfs.c:403:17: error: 'ACL' undeclared (first use in this function) gpfs.c: In function 'gpfs_get_attr': gpfs.c:519:5: error: 'stat_x' has no member named 'gpfs_attr' gpfs.c:522:16: error: 'ACL' undeclared (first use in this function) gpfs.c: In function 'gpfs_set_attr': gpfs.c:538:16: error: 'ACL' undeclared (first use in this function) gpfs.c: In function 'gpfs_attr_get_changed': gpfs.c:587:10: error: 'stat_x' has no member named 'gpfs_attr' gpfs.c:595:37: error: 'stat_x' has no member named 'gpfs_attr' gpfs.c:597:21: error: 'stat_x' has no member named 'gpfs_attr' gpfs.c:598:7: error: 'stat_x' has no member named 'gpfs_attr' gpfs.c:601:16: error: 'ACL' undeclared (first use in this function) make: *** [gpfs.o] Error 1
-- -- Dr Orlando Richards Information Services IT Infrastructure Division Unix Section Tel: 0131 650 4994
The University of Edinburgh is a charitable body, registered in Scotland, with registration number SC005336. _______________________________________________ gpfsug-discuss mailing list gpfsug-discuss@gpfsug.org http://gpfsug.org/mailman/listinfo/gpfsug-discuss
_______________________________________________ gpfsug-discuss mailing list gpfsug-discuss@gpfsug.org http://gpfsug.org/mailman/listinfo/gpfsug-discuss
-- -- Dr Orlando Richards Information Services IT Infrastructure Division Unix Section Tel: 0131 650 4994 The University of Edinburgh is a charitable body, registered in Scotland, with registration number SC005336.
Whoop! Got it! Attached is the complete patch against the rsync-3.0.9 release bundle: http://www.samba.org/ftp/rsync/src/rsync-3.0.9.tar.gz The patch was taken with: diff -rupN rsync-3.0.9/ rsync-3.0.9-patched/ > gpfs_support_rsync-3.0.9.patch To build once patched - do: ./configure --enable-acl-support --enable-xattr-support --enable-gpfs-support (make sure that libacl1-dev, or equivalent, is available). Seems to work as desired. In the end, I removed all the "if DEBUG_GTE" statements from the gpfs.c code to get it working (!). -- Orlando On 28/09/12 15:46, Jez Tucker wrote:
Well, since it's Friday and I've just been tracing gpfs_get_winattr issues all the way back from SAMBAs vfs_gpfs.h to gpfs.so, might as well have a punt. Grabbing rsync latest git.
-----Original Message----- From: gpfsug-discuss-bounces@gpfsug.org [mailto:gpfsug-discuss- bounces@gpfsug.org] On Behalf Of Orlando Richards Sent: 28 September 2012 15:11 To: gpfsug-discuss@gpfsug.org Subject: Re: [gpfsug-discuss] Copying ACLs between filesystems
On 28/09/12 12:30, Jonathan Buzzard wrote:
On Fri, 2012-09-28 at 12:06 +0100, Orlando Richards wrote:
On 28/09/12 11:28, Barry Evans wrote:
Just tried rsync -A (preserve acl's) on this end, no joy there either. two filesystems, same machine.
sounds very, very evil but have you tried robocopy from one share to another? Not ideal.
I've considered it - but not yet desperate enough to try it :)
When I have tried doing this from Windows file servers the results where not nice as Windows has ACL's for things like administrators etc. that robocopy attempted to copy over. It was also painfully slow. I found xcopy was a lot faster, though as my source was a Windows server the resultant ACL's were still borked.
Still looking for something sane.
Would AFM not do the trick?
Good to see I'm not just missing something blatantly obvious though!
What's your coding like? Depending how often you are going to be attempting this I would fix the IBM patches for rsync so they work on a modern version of rsync. Patch does not look to complicated to me.
Beyond my abilities it seems. If anyone fancies having a friday afternoon coding challenge, here's the problem:
I'm trying to apply this patch:
http://lists.samba.org/archive/rsync/attachments/20081021/015484b1/rsync _gpfs_attrs-git.obj
to rsync - let's say version 3.0.6:
http://rsync.samba.org/ftp/rsync/src/rsync-3.0.6.tar.gz
So I do: mkdir -p src/rsync cd src/rsync wget http://rsync.samba.org/ftp/rsync/src/rsync-3.0.6.tar.gz wget http://lists.samba.org/archive/rsync/attachments/20081021/015484b1/rsync _gpfs_attrs-git.obj tar -zxf rsync-3.0.6.tar.gz cd rsync-3.0.6 patch -p1 -F3 -i ../rsync_gpfs_attrs-git.diff
./configure --prefix=/tmp make
Error message is:
$ make gcc -std=gnu99 -I. -I. -g -O2 -DHAVE_CONFIG_H -Wall -W -c gpfs.c -o gpfs.o In file included from rsync.h:920:0, from gpfs.c:20: proto.h:111:28: warning: 'struct rsync_gpfs_attr' declared inside parameter list [enabled by default] proto.h:111:28: warning: its scope is only this definition or declaration, which is probably not what you want [enabled by default] gpfs.c:130:6: error: conflicting types for 'gpfs_free_attr' proto.h:111:6: note: previous declaration of 'gpfs_free_attr' was here gpfs.c: In function 'gpfs_free_sxp': gpfs.c:142:10: error: 'stat_x' has no member named 'gpfs_attr' gpfs.c:144:20: error: 'stat_x' has no member named 'gpfs_attr' gpfs.c:145:10: error: 'stat_x' has no member named 'gpfs_attr' gpfs.c:146:5: error: 'stat_x' has no member named 'gpfs_attr' gpfs.c: In function 'gpfs_free_list': gpfs.c:162:3: warning: implicit declaration of function 'DEBUG_GTE' [-Wimplicit-function-declaration] gpfs.c:162:17: error: 'ACL' undeclared (first use in this function) gpfs.c:162:17: note: each undeclared identifier is reported only once for each function it appears in gpfs.c: In function 'gpfs_receive_attr_int': gpfs.c:212:16: error: 'ACL' undeclared (first use in this function) gpfs.c: In function 'gpfs_find_attr': gpfs.c:344:20: error: 'ACL' undeclared (first use in this function) gpfs.c: In function 'gpfs_cache_attr': gpfs.c:382:33: error: 'stat_x' has no member named 'gpfs_attr' gpfs.c: In function 'gpfs_send_attr': gpfs.c:398:33: error: 'stat_x' has no member named 'gpfs_attr' gpfs.c:403:17: error: 'ACL' undeclared (first use in this function) gpfs.c: In function 'gpfs_get_attr': gpfs.c:519:5: error: 'stat_x' has no member named 'gpfs_attr' gpfs.c:522:16: error: 'ACL' undeclared (first use in this function) gpfs.c: In function 'gpfs_set_attr': gpfs.c:538:16: error: 'ACL' undeclared (first use in this function) gpfs.c: In function 'gpfs_attr_get_changed': gpfs.c:587:10: error: 'stat_x' has no member named 'gpfs_attr' gpfs.c:595:37: error: 'stat_x' has no member named 'gpfs_attr' gpfs.c:597:21: error: 'stat_x' has no member named 'gpfs_attr' gpfs.c:598:7: error: 'stat_x' has no member named 'gpfs_attr' gpfs.c:601:16: error: 'ACL' undeclared (first use in this function) make: *** [gpfs.o] Error 1
-- -- Dr Orlando Richards Information Services IT Infrastructure Division Unix Section Tel: 0131 650 4994
The University of Edinburgh is a charitable body, registered in Scotland, with registration number SC005336. _______________________________________________ gpfsug-discuss mailing list gpfsug-discuss@gpfsug.org http://gpfsug.org/mailman/listinfo/gpfsug-discuss
_______________________________________________ gpfsug-discuss mailing list gpfsug-discuss@gpfsug.org http://gpfsug.org/mailman/listinfo/gpfsug-discuss
-- -- Dr Orlando Richards Information Services IT Infrastructure Division Unix Section Tel: 0131 650 4994 The University of Edinburgh is a charitable body, registered in Scotland, with registration number SC005336.
Nice. Can you put it on the github? https://github.com/gpfsug/gpfsug-tools
-----Original Message----- From: gpfsug-discuss-bounces@gpfsug.org [mailto:gpfsug-discuss- bounces@gpfsug.org] On Behalf Of Orlando Richards Sent: 01 October 2012 10:20 To: gpfsug-discuss@gpfsug.org Subject: Re: [gpfsug-discuss] Copying ACLs between filesystems
Whoop! Got it!
Attached is the complete patch against the rsync-3.0.9 release bundle: http://www.samba.org/ftp/rsync/src/rsync-3.0.9.tar.gz
The patch was taken with: diff -rupN rsync-3.0.9/ rsync-3.0.9-patched/ > gpfs_support_rsync- 3.0.9.patch
To build once patched - do: ./configure --enable-acl-support --enable-xattr-support --enable-gpfs- support
(make sure that libacl1-dev, or equivalent, is available).
Seems to work as desired.
In the end, I removed all the "if DEBUG_GTE" statements from the gpfs.c code to get it working (!).
-- Orlando
On 28/09/12 15:46, Jez Tucker wrote:
Well, since it's Friday and I've just been tracing gpfs_get_winattr issues all the way back from SAMBAs vfs_gpfs.h to gpfs.so, might as well have a punt. Grabbing rsync latest git.
-----Original Message----- From: gpfsug-discuss-bounces@gpfsug.org [mailto:gpfsug-discuss- bounces@gpfsug.org] On Behalf Of Orlando Richards Sent: 28 September 2012 15:11 To: gpfsug-discuss@gpfsug.org Subject: Re: [gpfsug-discuss] Copying ACLs between filesystems
On 28/09/12 12:30, Jonathan Buzzard wrote:
On Fri, 2012-09-28 at 12:06 +0100, Orlando Richards wrote:
On 28/09/12 11:28, Barry Evans wrote:
Just tried rsync -A (preserve acl's) on this end, no joy there either. two filesystems, same machine.
sounds very, very evil but have you tried robocopy from one share to another? Not ideal.
I've considered it - but not yet desperate enough to try it :)
When I have tried doing this from Windows file servers the results where not nice as Windows has ACL's for things like administrators etc. that robocopy attempted to copy over. It was also painfully slow. I found xcopy was a lot faster, though as my source was a Windows server the resultant ACL's were still borked.
Still looking for something sane.
Would AFM not do the trick?
Good to see I'm not just missing something blatantly obvious though!
What's your coding like? Depending how often you are going to be attempting this I would fix the IBM patches for rsync so they work on a modern version of rsync. Patch does not look to complicated to me.
Beyond my abilities it seems. If anyone fancies having a friday afternoon coding challenge, here's the problem:
I'm trying to apply this patch:
http://lists.samba.org/archive/rsync/attachments/20081021/015484b1/rs ync _gpfs_attrs-git.obj
to rsync - let's say version 3.0.6:
http://rsync.samba.org/ftp/rsync/src/rsync-3.0.6.tar.gz
So I do: mkdir -p src/rsync cd src/rsync wget http://rsync.samba.org/ftp/rsync/src/rsync-3.0.6.tar.gz wget http://lists.samba.org/archive/rsync/attachments/20081021/015484b1/rs ync _gpfs_attrs-git.obj tar -zxf rsync-3.0.6.tar.gz cd rsync-3.0.6 patch -p1 -F3 -i ../rsync_gpfs_attrs-git.diff
./configure --prefix=/tmp make
Error message is:
$ make gcc -std=gnu99 -I. -I. -g -O2 -DHAVE_CONFIG_H -Wall -W -c gpfs.c -o gpfs.o In file included from rsync.h:920:0, from gpfs.c:20: proto.h:111:28: warning: 'struct rsync_gpfs_attr' declared inside parameter list [enabled by default] proto.h:111:28: warning: its scope is only this definition or declaration, which is probably not what you want [enabled by default] gpfs.c:130:6: error: conflicting types for 'gpfs_free_attr' proto.h:111:6: note: previous declaration of 'gpfs_free_attr' was here gpfs.c: In function 'gpfs_free_sxp': gpfs.c:142:10: error: 'stat_x' has no member named 'gpfs_attr' gpfs.c:144:20: error: 'stat_x' has no member named 'gpfs_attr' gpfs.c:145:10: error: 'stat_x' has no member named 'gpfs_attr' gpfs.c:146:5: error: 'stat_x' has no member named 'gpfs_attr' gpfs.c: In function 'gpfs_free_list': gpfs.c:162:3: warning: implicit declaration of function 'DEBUG_GTE' [-Wimplicit-function-declaration] gpfs.c:162:17: error: 'ACL' undeclared (first use in this function) gpfs.c:162:17: note: each undeclared identifier is reported only once for each function it appears in gpfs.c: In function 'gpfs_receive_attr_int': gpfs.c:212:16: error: 'ACL' undeclared (first use in this function) gpfs.c: In function 'gpfs_find_attr': gpfs.c:344:20: error: 'ACL' undeclared (first use in this function) gpfs.c: In function 'gpfs_cache_attr': gpfs.c:382:33: error: 'stat_x' has no member named 'gpfs_attr' gpfs.c: In function 'gpfs_send_attr': gpfs.c:398:33: error: 'stat_x' has no member named 'gpfs_attr' gpfs.c:403:17: error: 'ACL' undeclared (first use in this function) gpfs.c: In function 'gpfs_get_attr': gpfs.c:519:5: error: 'stat_x' has no member named 'gpfs_attr' gpfs.c:522:16: error: 'ACL' undeclared (first use in this function) gpfs.c: In function 'gpfs_set_attr': gpfs.c:538:16: error: 'ACL' undeclared (first use in this function) gpfs.c: In function 'gpfs_attr_get_changed': gpfs.c:587:10: error: 'stat_x' has no member named 'gpfs_attr' gpfs.c:595:37: error: 'stat_x' has no member named 'gpfs_attr' gpfs.c:597:21: error: 'stat_x' has no member named 'gpfs_attr' gpfs.c:598:7: error: 'stat_x' has no member named 'gpfs_attr' gpfs.c:601:16: error: 'ACL' undeclared (first use in this function) make: *** [gpfs.o] Error 1
-- -- Dr Orlando Richards Information Services IT Infrastructure Division Unix Section Tel: 0131 650 4994
The University of Edinburgh is a charitable body, registered in Scotland, with registration number SC005336. _______________________________________________ gpfsug-discuss mailing list gpfsug-discuss@gpfsug.org http://gpfsug.org/mailman/listinfo/gpfsug-discuss
_______________________________________________ gpfsug-discuss mailing list gpfsug-discuss@gpfsug.org http://gpfsug.org/mailman/listinfo/gpfsug-discuss
-- -- Dr Orlando Richards Information Services IT Infrastructure Division Unix Section Tel: 0131 650 4994
The University of Edinburgh is a charitable body, registered in Scotland, with registration number SC005336.
On 01/10/12 10:33, Jez Tucker wrote:
Nice. Can you put it on the github?
Sure - the whole rsync source, or just the patch? Also - I've discovered that it won't identify differences between ACLs to trigger a copy. When it does copy, it copies the ACLs though. For background - we're thinking of using this for building an asynchronously-synced DR filesystem, which is an HSM filesystem (as opposed to the production filesystem, which is disk only). Thus we'll be using GPFS to find candidate files (based on CTIME and/or MTIME) and passing the list to rsync to sync over. So we could pass the list to "touch" to touch the destination files before syncing to them, to force rsync to do a copy. -- Orlando
-----Original Message----- From: gpfsug-discuss-bounces@gpfsug.org [mailto:gpfsug-discuss- bounces@gpfsug.org] On Behalf Of Orlando Richards Sent: 01 October 2012 10:20 To: gpfsug-discuss@gpfsug.org Subject: Re: [gpfsug-discuss] Copying ACLs between filesystems
Whoop! Got it!
Attached is the complete patch against the rsync-3.0.9 release bundle: http://www.samba.org/ftp/rsync/src/rsync-3.0.9.tar.gz
The patch was taken with: diff -rupN rsync-3.0.9/ rsync-3.0.9-patched/ > gpfs_support_rsync- 3.0.9.patch
To build once patched - do: ./configure --enable-acl-support --enable-xattr-support --enable-gpfs- support
(make sure that libacl1-dev, or equivalent, is available).
Seems to work as desired.
In the end, I removed all the "if DEBUG_GTE" statements from the gpfs.c code to get it working (!).
-- Orlando
On 28/09/12 15:46, Jez Tucker wrote:
Well, since it's Friday and I've just been tracing gpfs_get_winattr issues all the way back from SAMBAs vfs_gpfs.h to gpfs.so, might as well have a punt. Grabbing rsync latest git.
-----Original Message----- From: gpfsug-discuss-bounces@gpfsug.org [mailto:gpfsug-discuss- bounces@gpfsug.org] On Behalf Of Orlando Richards Sent: 28 September 2012 15:11 To: gpfsug-discuss@gpfsug.org Subject: Re: [gpfsug-discuss] Copying ACLs between filesystems
On 28/09/12 12:30, Jonathan Buzzard wrote:
On Fri, 2012-09-28 at 12:06 +0100, Orlando Richards wrote:
On 28/09/12 11:28, Barry Evans wrote:
Just tried rsync -A (preserve acl's) on this end, no joy there either. two filesystems, same machine.
sounds very, very evil but have you tried robocopy from one share to another? Not ideal.
I've considered it - but not yet desperate enough to try it :)
When I have tried doing this from Windows file servers the results where not nice as Windows has ACL's for things like administrators etc. that robocopy attempted to copy over. It was also painfully slow. I found xcopy was a lot faster, though as my source was a Windows server the resultant ACL's were still borked.
Still looking for something sane.
Would AFM not do the trick?
Good to see I'm not just missing something blatantly obvious though!
What's your coding like? Depending how often you are going to be attempting this I would fix the IBM patches for rsync so they work on a modern version of rsync. Patch does not look to complicated to me.
Beyond my abilities it seems. If anyone fancies having a friday afternoon coding challenge, here's the problem:
I'm trying to apply this patch:
http://lists.samba.org/archive/rsync/attachments/20081021/015484b1/rs ync _gpfs_attrs-git.obj
to rsync - let's say version 3.0.6:
http://rsync.samba.org/ftp/rsync/src/rsync-3.0.6.tar.gz
So I do: mkdir -p src/rsync cd src/rsync wget http://rsync.samba.org/ftp/rsync/src/rsync-3.0.6.tar.gz wget http://lists.samba.org/archive/rsync/attachments/20081021/015484b1/rs ync _gpfs_attrs-git.obj tar -zxf rsync-3.0.6.tar.gz cd rsync-3.0.6 patch -p1 -F3 -i ../rsync_gpfs_attrs-git.diff
./configure --prefix=/tmp make
Error message is:
$ make gcc -std=gnu99 -I. -I. -g -O2 -DHAVE_CONFIG_H -Wall -W -c gpfs.c -o gpfs.o In file included from rsync.h:920:0, from gpfs.c:20: proto.h:111:28: warning: 'struct rsync_gpfs_attr' declared inside parameter list [enabled by default] proto.h:111:28: warning: its scope is only this definition or declaration, which is probably not what you want [enabled by default] gpfs.c:130:6: error: conflicting types for 'gpfs_free_attr' proto.h:111:6: note: previous declaration of 'gpfs_free_attr' was here gpfs.c: In function 'gpfs_free_sxp': gpfs.c:142:10: error: 'stat_x' has no member named 'gpfs_attr' gpfs.c:144:20: error: 'stat_x' has no member named 'gpfs_attr' gpfs.c:145:10: error: 'stat_x' has no member named 'gpfs_attr' gpfs.c:146:5: error: 'stat_x' has no member named 'gpfs_attr' gpfs.c: In function 'gpfs_free_list': gpfs.c:162:3: warning: implicit declaration of function 'DEBUG_GTE' [-Wimplicit-function-declaration] gpfs.c:162:17: error: 'ACL' undeclared (first use in this function) gpfs.c:162:17: note: each undeclared identifier is reported only once for each function it appears in gpfs.c: In function 'gpfs_receive_attr_int': gpfs.c:212:16: error: 'ACL' undeclared (first use in this function) gpfs.c: In function 'gpfs_find_attr': gpfs.c:344:20: error: 'ACL' undeclared (first use in this function) gpfs.c: In function 'gpfs_cache_attr': gpfs.c:382:33: error: 'stat_x' has no member named 'gpfs_attr' gpfs.c: In function 'gpfs_send_attr': gpfs.c:398:33: error: 'stat_x' has no member named 'gpfs_attr' gpfs.c:403:17: error: 'ACL' undeclared (first use in this function) gpfs.c: In function 'gpfs_get_attr': gpfs.c:519:5: error: 'stat_x' has no member named 'gpfs_attr' gpfs.c:522:16: error: 'ACL' undeclared (first use in this function) gpfs.c: In function 'gpfs_set_attr': gpfs.c:538:16: error: 'ACL' undeclared (first use in this function) gpfs.c: In function 'gpfs_attr_get_changed': gpfs.c:587:10: error: 'stat_x' has no member named 'gpfs_attr' gpfs.c:595:37: error: 'stat_x' has no member named 'gpfs_attr' gpfs.c:597:21: error: 'stat_x' has no member named 'gpfs_attr' gpfs.c:598:7: error: 'stat_x' has no member named 'gpfs_attr' gpfs.c:601:16: error: 'ACL' undeclared (first use in this function) make: *** [gpfs.o] Error 1
-- -- Dr Orlando Richards Information Services IT Infrastructure Division Unix Section Tel: 0131 650 4994
The University of Edinburgh is a charitable body, registered in Scotland, with registration number SC005336. _______________________________________________ gpfsug-discuss mailing list gpfsug-discuss@gpfsug.org http://gpfsug.org/mailman/listinfo/gpfsug-discuss
_______________________________________________ gpfsug-discuss mailing list gpfsug-discuss@gpfsug.org http://gpfsug.org/mailman/listinfo/gpfsug-discuss
-- -- Dr Orlando Richards Information Services IT Infrastructure Division Unix Section Tel: 0131 650 4994
The University of Edinburgh is a charitable body, registered in Scotland, with registration number SC005336.
_______________________________________________ gpfsug-discuss mailing list gpfsug-discuss@gpfsug.org http://gpfsug.org/mailman/listinfo/gpfsug-discuss
-- -- Dr Orlando Richards Information Services IT Infrastructure Division Unix Section Tel: 0131 650 4994 The University of Edinburgh is a charitable body, registered in Scotland, with registration number SC005336.
I'd put the tarball, patch and binary. That way it'll all make sense in 3 years time and you won't have to go scrabbling for the original src. Let me know your github user and I'll give you r/w.
-----Original Message----- From: gpfsug-discuss-bounces@gpfsug.org [mailto:gpfsug-discuss- bounces@gpfsug.org] On Behalf Of Orlando Richards Sent: 01 October 2012 10:42 To: gpfsug main discussion list Subject: Re: [gpfsug-discuss] Copying ACLs between filesystems
On 01/10/12 10:33, Jez Tucker wrote:
Nice. Can you put it on the github?
Sure - the whole rsync source, or just the patch?
Also - I've discovered that it won't identify differences between ACLs to trigger a copy. When it does copy, it copies the ACLs though.
For background - we're thinking of using this for building an asynchronously- synced DR filesystem, which is an HSM filesystem (as opposed to the production filesystem, which is disk only). Thus we'll be using GPFS to find candidate files (based on CTIME and/or MTIME) and passing the list to rsync to sync over. So we could pass the list to "touch" to touch the destination files before syncing to them, to force rsync to do a copy.
-- Orlando
-----Original Message----- From: gpfsug-discuss-bounces@gpfsug.org [mailto:gpfsug-discuss- bounces@gpfsug.org] On Behalf Of Orlando Richards Sent: 01 October 2012 10:20 To: gpfsug-discuss@gpfsug.org Subject: Re: [gpfsug-discuss] Copying ACLs between filesystems
Whoop! Got it!
Attached is the complete patch against the rsync-3.0.9 release bundle: http://www.samba.org/ftp/rsync/src/rsync-3.0.9.tar.gz
The patch was taken with: diff -rupN rsync-3.0.9/ rsync-3.0.9-patched/ > gpfs_support_rsync- 3.0.9.patch
To build once patched - do: ./configure --enable-acl-support --enable-xattr-support --enable-gpfs- support
(make sure that libacl1-dev, or equivalent, is available).
Seems to work as desired.
In the end, I removed all the "if DEBUG_GTE" statements from the gpfs.c code to get it working (!).
-- Orlando
On 28/09/12 15:46, Jez Tucker wrote:
Well, since it's Friday and I've just been tracing gpfs_get_winattr issues all the way back from SAMBAs vfs_gpfs.h to gpfs.so, might as well have a
punt.
Grabbing rsync latest git.
-----Original Message----- From: gpfsug-discuss-bounces@gpfsug.org [mailto:gpfsug-discuss- bounces@gpfsug.org] On Behalf Of Orlando Richards Sent: 28 September 2012 15:11 To: gpfsug-discuss@gpfsug.org Subject: Re: [gpfsug-discuss] Copying ACLs between filesystems
On 28/09/12 12:30, Jonathan Buzzard wrote:
On Fri, 2012-09-28 at 12:06 +0100, Orlando Richards wrote:
On 28/09/12 11:28, Barry Evans wrote:
Just tried rsync -A (preserve acl's) on this end, no joy there either. two filesystems, same machine.
sounds very, very evil but have you tried robocopy from one share to another? Not ideal.
I've considered it - but not yet desperate enough to try it :)
When I have tried doing this from Windows file servers the results where not nice as Windows has ACL's for things like administrators etc. that robocopy attempted to copy over. It was also painfully slow. I found xcopy was a lot faster, though as my source was a Windows server the resultant ACL's were still borked.
Still looking for something sane.
Would AFM not do the trick?
Good to see I'm not just missing something blatantly obvious though!
What's your coding like? Depending how often you are going to be attempting this I would fix the IBM patches for rsync so they work on a modern version of rsync. Patch does not look to complicated to me.
Beyond my abilities it seems. If anyone fancies having a friday afternoon coding challenge, here's the problem:
I'm trying to apply this patch:
http://lists.samba.org/archive/rsync/attachments/20081021/015484b1/ rs ync _gpfs_attrs-git.obj
to rsync - let's say version 3.0.6:
http://rsync.samba.org/ftp/rsync/src/rsync-3.0.6.tar.gz
So I do: mkdir -p src/rsync cd src/rsync wget http://rsync.samba.org/ftp/rsync/src/rsync-3.0.6.tar.gz wget http://lists.samba.org/archive/rsync/attachments/20081021/015484b1/ rs ync _gpfs_attrs-git.obj tar -zxf rsync-3.0.6.tar.gz cd rsync-3.0.6 patch -p1 -F3 -i ../rsync_gpfs_attrs-git.diff
./configure --prefix=/tmp make
Error message is:
$ make gcc -std=gnu99 -I. -I. -g -O2 -DHAVE_CONFIG_H -Wall -W -c gpfs.c -o gpfs.o In file included from rsync.h:920:0, from gpfs.c:20: proto.h:111:28: warning: 'struct rsync_gpfs_attr' declared inside parameter list [enabled by default] proto.h:111:28: warning: its scope is only this definition or declaration, which is probably not what you want [enabled by default] gpfs.c:130:6: error: conflicting types for 'gpfs_free_attr' proto.h:111:6: note: previous declaration of 'gpfs_free_attr' was here gpfs.c: In function 'gpfs_free_sxp': gpfs.c:142:10: error: 'stat_x' has no member named 'gpfs_attr' gpfs.c:144:20: error: 'stat_x' has no member named 'gpfs_attr' gpfs.c:145:10: error: 'stat_x' has no member named 'gpfs_attr' gpfs.c:146:5: error: 'stat_x' has no member named 'gpfs_attr' gpfs.c: In function 'gpfs_free_list': gpfs.c:162:3: warning: implicit declaration of function 'DEBUG_GTE' [-Wimplicit-function-declaration] gpfs.c:162:17: error: 'ACL' undeclared (first use in this function) gpfs.c:162:17: note: each undeclared identifier is reported only once for each function it appears in gpfs.c: In function 'gpfs_receive_attr_int': gpfs.c:212:16: error: 'ACL' undeclared (first use in this function) gpfs.c: In function 'gpfs_find_attr': gpfs.c:344:20: error: 'ACL' undeclared (first use in this function) gpfs.c: In function 'gpfs_cache_attr': gpfs.c:382:33: error: 'stat_x' has no member named 'gpfs_attr' gpfs.c: In function 'gpfs_send_attr': gpfs.c:398:33: error: 'stat_x' has no member named 'gpfs_attr' gpfs.c:403:17: error: 'ACL' undeclared (first use in this function) gpfs.c: In function 'gpfs_get_attr': gpfs.c:519:5: error: 'stat_x' has no member named 'gpfs_attr' gpfs.c:522:16: error: 'ACL' undeclared (first use in this function) gpfs.c: In function 'gpfs_set_attr': gpfs.c:538:16: error: 'ACL' undeclared (first use in this function) gpfs.c: In function 'gpfs_attr_get_changed': gpfs.c:587:10: error: 'stat_x' has no member named 'gpfs_attr' gpfs.c:595:37: error: 'stat_x' has no member named 'gpfs_attr' gpfs.c:597:21: error: 'stat_x' has no member named 'gpfs_attr' gpfs.c:598:7: error: 'stat_x' has no member named 'gpfs_attr' gpfs.c:601:16: error: 'ACL' undeclared (first use in this function) make: *** [gpfs.o] Error 1
-- -- Dr Orlando Richards Information Services IT Infrastructure Division Unix Section Tel: 0131 650 4994
The University of Edinburgh is a charitable body, registered in Scotland, with registration number SC005336. _______________________________________________ gpfsug-discuss mailing list gpfsug-discuss@gpfsug.org http://gpfsug.org/mailman/listinfo/gpfsug-discuss
_______________________________________________ gpfsug-discuss mailing list gpfsug-discuss@gpfsug.org http://gpfsug.org/mailman/listinfo/gpfsug-discuss
-- -- Dr Orlando Richards Information Services IT Infrastructure Division Unix Section Tel: 0131 650 4994
The University of Edinburgh is a charitable body, registered in Scotland, with registration number SC005336.
_______________________________________________ gpfsug-discuss mailing list gpfsug-discuss@gpfsug.org http://gpfsug.org/mailman/listinfo/gpfsug-discuss
-- -- Dr Orlando Richards Information Services IT Infrastructure Division Unix Section Tel: 0131 650 4994
The University of Edinburgh is a charitable body, registered in Scotland, with registration number SC005336. _______________________________________________ gpfsug-discuss mailing list gpfsug-discuss@gpfsug.org http://gpfsug.org/mailman/listinfo/gpfsug-discuss
On Mon, 1 Oct 2012, Jez Tucker wrote:
I'd put the tarball, patch and binary. That way it'll all make sense in 3 years time and you won't have to go scrabbling for the original src.
Let me know your github user and I'll give you r/w.
OrlandoRichards (orlando.richards@ed.ac.uk)
-----Original Message----- From: gpfsug-discuss-bounces@gpfsug.org [mailto:gpfsug-discuss- bounces@gpfsug.org] On Behalf Of Orlando Richards Sent: 01 October 2012 10:42 To: gpfsug main discussion list Subject: Re: [gpfsug-discuss] Copying ACLs between filesystems
On 01/10/12 10:33, Jez Tucker wrote:
Nice. Can you put it on the github?
Sure - the whole rsync source, or just the patch?
Also - I've discovered that it won't identify differences between ACLs to trigger a copy. When it does copy, it copies the ACLs though.
For background - we're thinking of using this for building an asynchronously- synced DR filesystem, which is an HSM filesystem (as opposed to the production filesystem, which is disk only). Thus we'll be using GPFS to find candidate files (based on CTIME and/or MTIME) and passing the list to rsync to sync over. So we could pass the list to "touch" to touch the destination files before syncing to them, to force rsync to do a copy.
-- Orlando
-----Original Message----- From: gpfsug-discuss-bounces@gpfsug.org [mailto:gpfsug-discuss- bounces@gpfsug.org] On Behalf Of Orlando Richards Sent: 01 October 2012 10:20 To: gpfsug-discuss@gpfsug.org Subject: Re: [gpfsug-discuss] Copying ACLs between filesystems
Whoop! Got it!
Attached is the complete patch against the rsync-3.0.9 release bundle: http://www.samba.org/ftp/rsync/src/rsync-3.0.9.tar.gz
The patch was taken with: diff -rupN rsync-3.0.9/ rsync-3.0.9-patched/ > gpfs_support_rsync- 3.0.9.patch
To build once patched - do: ./configure --enable-acl-support --enable-xattr-support --enable-gpfs- support
(make sure that libacl1-dev, or equivalent, is available).
Seems to work as desired.
In the end, I removed all the "if DEBUG_GTE" statements from the gpfs.c code to get it working (!).
-- Orlando
On 28/09/12 15:46, Jez Tucker wrote:
Well, since it's Friday and I've just been tracing gpfs_get_winattr issues all the way back from SAMBAs vfs_gpfs.h to gpfs.so, might as well have a
punt.
Grabbing rsync latest git.
-----Original Message----- From: gpfsug-discuss-bounces@gpfsug.org [mailto:gpfsug-discuss- bounces@gpfsug.org] On Behalf Of Orlando Richards Sent: 28 September 2012 15:11 To: gpfsug-discuss@gpfsug.org Subject: Re: [gpfsug-discuss] Copying ACLs between filesystems
On 28/09/12 12:30, Jonathan Buzzard wrote:
On Fri, 2012-09-28 at 12:06 +0100, Orlando Richards wrote:
On 28/09/12 11:28, Barry Evans wrote:
Just tried rsync -A (preserve acl's) on this end, no joy there either. two filesystems, same machine.
sounds very, very evil but have you tried robocopy from one share to another? Not ideal.
I've considered it - but not yet desperate enough to try it :)
When I have tried doing this from Windows file servers the results where not nice as Windows has ACL's for things like administrators etc. that robocopy attempted to copy over. It was also painfully slow. I found xcopy was a lot faster, though as my source was a Windows server the resultant ACL's were still borked.
Still looking for something sane.
Would AFM not do the trick?
Good to see I'm not just missing something blatantly obvious though!
What's your coding like? Depending how often you are going to be attempting this I would fix the IBM patches for rsync so they work on a modern version of rsync. Patch does not look to complicated to me.
Beyond my abilities it seems. If anyone fancies having a friday afternoon coding challenge, here's the problem:
I'm trying to apply this patch:
http://lists.samba.org/archive/rsync/attachments/20081021/015484b1/ rs ync _gpfs_attrs-git.obj
to rsync - let's say version 3.0.6:
http://rsync.samba.org/ftp/rsync/src/rsync-3.0.6.tar.gz
So I do: mkdir -p src/rsync cd src/rsync wget http://rsync.samba.org/ftp/rsync/src/rsync-3.0.6.tar.gz wget http://lists.samba.org/archive/rsync/attachments/20081021/015484b1/ rs ync _gpfs_attrs-git.obj tar -zxf rsync-3.0.6.tar.gz cd rsync-3.0.6 patch -p1 -F3 -i ../rsync_gpfs_attrs-git.diff
./configure --prefix=/tmp make
Error message is:
$ make gcc -std=gnu99 -I. -I. -g -O2 -DHAVE_CONFIG_H -Wall -W -c gpfs.c -o gpfs.o In file included from rsync.h:920:0, from gpfs.c:20: proto.h:111:28: warning: 'struct rsync_gpfs_attr' declared inside parameter list [enabled by default] proto.h:111:28: warning: its scope is only this definition or declaration, which is probably not what you want [enabled by default] gpfs.c:130:6: error: conflicting types for 'gpfs_free_attr' proto.h:111:6: note: previous declaration of 'gpfs_free_attr' was here gpfs.c: In function 'gpfs_free_sxp': gpfs.c:142:10: error: 'stat_x' has no member named 'gpfs_attr' gpfs.c:144:20: error: 'stat_x' has no member named 'gpfs_attr' gpfs.c:145:10: error: 'stat_x' has no member named 'gpfs_attr' gpfs.c:146:5: error: 'stat_x' has no member named 'gpfs_attr' gpfs.c: In function 'gpfs_free_list': gpfs.c:162:3: warning: implicit declaration of function 'DEBUG_GTE' [-Wimplicit-function-declaration] gpfs.c:162:17: error: 'ACL' undeclared (first use in this function) gpfs.c:162:17: note: each undeclared identifier is reported only once for each function it appears in gpfs.c: In function 'gpfs_receive_attr_int': gpfs.c:212:16: error: 'ACL' undeclared (first use in this function) gpfs.c: In function 'gpfs_find_attr': gpfs.c:344:20: error: 'ACL' undeclared (first use in this function) gpfs.c: In function 'gpfs_cache_attr': gpfs.c:382:33: error: 'stat_x' has no member named 'gpfs_attr' gpfs.c: In function 'gpfs_send_attr': gpfs.c:398:33: error: 'stat_x' has no member named 'gpfs_attr' gpfs.c:403:17: error: 'ACL' undeclared (first use in this function) gpfs.c: In function 'gpfs_get_attr': gpfs.c:519:5: error: 'stat_x' has no member named 'gpfs_attr' gpfs.c:522:16: error: 'ACL' undeclared (first use in this function) gpfs.c: In function 'gpfs_set_attr': gpfs.c:538:16: error: 'ACL' undeclared (first use in this function) gpfs.c: In function 'gpfs_attr_get_changed': gpfs.c:587:10: error: 'stat_x' has no member named 'gpfs_attr' gpfs.c:595:37: error: 'stat_x' has no member named 'gpfs_attr' gpfs.c:597:21: error: 'stat_x' has no member named 'gpfs_attr' gpfs.c:598:7: error: 'stat_x' has no member named 'gpfs_attr' gpfs.c:601:16: error: 'ACL' undeclared (first use in this function) make: *** [gpfs.o] Error 1
-- -- Dr Orlando Richards Information Services IT Infrastructure Division Unix Section Tel: 0131 650 4994
The University of Edinburgh is a charitable body, registered in Scotland, with registration number SC005336. _______________________________________________ gpfsug-discuss mailing list gpfsug-discuss@gpfsug.org http://gpfsug.org/mailman/listinfo/gpfsug-discuss
_______________________________________________ gpfsug-discuss mailing list gpfsug-discuss@gpfsug.org http://gpfsug.org/mailman/listinfo/gpfsug-discuss
-- -- Dr Orlando Richards Information Services IT Infrastructure Division Unix Section Tel: 0131 650 4994
The University of Edinburgh is a charitable body, registered in Scotland, with registration number SC005336.
_______________________________________________ gpfsug-discuss mailing list gpfsug-discuss@gpfsug.org http://gpfsug.org/mailman/listinfo/gpfsug-discuss
-- -- Dr Orlando Richards Information Services IT Infrastructure Division Unix Section Tel: 0131 650 4994
The University of Edinburgh is a charitable body, registered in Scotland, with registration number SC005336. _______________________________________________ gpfsug-discuss mailing list gpfsug-discuss@gpfsug.org http://gpfsug.org/mailman/listinfo/gpfsug-discuss
_______________________________________________ gpfsug-discuss mailing list gpfsug-discuss@gpfsug.org http://gpfsug.org/mailman/listinfo/gpfsug-discuss
-- -- Dr Orlando Richards Information Services IT Infrastructure Division Unix Section Tel: 0131 650 4994 The University of Edinburgh is a charitable body, registered in Scotland, with registration number SC005336.
Could you not use AFM?
-----Original Message----- From: gpfsug-discuss-bounces@gpfsug.org [mailto:gpfsug-discuss- bounces@gpfsug.org] On Behalf Of Orlando Richards Sent: 28 September 2012 11:03 To: gpfsug-discuss@gpfsug.org Subject: [gpfsug-discuss] Copying ACLs between filesystems
Hi folks,
Does anyone know a good way to sync files between two gpfs filesystems, while preserving NFSv4 ACL's?
I've tried rsync and cp - neither of which seem to copy over acls.
Sample test:
# mkdir test # mmeditacl -k nfs4 test # mmgetacl test #NFSv4 ACL #owner:root #group:root group:1234:rwxc:allow:FileInherit:DirInherit (X)READ/LIST (X)WRITE/CREATE (X)MKDIR (X)SYNCHRONIZE (X)READ_ACL (X)READ_ATTR (-)READ_NAMED (-)DELETE (X)DELETE_CHILD (X)CHOWN (X)EXEC/SEARCH (X)WRITE_ACL (X)WRITE_ATTR (-)WRITE_NAMED
# rsync -av test/ test2/ [root@mwvm06 nasdev]# mmgetacl -k nfs4 test2 #NFSv4 ACL #owner:root #group:root special:owner@:---c:allow (-)READ/LIST (-)WRITE/CREATE (-)MKDIR (X)SYNCHRONIZE (X)READ_ACL (X)READ_ATTR (-)READ_NAMED (-)DELETE (-)DELETE_CHILD (X)CHOWN (-)EXEC/SEARCH (X)WRITE_ACL (X)WRITE_ATTR (-)WRITE_NAMED
special:group@:----:allow (-)READ/LIST (-)WRITE/CREATE (-)MKDIR (X)SYNCHRONIZE (X)READ_ACL (X)READ_ATTR (-)READ_NAMED (-)DELETE (-)DELETE_CHILD (-)CHOWN (-)EXEC/SEARCH (-)WRITE_ACL (-)WRITE_ATTR (-)WRITE_NAMED
special:everyone@:----:allow (-)READ/LIST (-)WRITE/CREATE (-)MKDIR (X)SYNCHRONIZE (X)READ_ACL (X)READ_ATTR (-)READ_NAMED (-)DELETE (-)DELETE_CHILD (-)CHOWN (-)EXEC/SEARCH (-)WRITE_ACL (-)WRITE_ATTR (-)WRITE_NAMED
-- -- Dr Orlando Richards Information Services IT Infrastructure Division Unix Section Tel: 0131 650 4994
The University of Edinburgh is a charitable body, registered in Scotland, with registration number SC005336. _______________________________________________ gpfsug-discuss mailing list gpfsug-discuss@gpfsug.org http://gpfsug.org/mailman/listinfo/gpfsug-discuss
participants (7)
-
Barry Evans -
Jez Tucker -
Jonathan Buzzard -
Orlando Richards -
orlando.richards@ed.ac.uk -
Pete Smith -
Vic Cornell
