Michelle Knight schreef op 03-05-10 11:41:
> What I've been doing is creating links in the entirelist folder, which 
> contain links to the sub-folders in each of the letters. very quick, very 
> simple. However, despite having access to all the folders and files, they 
> don't show up in the ZFS SMB share.
> 
> This means I've got to resort to using 
> cp -L -R /music/A/* /music/entirelist
> cp -L -R /music/B/* /music/entirelist
> ...etc. and this takes a long time and probably hammers the hard disk harder 
> than necessary.
> 
> Anyone with any better ideas than this please?

As you noticed, cp -L doesn't create symlinks: it dereferences existing
ones. (turns them into ordinary files/directories in the copy)

You could try something like this instead:

        cd /music/entirelist
        ln -s ../?/* .

This will create symlinks in /music/entirelist to everything that's in
the letter-directories. If you also have other one-character directories
in music, you might want to use [A-Z] instead of ?.

Onno

Attachment: signature.asc
Description: OpenPGP digital signature

_______________________________________________
zfs-discuss mailing list
zfs-discuss@opensolaris.org
http://mail.opensolaris.org/mailman/listinfo/zfs-discuss

Reply via email to