[zfs-discuss] Inode (dnode) numbers (Re: rename(2) (mv(1)) between ZFS filesystems in the same zpool)

2008-01-02 Thread Nicolas Williams
On Mon, Dec 31, 2007 at 07:20:30PM +1100, Darren Reed wrote: Frank Hofmann wrote: http://www.opengroup.org/onlinepubs/009695399/functions/rename.html ERRORS The rename() function shall fail if: [ ... ] [EXDEV] [CX] The links named by new and old are on different

Re: [zfs-discuss] Inode (dnode) numbers (Re: rename(2) (mv(1)) between ZFS filesystems in the same zpool)

2008-01-02 Thread Nicolas Williams
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) !=

Re: [zfs-discuss] Inode (dnode) numbers (Re: rename(2) (mv(1)) between ZFS filesystems in the same zpool)

2008-01-02 Thread Darren Reed
Nicolas Williams wrote: On Mon, Dec 31, 2007 at 07:20:30PM +1100, Darren Reed wrote: Frank Hofmann wrote: http://www.opengroup.org/onlinepubs/009695399/functions/rename.html ERRORS The rename() function shall fail if: [ ... ] [EXDEV] [CX] The links named by