From nobody@FreeBSD.org  Tue Aug 28 15:07:05 2007
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34])
	by hub.freebsd.org (Postfix) with ESMTP id E3B0C16A418
	for <freebsd-gnats-submit@FreeBSD.org>; Tue, 28 Aug 2007 15:07:05 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (www.freebsd.org [IPv6:2001:4f8:fff6::21])
	by mx1.freebsd.org (Postfix) with ESMTP id D2C9613C465
	for <freebsd-gnats-submit@FreeBSD.org>; Tue, 28 Aug 2007 15:07:05 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (localhost [127.0.0.1])
	by www.freebsd.org (8.14.1/8.14.1) with ESMTP id l7SF75tx098692
	for <freebsd-gnats-submit@FreeBSD.org>; Tue, 28 Aug 2007 15:07:05 GMT
	(envelope-from nobody@www.freebsd.org)
Received: (from nobody@localhost)
	by www.freebsd.org (8.14.1/8.14.1/Submit) id l7SF75Dk098691;
	Tue, 28 Aug 2007 15:07:05 GMT
	(envelope-from nobody)
Message-Id: <200708281507.l7SF75Dk098691@www.freebsd.org>
Date: Tue, 28 Aug 2007 15:07:05 GMT
From: Alex Rickabaugh <alx@alxandria.net>
To: freebsd-gnats-submit@FreeBSD.org
Subject: mv between zfs filesystems on the same zpool copies instead of moves
X-Send-Pr-Version: www-3.1
X-GNATS-Notify:

>Number:         115900
>Category:       gnu
>Synopsis:       mv between zfs filesystems on the same zpool copies instead of moves
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    pjd
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Tue Aug 28 15:10:01 GMT 2007
>Closed-Date:    Wed Sep 26 14:59:24 GMT 2007
>Last-Modified:  Wed Sep 26 14:59:24 GMT 2007
>Originator:     Alex Rickabaugh
>Release:        7.0-CURRENT-200706
>Organization:
>Environment:
FreeBSD zebra.moo.gotnull.net 7.0-CURRENT-200706 FreeBSD 7.0-CURRENT-200706 #0: Sun Jun  3 18:41:02 UTC 2007     root@almeida.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC  i386
>Description:
Bug/problem with mv: When I attempt to mv a directory/file between two zfs filesystems on the same zpool, mv copies the data between them instead of moving the files by updating metadata.

I'm not sure whether this is intended behavior or something that can/should be optimized.
>How-To-Repeat:
create a zpool and a filesystem within that zpool
create a file with a large amount of data in the zpool root
mv the file to the filesystem directory within the zpool
mv will copy the data instead of moving it
>Fix:


>Release-Note:
>Audit-Trail:

From: "Andrey V. Elsukov" <bu7cher@yandex.ru>
To: alx@alxandria.net
Cc: freebsd-gnats-submit@FreeBSD.org
Subject: Re: gnu/115900: mv between zfs filesystems on the same zpool copies instead of moves
Date: Tue, 28 Aug 2007 19:44:31 +0400

 > >Description:
 > Bug/problem with mv: When I attempt to mv a directory/file between two zfs filesystems on the same zpool, mv copies the data between them instead of moving the files by updating metadata.
 > I'm not sure whether this is intended behavior or something that can/should be optimized.
 
 There is an answer to similar question:
 http://lists.freebsd.org/pipermail/freebsd-current/2007-April/071543.html
 
 --
 WBR, Andrey V. Elsukov
State-Changed-From-To: open->closed 
State-Changed-By: pjd 
State-Changed-When: Wed Sep 26 14:57:30 UTC 2007 
State-Changed-Why:  
Not a bug. 


Responsible-Changed-From-To: freebsd-bugs->pjd 
Responsible-Changed-By: pjd 
Responsible-Changed-When: Wed Sep 26 14:57:30 UTC 2007 
Responsible-Changed-Why:  
I'll take this one. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=115900 
>Unformatted:
