From owner-freebsd-current Sun Sep 29 15:41:18 2002 Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 2331A37B419; Sun, 29 Sep 2002 15:41:13 -0700 (PDT) Received: from hun.org (hun.org [216.190.27.122]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9DA0643E6A; Sun, 29 Sep 2002 15:41:12 -0700 (PDT) (envelope-from attila@hun.org) Received: by hun.org (Postfix, from userid 1001) id 23C1C665E3; Sun, 29 Sep 2002 22:41:12 +0000 (GMT) Date: Sun, 29 Sep 2002 22:41:12 +0000 (GMT) Message-Id: <20020929224112.QVYQ5944@hun.org> From: attila! X-Mailer: AttilaMail with XEmacs & Postfix on FreeBSD 5.0-CURRENT X-Ballistic: N 37.218497 W 113.614979 X-Address: 31 N 700 E, St George UT 84770-3028 X-No-Archive: yes In-Reply-To: References: <20020929195153.Oy3a2352@hun.org> To: Julian Elischer Cc: Maxim Sobolev , FreeBSD-CURRENT Subject: Re: broken: tar -l (--one-file-system) flag Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1; name="text" Content-Transfer-Encoding: 7bit Content-Disposition: inline Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG 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