Oof, I see this has been discussed since (and, actually, IIRC it was discussed a long time ago too).
Anyways, IMO, this requires a new syscall or syscalls: xdevrename(2) xdevcopy(2) and then mv(1) can do: if (rename(old, new) != 0) { if (xdevrename(old, new) != 0) { /* do a cp(1) instead */ return (do_cp(old, new)); } return (0); } return (0); cp(1), and maybe ln(1), could do something similar using xdevcopy(2). Nico -- _______________________________________________ zfs-discuss mailing list zfs-discuss@opensolaris.org http://mail.opensolaris.org/mailman/listinfo/zfs-discuss