NetBSD Problem Report #45259

From wiz@danbala.tuwien.ac.at  Tue Aug 16 08:11:38 2011
Return-Path: <wiz@danbala.tuwien.ac.at>
Received: from mail.netbsd.org (mail.netbsd.org [204.152.190.11])
	by www.NetBSD.org (Postfix) with ESMTP id 0C64363B89A
	for <gnats-bugs@gnats.NetBSD.org>; Tue, 16 Aug 2011 08:11:38 +0000 (UTC)
Message-Id: <20110816081136.5D8B3391A2F@danbala.tuwien.ac.at>
Date: Tue, 16 Aug 2011 10:11:36 +0200 (CEST)
From: Thomas Klausner <wiz@NetBSD.org>
Reply-To: Thomas Klausner <wiz@NetBSD.org>
To: gnats-bugs@gnats.NetBSD.org
Subject: mv: system extended attribute will not be preserved
X-Send-Pr-Version: 3.95

>Number:         45259
>Category:       bin
>Synopsis:       mv: system extended attribute will not be preserved
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    manu
>State:          closed
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Tue Aug 16 08:15:00 +0000 2011
>Closed-Date:    Thu Aug 18 12:40:53 +0000 2011
>Last-Modified:  Thu Aug 18 12:40:53 +0000 2011
>Originator:     Thomas Klausner
>Release:        NetBSD 5.99.55
>Organization:

>Environment:


System: NetBSD 5.99.55/amd64
Architecture: x86_64
Machine: amd64
>Description:
Since EA support has been added to cp/mv, mv reports the following
when moving directories (perhaps also for files) from one UFS file system
to another UFS file system:
	mv: system extended attribute will not be preserved

I've never created any EAs, so the warning is even unnecessary.

manu@ writes:

That's a probem which will be difficult to solve: when you move
across filesystems, you do a cp -p and delete. When copying as
un unprivilegied user, system extended attributes cannot be copied,
since they are only accessible to root. But this is really troublesome
since we do not even have a way tp discover if there are system EA or
not.
>How-To-Repeat:
mv /fs1/dir /fs2

>Fix:
not provided

>Release-Note:

>Audit-Trail:

Responsible-Changed-From-To: bin-bug-people->manu
Responsible-Changed-By: wiz@NetBSD.org
Responsible-Changed-When: Tue, 16 Aug 2011 08:18:04 +0000
Responsible-Changed-Why:
Over to manu.


From: Emmanuel Dreyfus <manu@netbsd.org>
To: gnats-bugs@NetBSD.org
Cc: 
Subject: Re: bin/45259 (mv: system extended attribute will not be preserved)
Date: Tue, 16 Aug 2011 15:01:10 +0000

 NetBSD's cp -p warns if it is not able to copy system attributes. It will
 always complain when invoked by an unprivilegied user since it has not
 way to know if there are system EA or not (only root can list them).

 A cross-filesystem mv will call cp -p, which explains why the message
 apaears with mv. 

 I think we should just remove the warning. Another option is to add
 a -q (for quiet) option to cp and have mv use cp -pq. unprivilegied
 users using cp -p will still always get a warning.

 -- 
 Emmanuel Dreyfus
 manu@netbsd.org

State-Changed-From-To: open->closed
State-Changed-By: manu@NetBSD.org
State-Changed-When: Thu, 18 Aug 2011 12:40:53 +0000
State-Changed-Why:
The overzealous message was removed


>Unformatted:

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.39 2013/11/01 18:47:49 spz Exp $
$NetBSD: gnats_config.sh,v 1.8 2006/05/07 09:23:38 tsutsui Exp $
Copyright © 1994-2007 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.