Richard Elling wrote:

So you are saying that the OnTap .snapshot directory is equivalent to a symlink
to $FSROOT/.zfs/snapshot?  That would "solve" the directory shuffle problem.

Not quite. It's equivalent(ish) to:

cd "$MYDIR" && mkdir .snapshot && cd .snapshot
for s in "$FSROOT"/.zfs/snapshot/*; do
  test -d "$FSROOT"/.zfs/snapshot/"$s"/"${MYDIR##$FSROOT}" && \
    ln -s "$FSROOT"/.zfs/snapshot/"$s"/"${MYDIR##$FSROOT}" "$s"
done

I'd have to test to see what happens when a directory is renamed. I _suspect_ the .snapshot/$snapname dirs will either not exist or be empty.

--
Carson

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

Reply via email to