bsdtar POLA change in 10.0?

Jan Mikkelsen janm at transactionware.com
Fri Dec 12 08:05:02 UTC 2014


> On 11 Dec 2014, at 16:34, Jan Mikkelsen <janm at transactionware.com> wrote:
> 
> 
>> On 7 Mar 2014, at 20:42, Ronald Klop <ronald-lists at klop.ws> wrote:
>> 
>> On Thu, 06 Mar 2014 19:43:28 +0100, Warner Losh <imp at bsdimp.com> wrote:
>> 
>>> 
>>> On Mar 6, 2014, at 6:00 AM, 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.
>>> 
>>> Before it would archive the directory where the other filesystem was mounted, but nothing else.
>>> 
>>> Now it doesn’t archive that directory.
>>> 
>>> I believe this is a bug, since that directory (but nothing in it or under it) still belongs to this filesystem...
>>> 
>>> Warner
>> 
>> I cc'ed libarchive-discuss at googlegroups.com for more exposure to the issue.
>> 
> 
> Reviving an old discussion — this just caused my build process for 10.1 to create root filesystems without /dev, which is obviously constraining.
> 
> Using the --one-file-system option should should preserve mount point directories. Will this be fixed?

In case anyone is interested, this has been fixed upstream:

https://github.com/libarchive/libarchive/commit/fa9e61aa1531153b7748d4e0d8dda8f52a0893d7

Jan.




More information about the freebsd-stable mailing list