Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 18 Nov 2011 21:20:43 +0100
From:      "Terrence Koeman" <terrence@mediamonks.net>
To:        "Daniel Staal" <DStaal@usa.net>,  "freebsd-questions@freebsd.org" <freebsd-questions@freebsd.org>
Subject:   RE: Shouldn't GNU tar be ignoring /proc with --one-file-system?
Message-ID:  <c56032f670c5a8458f4ebb02dd75be4d@mediamonks.net>
In-Reply-To: <6de19086dd1301d00679b0e51ca10a5b.squirrel@www.magehandbook.com>

next in thread | previous in thread | raw e-mail | index | archive | help
> -----Original Message-----
> From: owner-freebsd-questions@freebsd.org [mailto:owner-freebsd-
> questions@freebsd.org] On Behalf Of Daniel Staal
> Sent: Friday, November 18, 2011 18:00
> To: freebsd-questions@freebsd.org
> Subject: Re: Shouldn't GNU tar be ignoring /proc with --one-file-
> system?
> 
> 
> On Fri, November 18, 2011 10:34 am, Kirk Strauser wrote:
> > I use Amanda to make nightly backups of a bunch of servers using GNU
> tar.
> > However, gtar doesn't seem to respect its --one-file-system flag with
> > /proc. Amanda runs a variation of this command:
> >
> >     # /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?
> 
> Just a guess, really but:
> 
> /proc is a file on /.  /proc/* are files on /proc.  The former is still
> on
> the root filesystem (if only as a directory stub to be used as a
> mountpoint), so reading it isn't leaving that filesystem.  Reading
> anything *in* it would be.
> 
> Just a thought.
> 

However, the file /proc on fs / should not be changing since a filesystem /=
proc is mounted over it. The message "./proc: file changed as we read it" i=
ndicates whatever /proc it is trying to read did change...

-- 
Regards,
T. Koeman, MTh/BSc/BPsy; Technical Monk

MediaMonks B.V. (www.mediamonks.com)
Please quote relevant replies in correspondence.






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