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

next in thread | previous in thread | raw e-mail | index | archive | help
    Yes, you are correct: the use of '.' rather than '*'
    stops the recursion into separately mounted files
    systems; thanx for the clarification!

    However, the manual syntax for tar is anything but clear
    --typical of the last 25+ years of *nix manuals' arcane
    definitions.

    The definition for find may be technically correct, but
    the statement still leaves the opening to interpret the
    statement as the 'starting file'; the fact the starting
    file is a mount point is irrelevant. To me, "starting
    file" is the file system "level" at the point of start
    and anything mounted to that level would not be
    included --but, in this case, I am wrong.

    Both manual statements should be cleaned up and stated
    in explicit terms. I've argued this point for 25 years
    on many other fronts so I don't suppose it's going to
    change...

    	out!

    tar:

      -l
      --one-file-system   Stay in local filesystem when creating
    			  an archive (do not cross mount points).

    find:

      -x      Prevent find from descending into directories that have
	      a device number different than that of the file from which
	      the descent began.

Sent: Sun, 29 Sep 2002 13:28:15 -0700 (PDT)

> 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 .
>


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?20020929224112.QVYQ5944>