GNU bug report logs - #14383
cp --one-file-system / will not copy whole root filesystem

Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.

Package: coreutils; Severity: wishlist; Reported by: Pavel Machek <pavel@HIDDEN>; dated Fri, 10 May 2013 16:05:02 UTC; Maintainer for coreutils is bug-coreutils@HIDDEN.

Message received at 14383 <at> debbugs.gnu.org:


Received: (at 14383) by debbugs.gnu.org; 10 May 2013 21:22:35 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Fri May 10 17:22:35 2013
Received: from localhost ([127.0.0.1]:35971 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.72)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1Uaulu-0000yz-QM
	for submit <at> debbugs.gnu.org; Fri, 10 May 2013 17:22:35 -0400
Received: from joseki.proulx.com ([216.17.153.58]:40356)
	by debbugs.gnu.org with esmtp (Exim 4.72)
	(envelope-from <bob@HIDDEN>) id 1Uauls-0000yq-C0
	for 14383 <at> debbugs.gnu.org; Fri, 10 May 2013 17:22:33 -0400
Received: from hysteria.proulx.com (hysteria.proulx.com [192.168.230.119])
	by joseki.proulx.com (Postfix) with ESMTP id 5C247211DE;
	Fri, 10 May 2013 15:22:19 -0600 (MDT)
Received: by hysteria.proulx.com (Postfix, from userid 1000)
	id 09E6B3DA32; Fri, 10 May 2013 15:22:18 -0600 (MDT)
Date: Fri, 10 May 2013 15:22:18 -0600
From: Bob Proulx <bob@HIDDEN>
To: 14383 <at> debbugs.gnu.org, Pavel Machek <pavel@HIDDEN>
Subject: Re: bug#14383: cp --one-file-system / will not copy whole root
	filesystem
Message-ID: <20130510212218.GA12091@HIDDEN>
References: <20130510105535.GA5872@HIDDEN>
	<518D3653.1080600@HIDDEN> <87ehde61fo.fsf@HIDDEN>
MIME-Version: 1.0
Content-Type: text/plain; charset=iso-8859-1
Content-Disposition: inline
In-Reply-To: <87ehde61fo.fsf@HIDDEN>
User-Agent: Mutt/1.5.21 (2010-09-15)
Content-Transfer-Encoding: quoted-printable
X-Spam-Score: -0.5 (/)
X-Debbugs-Envelope-To: 14383
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.13
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <http://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>,
	<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <http://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <http://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>,
	<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Sender: debbugs-submit-bounces <at> debbugs.gnu.org
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
X-Spam-Score: -3.2 (---)

Andreas Schwab wrote:
> P=E1draig Brady writes:
> > I suppose you could give the advice to ensure that all
> > mounts in a tree should be unmounted to ensure that
> > the base file system contents are copied.
>=20
> The easiest way to uncover all over-mounted files of a filesystem is to
> bind-mount it somewhere else.

I could see creating a section in the documentation as a HOWTO on
copying filesystems from one place to another.  But I don't think cp
is the place to add code to do bind mounts so that an entire
filesystem is copied.  Also that is quite kernel specific behavior.
It would be a portability nightmare.

Also I think most users understand that the purpose of -x is to
prevent crossing filesystem boundaries.  Don't start walking
down nfs mounted filesystems.  Don't start walking down other mount
points at all.  And with it that means that anything that is shadowed
will also not be copied.  That has been the behavior since recursive
copies and -x were added to cp.

I know the suggestion wasn't to change the behavior of cp in this case
to actually copied the shadowed files but to document it somehow so
that the user is freshly aware of it.  Wake them up so that it is
fresh in their brain cache.

If cp -v is used does cp report skipping mount points?  That might be
the best place to note this happening.

Bob




Information forwarded to bug-coreutils@HIDDEN:
bug#14383; Package coreutils. Full text available.

Message received at 14383 <at> debbugs.gnu.org:


Received: (at 14383) by debbugs.gnu.org; 10 May 2013 20:10:54 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Fri May 10 16:10:54 2013
Received: from localhost ([127.0.0.1]:35918 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.72)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1UateW-0006Xq-W6
	for submit <at> debbugs.gnu.org; Fri, 10 May 2013 16:10:53 -0400
