Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 29 Sep 2002 13:28:15 -0700 (PDT)
From:      Julian Elischer <julian@elischer.org>
To:        attila! <attila@hun.org>
Cc:        Maxim Sobolev <sobomax@FreeBSD.ORG>, FreeBSD-CURRENT <current@FreeBSD.ORG>
Subject:   Re: broken: tar -l (--one-file-system) flag
Message-ID:  <Pine.BSF.4.21.0209291324310.74299-100000@InterJet.elischer.org>
In-Reply-To: <20020929195153.Oy3a2352@hun.org>

next in thread | previous in thread | raw e-mail | index | archive | help
The "one filesystem" option means "do not traverse a mount point when 
enumerating the tree given by an argument."

You specified .??* *

which includes source dev proc  and drv as well as user and usr

once it started enumeraing the subdirs from source
it did not trwverse any mountpoints... just as you asked...

find is also doing what you asked...

try: tar -l -ycv -b 200 -f /source/2929.1842.root.tbz .



On Sun, 29 Sep 2002, attila! wrote:

> 
>   1. world and kernel slice dated 28 Sep 2002 1200 GMT
> 
>      3264 -r-xr-xr-x  1 root  wheel  3327414 Sep 29 17:36 /boot/kernel/kernel
>       496 -r-xr-xr-x  1 root  wheel   499424 Sep 29 17:35 /usr/bin/tar
> 
>   2. Tyan 2642 dual 1.2GHz Athlon w/ dual 160 MB/sec SCSI
> 
>       /dev/da0a     101141   72063   20987    77%    /
>       /dev/da0e    2078659 1593383  318984    83%    /usr
>       /dev/da0f    2078659 1235883  676484    65%    /usr/local
>       /dev/da0g    2086164  991494  927777    52%    /user
>       /dev/da0h    2088046       1 1921002     0%    /drv/da0h
>       /dev/da1a     101141   60779   32271    65%    /drv/da1a
>       /dev/da1e    2078659   74729 1837638     4%    /drv/da1e
>       /dev/da1f    2078659  169833 1742534     9%    /drv/da1f
>       /dev/da1g    2086164 1702723  216548    89%    /source
>       /dev/da1h    2088046 1790550  130453    93%    /usr/ports
> 
>   3. operation:
> 
>     cd /
>     tar -l -ycv -b 200 -f /source/2929.1842.root.tbz .??* *
>   or
>     tar --one-file-system -ycv -b 200 -f /source/2929.1842.root.tbz .??* *
> 
>   copied /dev /proc /source (2G partion mount point) which,
>   of course, makes it recursive --ouch!
> 
>   also
> 
>     cd /usr
>     tar --one-file-system -ycv -b 200 -f /source/2929.1842.usr.tbz .??* *
> 
>   transfered local, ports, and pkg which are all mounted
>   filesystems.
> 
>   So, before committing this to mail, I thought would try
>   the work around:
> 
>     find -x .??* * \! -type d -print >.tfile
>     tar --files-from .tfile -yc -b 200 -f /source/2929.1842.usr.tbz .??* *
> 
>   but, alas, 'find' has the same problem ... it crosses the
>   mount point to a different device. Makes me suspect there
>   is common code for the find in 'tar' with 'find'.
> 
>   If you need more info, or wish me to test it, please let
>   me know. If you're on the usual +3, it's still "today".
> 
>   best,
> 
>   Dr Daniel Flickinger
> 
> 
> Sent: Sun, 29 Sep 2002 18:48:10 +0300 by Maxim
> 
> + On Sun, Sep 29, 2002 at 12:46:11PM +0300, Maxim Sobolev wrote:
> + > I'll look into this later. Thanks for reporting!
> +
> + I can't reproduce it locally. Could you please provide
> + more details about your setup?
> +
> + -Maxim
> 
> 
> To Unsubscribe: send mail to majordomo@FreeBSD.org
> with "unsubscribe freebsd-current" in the body of the message
> 


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-current" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.4.21.0209291324310.74299-100000>