Re: [zfs-discuss] zfs acl support in rsync?
Peter Eriksson wrote: Has anyone looked into adding support for ZFS ACLs into Rsync? It would be really convenient if it would support transparent conversions from old-style Posix ACLs to ZFS ACLs on the fly One way Posix->ZFS is probably good enough. I've tried Googling, but haven't come up with much. There seems to be some kind of built-in conversion function for just that in the CVS archive for Opensolaris (http://cvs.opensolaris.org/source/raw/on/usr/src/lib/libsec/common/aclutils.c, function onvert_aent_to_ace), but is there some public interface one could use? It should be pretty simple to do. We have acl_get()/acl_set() which are public interfaces. The acl_set() function will attempt to translate the ACL when necessary prior to setting it. Translation from POSIX->ZFS will always work. Here is an example from compress.c on how to retrieve/set an ACL with acl_get()/acl_set(). http://cvs.opensolaris.org/source/xref/on/usr/src/cmd/compress/compress.c#1658 Or take a look at how ufsrestore does it. It first has to build an acl_t structure and then sets the ACL via acl_set(). http://cvs.opensolaris.org/source/xref/on/usr/src/cmd/backup/restore/tape.c#1324 -Mark ___ zfs-discuss mailing list zfs-discuss@opensolaris.org http://mail.opensolaris.org/mailman/listinfo/zfs-discuss
[zfs-discuss] zfs acl support in rsync?
Has anyone looked into adding support for ZFS ACLs into Rsync? It would be really convenient if it would support transparent conversions from old-style Posix ACLs to ZFS ACLs on the fly One way Posix->ZFS is probably good enough. I've tried Googling, but haven't come up with much. There seems to be some kind of built-in conversion function for just that in the CVS archive for Opensolaris (http://cvs.opensolaris.org/source/raw/on/usr/src/lib/libsec/common/aclutils.c, function onvert_aent_to_ace), but is there some public interface one could use? This message posted from opensolaris.org ___ zfs-discuss mailing list zfs-discuss@opensolaris.org http://mail.opensolaris.org/mailman/listinfo/zfs-discuss
Re: [zfs-discuss] ZFS ACL support
On Fri, May 12, 2006 at 01:49:38PM -0700, Marion Hakanson wrote: > Greetings, > > I've seen discussion that tar & cpio are "ZFS ACL aware"; And that > Veritas NetBackup is not. GNU tar is not (at this time); Joerg's "star" > probably will be Real Soon Now. Feel free to correct me if I'm wrong. > > What about other utilities like Samba and rsync? We'd like to share > out ZFS storage via both NFS and CIFS, the latter of which is going > to require Samba here. Is there a version of Samba which will allow > SMB clients to do ACL's the way a Windows/NTFS file server can support? > I've seen Samba do this (sorta) on a Linux Samba server using an XFS > filesystem. Anybody tried this using Solaris/ZFS? yes, I've tried it. Samba doesn't yet support the ZFS/NFSv4 style ACL interface. I wanted to look at implementing it, but the time has so far escaped me. > In the rsync case, I can see using rsync to migrate data from old storage > on UFS or SAM-QFS (which may have ACL's set), to new ZFS storage. It sure > would be nice if rsync would copy the ACL's at the same time. I haven't tried rsync. another data point is that ufsrestore doesn't work for ZFS ACLs yet either. grant. ___ zfs-discuss mailing list zfs-discuss@opensolaris.org http://mail.opensolaris.org/mailman/listinfo/zfs-discuss
[zfs-discuss] ZFS ACL support
Greetings, I've seen discussion that tar & cpio are "ZFS ACL aware"; And that Veritas NetBackup is not. GNU tar is not (at this time); Joerg's "star" probably will be Real Soon Now. Feel free to correct me if I'm wrong. What about other utilities like Samba and rsync? We'd like to share out ZFS storage via both NFS and CIFS, the latter of which is going to require Samba here. Is there a version of Samba which will allow SMB clients to do ACL's the way a Windows/NTFS file server can support? I've seen Samba do this (sorta) on a Linux Samba server using an XFS filesystem. Anybody tried this using Solaris/ZFS? In the rsync case, I can see using rsync to migrate data from old storage on UFS or SAM-QFS (which may have ACL's set), to new ZFS storage. It sure would be nice if rsync would copy the ACL's at the same time. Regards, Marion ___ zfs-discuss mailing list zfs-discuss@opensolaris.org http://mail.opensolaris.org/mailman/listinfo/zfs-discuss