Shouldn't GNU tar be ignoring /proc with --one-file-system?

Michael Sierchio kudzu at tenebras.com
Fri Nov 18 17:18:33 UTC 2011


On Fri, Nov 18, 2011 at 8:59 AM, Daniel Staal <DStaal at usa.net> wrote:

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

And a good one.  Yes, that's it.  It isn't crossing the mount point,
but the mount point is part of the root filesystem.

If you really want it to ignore the mount point itself, set the nodump
flag and tell gtar to honor it:

> chflags nodump /proc
> gtar <your options> --nodump


More information about the freebsd-questions mailing list