[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: cp command option -x, --one-file-system
From: |
Jim Meyering |
Subject: |
Re: cp command option -x, --one-file-system |
Date: |
Fri, 28 Nov 2008 15:14:53 +0100 |
ebloch <address@hidden> wrote:
> cp command option :
>
> -x, --one-file-system
> stay on this file system
>
> sometimes does not stay on the same filesystem.
>
> using cmd line :
> cp -r -u -p -x -f -v --target-directory='/abc/def/123/456/xx" /home
> or
> cp -rupxfv --target-directory='/abc/def/123/456/xx" /home
>
> where '/home' is mounted on a different volume than '/'.
Thanks for the report.
What version of coreutils is that? (run cp --version)
However, I can't reproduce the problem using a recent version.
I tried to by using a tiny file system:
$ df -hT /full
Filesystem Type Size Used Avail Use% Mounted on
/dev/sda6 ext3 7.6M 7.3M 0 100% /full
and then these commands:
$ mkdir /tmp/xxxxx
$ cp -r -u -p -x -f --target-directory=/tmp/xxxxx /full
`/full' -> `/tmp/xxxxx/full'
`/full/lost+found' -> `/tmp/xxxxx/full/lost+found'
`/full/tmp' -> `/tmp/xxxxx/full/tmp'
`/full/tmp/big' -> `/tmp/xxxxx/full/tmp/big'