Received: from mail-out.m-online.net ([212.18.0.10]:53008)
	by debbugs.gnu.org with esmtp (Exim 4.72)
	(envelope-from <whitebox@HIDDEN>) id 1UateU-0006Xe-Ro
	for 14383 <at> debbugs.gnu.org; Fri, 10 May 2013 16:10:51 -0400
Received: from frontend1.mail.m-online.net (frontend1.mail.intern.m-online.net
	[192.168.8.180])
	by mail-out.m-online.net (Postfix) with ESMTP id 3b6jGP5g9tz3hhTC;
	Fri, 10 May 2013 22:10:37 +0200 (CEST)
Received: from localhost (dynscan1.mnet-online.de [192.168.6.68])
	by mail.m-online.net (Postfix) with ESMTP id 3b6jGP42gPzbbm5;
	Fri, 10 May 2013 22:10:37 +0200 (CEST)
X-Virus-Scanned: amavisd-new at mnet-online.de
Received: from mail.mnet-online.de ([192.168.8.180])
	by localhost (dynscan1.mail.m-online.net [192.168.6.68]) (amavisd-new,
	port 10024)
	with ESMTP id Ewav2HX3a7NQ; Fri, 10 May 2013 22:10:36 +0200 (CEST)
X-Auth-Info: EwpjxIKRb4pbE5GEByXPxR3nGYaJpeYqKIGfyAkSsPo=
Received: from hase.home (ppp-88-217-97-172.dynamic.mnet-online.de
	[88.217.97.172]) by mail.mnet-online.de (Postfix) with ESMTPA;
	Fri, 10 May 2013 22:10:36 +0200 (CEST)
Received: by hase.home (Postfix, from userid 1000)
	id 99BA210673F; Fri, 10 May 2013 22:10:35 +0200 (CEST)
From: Andreas Schwab <schwab@HIDDEN>
To: =?utf-8?Q?P=C3=A1draig?= Brady <P@HIDDEN>
Subject: Re: bug#14383: cp --one-file-system / will not copy whole root
	filesystem
References: <20130510105535.GA5872@HIDDEN>
	<518D3653.1080600@HIDDEN>
