As I understand ufsrestore is independent of the FS it writes to. So, I wonder, is it possible to do a pipe from a UFS to a ZFS destination like: # ufsdump 0f - /dev/rdsk/c0d0s4 | (cd /dest; ufsrestore xf -) [ufs-source -> zfs destination] -- Dick Hoogendijk -- PGP/GnuPG key: 01D2433D + http://nagual.nl/ | SunOS sxce snv101 ++
dick hoogendijk wrote:> As I understand ufsrestore is independent of the FS it writes to. So, I > wonder, is it possible to do a pipe from a UFS to a ZFS destination > like: > > # ufsdump 0f - /dev/rdsk/c0d0s4 | (cd /dest; ufsrestore xf -) > [ufs-source -> zfs destination] > >You can, but I don''t think ufsdump is ACL aware. -- Ian.
Ian Collins <ian at ianshome.com> wrote:> dick hoogendijk wrote: > > As I understand ufsrestore is independent of the FS it writes to. So, I > > wonder, is it possible to do a pipe from a UFS to a ZFS destination > > like: > > > > # ufsdump 0f - /dev/rdsk/c0d0s4 | (cd /dest; ufsrestore xf -) > > [ufs-source -> zfs destination] > > > > > You can, but I don''t think ufsdump is ACL aware.ufsdump is ACL aware since 12 years. The problem may be in ufsrestore that IIRC only supports POSIX draft ACLs. If ZFS is able to translate this to NFSv4 ACLs, you may have luck. J?rg -- EMail:joerg at schily.isdn.cs.tu-berlin.de (home) J?rg Schilling D-13353 Berlin js at cs.tu-berlin.de (uni) schilling at fokus.fraunhofer.de (work) Blog: http://schily.blogspot.com/ URL: http://cdrecord.berlios.de/private/ ftp://ftp.berlios.de/pub/schily
On Sun, 02 Nov 2008 19:47:52 +0100 Joerg.Schilling at fokus.fraunhofer.de (Joerg Schilling) wrote:> Ian Collins <ian at ianshome.com> wrote: > > > dick hoogendijk wrote: > > > As I understand ufsrestore is independent of the FS it writes to. > > > So, I wonder, is it possible to do a pipe from a UFS to a ZFS > > > destination like: > > > > > > # ufsdump 0f - /dev/rdsk/c0d0s4 | (cd /dest; ufsrestore xf -) > > > [ufs-source -> zfs destination] > > > > > > > > You can, but I don''t think ufsdump is ACL aware. > > ufsdump is ACL aware since 12 years. > > The problem may be in ufsrestore that IIRC only supports POSIX draft > ACLs. > > If ZFS is able to translate this to NFSv4 ACLs, you may have luck.So it might be better to use something like: # cd /dir1 # find . -print -depth | cpio -Ppdm /dir2 [dir1 on UFS; dir2 on ZFS] -- Dick Hoogendijk -- PGP/GnuPG key: 01D2433D + http://nagual.nl/ | SunOS sxce snv101 ++ + All that''s really worth doing is what we do for others (Lewis Carrol)
dick hoogendijk wrote:> On Sun, 02 Nov 2008 19:47:52 +0100 > Joerg.Schilling at fokus.fraunhofer.de (Joerg Schilling) wrote: > >> Ian Collins <ian at ianshome.com> wrote: >> >>> dick hoogendijk wrote: >>>> As I understand ufsrestore is independent of the FS it writes to. >>>> So, I wonder, is it possible to do a pipe from a UFS to a ZFS >>>> destination like: >>>> >>>> # ufsdump 0f - /dev/rdsk/c0d0s4 | (cd /dest; ufsrestore xf -) >>>> [ufs-source -> zfs destination] >>>> >>>> >>> You can, but I don''t think ufsdump is ACL aware. >> ufsdump is ACL aware since 12 years. >> >> The problem may be in ufsrestore that IIRC only supports POSIX draft >> ACLs. >> >> If ZFS is able to translate this to NFSv4 ACLs, you may have luck. > > So it might be better to use something like: > > # cd /dir1 > # find . -print -depth | cpio -Ppdm /dir2 > [dir1 on UFS; dir2 on ZFS] >ufsrestore will translate a UFS ACL to a ZFS ACL. Its all handled in the acl_set() interface. -Mark
Mark Shellenbaum <Mark.Shellenbaum at Sun.COM> wrote:> >>> You can, but I don''t think ufsdump is ACL aware. > >> ufsdump is ACL aware since 12 years. > >> > >> The problem may be in ufsrestore that IIRC only supports POSIX draft > >> ACLs. > >> > >> If ZFS is able to translate this to NFSv4 ACLs, you may have luck. > > > > So it might be better to use something like: > > > > # cd /dir1 > > # find . -print -depth | cpio -Ppdm /dir2 > > [dir1 on UFS; dir2 on ZFS] > > > > ufsrestore will translate a UFS ACL to a ZFS ACL. Its all handled in > the acl_set() interface.If acl_set() may be used as a direct replacement for: acl(info->f_name, SETACL, aclcount, aclp) this may be an interesting option for star. J?rg -- EMail:joerg at schily.isdn.cs.tu-berlin.de (home) J?rg Schilling D-13353 Berlin js at cs.tu-berlin.de (uni) schilling at fokus.fraunhofer.de (work) Blog: http://schily.blogspot.com/ URL: http://cdrecord.berlios.de/private/ ftp://ftp.berlios.de/pub/schily