From owner-freebsd-questions@FreeBSD.ORG Fri Nov 18 17:26:06 2011 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 5C18A1065670 for ; Fri, 18 Nov 2011 17:26:06 +0000 (UTC) (envelope-from bonomi@mail.r-bonomi.com) Received: from mail.r-bonomi.com (mx-out.r-bonomi.com [204.87.227.120]) by mx1.freebsd.org (Postfix) with ESMTP id 1291A8FC0A for ; Fri, 18 Nov 2011 17:26:05 +0000 (UTC) Received: (from bonomi@localhost) by mail.r-bonomi.com (8.14.4/rdb1) id pAIHR9XZ057564; Fri, 18 Nov 2011 11:27:09 -0600 (CST) Date: Fri, 18 Nov 2011 11:27:09 -0600 (CST) From: Robert Bonomi Message-Id: <201111181727.pAIHR9XZ057564@mail.r-bonomi.com> To: freebsd-questions@freebsd.org, kirk@strauser.com In-Reply-To: <99414592-7FC7-4F24-8FEA-6F2F7B03551A@strauser.com> Cc: Subject: Re: Shouldn't GNU tar be ignoring /proc with --one-file-system? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 18 Nov 2011 17:26:06 -0000 > From owner-freebsd-questions@freebsd.org Fri Nov 18 09:36:09 2011 > From: Kirk Strauser > Date: Fri, 18 Nov 2011 09:34:18 -0600 > To: FreeBSD Questions ML > Subject: Shouldn't GNU tar be ignoring /proc with --one-file-system? > > I use Amanda to make nightly backups of a bunch of servers using GNU tar. Howe > ver, gtar doesn't seem to respect its --one-file-system flag with /proc. Amand > a runs a variation of this command: Don't blame the software. It is just doing *exactly* what you told it to. :) > > # /usr/local/bin/gtar --create --file - --directory / --one-file-system --sparse --ignore-failed-read --totals . > /dev/null > /usr/local/bin/gtar: ./proc: file changed as we read it > > Before I file a bug report, can anyone think of a legitimate reason why gtar would be touching /proc at all? Yup. You (or more properly, Amanda) _told_ it to. See the output of 'mount(8)' for the names of all the mounted filesystems on your machine. *NOTE*WELL* that '/proc' is *not* a separate filesystem. It is merely a _directory_ with a bunch of 'special' files in it. The 'error message' is accurate -- but it is _just_ a 'warning', and -- in *this* circumstance -- _totally_ innocuous. If you want to suppress generation of that error, simply add an '--exclude' for /proc to the Amanda run.