X-Yow: I will establish the first SHOPPING MALL in NUTLEY, New Jersey...
Date: Fri, 10 May 2013 22:10:35 +0200
In-Reply-To: <518D3653.1080600@HIDDEN> (=?utf-8?Q?=22P=C3=A1draig?=
	Brady"'s message of "Fri, 10 May 2013 19:02:59 +0100")
Message-ID: <87ehde61fo.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3 (gnu/linux)
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable
X-Spam-Score: 0.8 (/)
X-Debbugs-Envelope-To: 14383
Cc: 14383 <at> debbugs.gnu.org, Pavel Machek <pavel@HIDDEN>
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.13
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <http://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>,
	<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <http://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <http://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>,
	<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Sender: debbugs-submit-bounces <at> debbugs.gnu.org
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
X-Spam-Score: -1.9 (-)

P=C3=A1draig Brady <P@HIDDEN> writes:

> I suppose you could give the advice to ensure that all
> mounts in a tree should be unmounted to ensure that
> the base file system contents are copied.

The easiest way to uncover all over-mounted files of a filesystem is to
bind-mount it somewhere else.

Andreas.

--=20
Andreas Schwab, schwab@HIDDEN
GPG Key fingerprint =3D 58CA 54C7 6D53 942B 1756  01D3 44D5 214B 8276 4ED=
5
"And now for something completely different."




Information forwarded to bug-coreutils@HIDDEN:
bug#14383; Package coreutils. Full text available.

Message received at 14383 <at> debbugs.gnu.org:


Received: (at 14383) by debbugs.gnu.org; 10 May 2013 18:03:16 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Fri May 10 14:03:16 2013
Received: from localhost ([127.0.0.1]:35878 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.72)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1Uarf1-0000rG-S4
	for submit <at> debbugs.gnu.org; Fri, 10 May 2013 14:03:16 -0400
Received: from mail1.vodafone.ie ([213.233.128.43]:47198)
	by debbugs.gnu.org with esmtp (Exim 4.72)
	(envelope-from <P@HIDDEN>) id 1Uarez-0000qy-4g
	for 14383 <at> debbugs.gnu.org; Fri, 10 May 2013 14:03:14 -0400
X-IronPort-Anti-Spam-Filtered: true
X-IronPort-Anti-Spam-Result: AjgDAEs1jVFtTPp6/2dsb2JhbAANRcBpgmwDAYESgxMBAQEEMgFGEAsNCwkWDwkDAgECAUUGDQEHAQGzbpIYjklfB4NVA51ljgw
Received: from unknown (HELO [192.168.1.79]) ([109.76.250.122])
	by mail1.vodafone.ie with ESMTP; 10 May 2013 19:03:00 +0100
Message-ID: <518D3653.1080600@HIDDEN>
Date: Fri, 10 May 2013 19:02:59 +0100
From: =?ISO-8859-1?Q?P=E1draig_Brady?= <P@HIDDEN>
User-Agent: Mozilla/5.0 (X11; Linux x86_64;
	rv:17.0) Gecko/20130110 Thunderbird/17.0.2
MIME-Version: 1.0
To: Pavel Machek <pavel@HIDDEN>
Subject: Re: bug#14383: cp --one-file-system / will not copy whole root
	filesystem
References: <20130510105535.GA5872@HIDDEN>
In-Reply-To: <20130510105535.GA5872@HIDDEN>
X-Enigmail-Version: 1.5.1
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 8bit
X-Spam-Score: 0.8 (/)
X-Debbugs-Envelope-To: 14383
Cc: 14383 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.13
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <http://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>,
	<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <http://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <http://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>,
	<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Sender: debbugs-submit-bounces <at> debbugs.gnu.org
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
X-Spam-Score: -0.5 (/)

On 05/10/2013 11:55 AM, Pavel Machek wrote:
> Hi!
> 
> On systems like linux, cp / -a --one-file-system (destination) will
> not copy whole root filesystem. It is not cp's fault, but the
> behaviour is quite surprising to the users, so maybe it would be worth
> warning in man page?
> 
> Something like
> 
>        -x, --one-file-system
>               stay on this file system
> 
> 	      Note that on systems that allow mounts over non-empty
> 	      directories (like Linux), cp / -ax (destination) will
> 	      not copy whole filesystem. In particular, content of
> 	      /dev will not be usually copied, because distributions
> 	      mount tmpfs over /dev.
> 
> [Ok, there's hopefully better wording...?]

Well this issue is not restricted to -x of course,
but I suppose it's might be a good place to put a warning.
I suppose you could give the advice to ensure that all
mounts in a tree should be unmounted to ensure that
the base file system contents are copied.
That info would be more appropriate in the texinfo manual,
than the man page I would think.

thanks,
Pádraig.





Information forwarded to bug-coreutils@HIDDEN:
bug#14383; Package coreutils. Full text available.

Message received at 14383 <at> debbugs.gnu.org:


Received: (at 14383) by debbugs.gnu.org; 10 May 2013 17:30:04 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Fri May 10 13:30:04 2013
Received: from localhost ([127.0.0.1]:35863 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.72)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1Uar8t-0007sB-FU
	for submit <at> debbugs.gnu.org; Fri, 10 May 2013 13:30:04 -0400
Received: from atrey.karlin.mff.cuni.cz ([195.113.26.193]:53561)
	by debbugs.gnu.org with esmtp (Exim 4.72)
	(envelope-from <pavel@HIDDEN>) id 1Uar8q-0007rF-NT
	for 14383 <at> debbugs.gnu.org; Fri, 10 May 2013 13:30:02 -0400
Received: by atrey.karlin.mff.cuni.cz (Postfix, from userid 512)
	id 6302F81668; Fri, 10 May 2013 19:29:48 +0200 (CEST)
Date: Fri, 10 May 2013 19:29:47 +0200
From: Pavel Machek <pavel@HIDDEN>
To: Bob Proulx <bob@HIDDEN>
Subject: Re: bug#14383: cp --one-file-system / will not copy whole root
	filesystem
Message-ID: <20130510172946.GA3781@HIDDEN>
References: <20130510105535.GA5872@HIDDEN>
	<20130510163525.GA31666@HIDDEN>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
In-Reply-To: <20130510163525.GA31666@HIDDEN>
User-Agent: Mutt/1.5.20 (2009-06-14)
X-Spam-Score: 0.8 (/)
X-Debbugs-Envelope-To: 14383
Cc: 14383 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.13
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <http://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>,
	<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <http://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <http://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>,
	<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Sender: debbugs-submit-bounces <at> debbugs.gnu.org
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
X-Spam-Score: -1.9 (-)

Hi!

> But isn't that the entire purpose of -x?  To avoid copying files on
> other file systems?
> 
> I am just not sure about having a description that is "don't copy
> files on other filesystems" and then "warning: does not copy files on
> other filesystems".
> 
> I have never liked the wording of "stay on this file system".  Usually
> describing things in the positive, saying what it does, is best.  But
> I always felt that with -x describing it in the negative, saying what
> it does not do, would be better wording.

No no, I'm saying that it will not copy data on *this* filesystem;
because other filesystem is mounted over those data.

Lets say you have this on your / (ext3):

/
/dev/foo

But your distro mounts devtmpfs over /dev, so /dev/foo is not visible,
and not copied :-(.

Not that cp can do much about that, but I tried to backup my /
filesystem, and that's exactly what happened.
 
									Pavel
-- 
(english) http://www.livejournal.com/~pavelmachek
(cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html




Information forwarded to bug-coreutils@HIDDEN:
bug#14383; Package coreutils. Full text available.
Severity set to 'wishlist' from 'normal' Request was from Bob Proulx <bob@HIDDEN> to control <at> debbugs.gnu.org. Full text available.

Message received at 14383 <at> debbugs.gnu.org:


Received: (at 14383) by debbugs.gnu.org; 10 May 2013 16:35:41 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Fri May 10 12:35:40 2013
Received: from localhost ([127.0.0.1]:35827 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.72)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1UaqIG-0004dL-LQ
	for submit <at> debbugs.gnu.org; Fri, 10 May 2013 12:35:40 -0400
Received: from joseki.proulx.com ([216.17.153.58]:39235)
	by debbugs.gnu.org with esmtp (Exim 4.72)
	(envelope-from <bob@HIDDEN>)
	id 1UaqID-0004cz-UX; Fri, 10 May 2013 12:35:39 -0400
Received: from hysteria.proulx.com (hysteria.proulx.com [192.168.230.119])
	by joseki.proulx.com (Postfix) with ESMTP id EFA0F211DB;
	Fri, 10 May 2013 10:35:25 -0600 (MDT)
Received: by hysteria.proulx.com (Postfix, from userid 1000)
	id B2D923DA32; Fri, 10 May 2013 10:35:25 -0600 (MDT)
Date: Fri, 10 May 2013 10:35:25 -0600
From: Bob Proulx <bob@HIDDEN>
To: Pavel Machek <pavel@HIDDEN>
Subject: Re: bug#14383: cp --one-file-system / will not copy whole root
	filesystem
Message-ID: <20130510163525.GA31666@HIDDEN>
References: <20130510105535.GA5872@HIDDEN>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
In-Reply-To: <20130510105535.GA5872@HIDDEN>
User-Agent: Mutt/1.5.21 (2010-09-15)
X-Spam-Score: -0.5 (/)
X-Debbugs-Envelope-To: 14383
Cc: 14383 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.13
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <http://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>,
	<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <http://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <http://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>,
	<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Sender: debbugs-submit-bounces <at> debbugs.gnu.org
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
X-Spam-Score: -3.2 (---)

severity 14383 wishlist
thanks

Pavel Machek wrote:
> On systems like linux, cp / -a --one-file-system (destination) will
> not copy whole root filesystem. It is not cp's fault, but the
> behaviour is quite surprising to the users, so maybe it would be worth
> warning in man page?
> 
> Something like
> 
>        -x, --one-file-system
>               stay on this file system
> 
> 	      Note that on systems that allow mounts over non-empty
> 	      directories (like Linux), cp / -ax (destination) will
> 	      not copy whole filesystem. In particular, content of
> 	      /dev will not be usually copied, because distributions
> 	      mount tmpfs over /dev.
> 
> [Ok, there's hopefully better wording...?]

But isn't that the entire purpose of -x?  To avoid copying files on
other file systems?

I am just not sure about having a description that is "don't copy
files on other filesystems" and then "warning: does not copy files on
other filesystems".

I have never liked the wording of "stay on this file system".  Usually
describing things in the positive, saying what it does, is best.  But
I always felt that with -x describing it in the negative, saying what
it does not do, would be better wording.

Bob




Information forwarded to bug-coreutils@HIDDEN:
bug#14383; Package coreutils. Full text available.

Message received at submit <at> debbugs.gnu.org:


Received: (at submit) by debbugs.gnu.org; 10 May 2013 16:04:17 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Fri May 10 12:04:17 2013
Received: from localhost ([127.0.0.1]:35815 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.72)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1Uapnr-0002Kv-4k
	for submit <at> debbugs.gnu.org; Fri, 10 May 2013 12:04:16 -0400
Received: from eggs.gnu.org ([208.118.235.92]:36811)
	by debbugs.gnu.org with esmtp (Exim 4.72)
	(envelope-from <pavel@HIDDEN>) id 1UakzS-00025k-N6
	for submit <at> debbugs.gnu.org; Fri, 10 May 2013 06:55:56 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <pavel@HIDDEN>) id 1UakzH-0005aW-LO
	for submit <at> debbugs.gnu.org; Fri, 10 May 2013 06:55:45 -0400
X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org
X-Spam-Level: 
X-Spam-Status: No, score=-99.2 required=5.0 tests=BAYES_50, RCVD_IN_DNSWL_NONE,
	USER_IN_WHITELIST autolearn=disabled version=3.3.2
Received: from lists.gnu.org ([208.118.235.17]:47896)
	by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from <pavel@HIDDEN>)
	id 1UakzH-0005aM-FL
	for submit <at> debbugs.gnu.org; Fri, 10 May 2013 06:55:43 -0400
Received: from eggs.gnu.org ([208.118.235.92]:48151)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <pavel@HIDDEN>) id 1UakzF-0007O0-Vq
	for bug-coreutils@HIDDEN; Fri, 10 May 2013 06:55:43 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <pavel@HIDDEN>) id 1UakzD-0005Zx-VW
	for bug-coreutils@HIDDEN; Fri, 10 May 2013 06:55:41 -0400
Received: from atrey.karlin.mff.cuni.cz ([195.113.26.193]:57530)
	by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from <pavel@HIDDEN>)
	id 1UakzD-0005ZJ-ML
	for bug-coreutils@HIDDEN; Fri, 10 May 2013 06:55:39 -0400
