bsdtar POLA change in 10.0?

Mark Felder feld at FreeBSD.org
Thu Mar 6 13:38:10 UTC 2014



On Thu, Mar 6, 2014, at 7:25, Ronald Klop wrote:
> On Thu, 06 Mar 2014 14:15:04 +0100, Mark Felder <feld at freebsd.org> wrote:
> 
> >
> >
> > On Thu, Mar 6, 2014, at 7:12, Ronald Klop wrote:
> >> On Thu, 06 Mar 2014 14:00:22 +0100, Mark Felder <feld at freebsd.org>  
> >> wrote:
> >>
> >> >
> >> >
> >> > On Wed, Mar 5, 2014, at 6:50, Marat N.Afanasyev wrote:
> >> >> I wonder why
> >> >>
> >> >> bsdtar --one-file-system
> >> >>
> >> >> suddenly started to skip archiving of mount-points? And no mention of
> >> >> such behaviour change either in UPDATING or errata :(
> >> >>
> >> >
> >> >      --one-file-system
> >> >              (c, r, and u modes) Do not cross mount points.
> >> >
> >> > Isn't that what it's supposed to do? Skip any mounted filesystems? Was
> >> > it broken before? Or do I simply not understand the behavior you're
> >> > seeing.
> >>
> >> The question is if the mountpoint (directory in the 'current'  
> >> filesystem)
> >> itself should be tarred. After untarring you can than make the same
> >> mounts
> >> again, for example.
> >>
> >
> > So you're saying that if I have a disk mounted at /mnt/disk and my tar
> > with --one-file-system includes /mnt, the empty directory /mnt/disk will
> > not be in the tarball?
> 
> That is how I read the question of Marat N.Afanasyev.
> 

I have been able to reproduce this behavior. I wonder if this is a
regression in the libarchive update.

https://github.com/libarchive/libarchive

CC'ing mm@ as he brought in the last update


More information about the freebsd-stable mailing list