On Jan 3, 2008 12:32 AM, Nicolas Williams <[EMAIL PROTECTED]> wrote: > 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).
Could it be cleaner to do that within vn_renameat() instead? This will save creating a new syscall and updating quite a number of utilities. -- Just me, Wire ... Blog: <prstat.blogspot.com> _______________________________________________ zfs-discuss mailing list zfs-discuss@opensolaris.org http://mail.opensolaris.org/mailman/listinfo/zfs-discuss