Received: by atrey.karlin.mff.cuni.cz (Postfix, from userid 512)
	id 55B3D81668; Fri, 10 May 2013 12:55:37 +0200 (CEST)
Date: Fri, 10 May 2013 12:55:36 +0200
From: Pavel Machek <pavel@HIDDEN>
To: bug-coreutils@HIDDEN
Subject: cp --one-file-system / will not copy whole root filesystem
Message-ID: <20130510105535.GA5872@HIDDEN>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
User-Agent: Mutt/1.5.20 (2009-06-14)
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x
X-Received-From: 208.118.235.17
X-Spam-Score: -4.2 (----)
X-Debbugs-Envelope-To: submit
X-Mailman-Approved-At: Fri, 10 May 2013 12:04:14 -0400
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.13
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <http://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>,
	<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <http://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <http://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>,
	<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Sender: debbugs-submit-bounces <at> debbugs.gnu.org
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
X-Spam-Score: -6.9 (------)

Hi!

On systems like linux, cp / -a --one-file-system (destination) will
not copy whole root filesystem. It is not cp's fault, but the
behaviour is quite surprising to the users, so maybe it would be worth
warning in man page?

Something like

       -x, --one-file-system
              stay on this file system

	      Note that on systems that allow mounts over non-empty
	      directories (like Linux), cp / -ax (destination) will
	      not copy whole filesystem. In particular, content of
	      /dev will not be usually copied, because distributions
	      mount tmpfs over /dev.

[Ok, there's hopefully better wording...?]
									Pavel

-- 
(english) http://www.livejournal.com/~pavelmachek
(cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html




Acknowledgement sent to Pavel Machek <pavel@HIDDEN>:
New bug report received and forwarded. Copy sent to bug-coreutils@HIDDEN. Full text available.
Report forwarded to bug-coreutils@HIDDEN:
bug#14383; Package coreutils. Full text available.
Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.
Last modified: Mon, 25 Nov 2019 12:00:02 UTC

GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997 nCipher Corporation Ltd, 1994-97 Ian Jackson.