Collective zc.buildout recipes

[collective.recipe.filestorage] Suggesting that .layout file containing "bushy" is created in blob directory

Reported by kleist on 2010-09-29
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
collective.buildout
Undecided
Unassigned

Bug Description

Background:

If ZODB finds a blob directory with contents, but without a ".layout" file, the deprecated "lawn" layout is selected and a ".layout" file containing "lawn" is created:

http://zope3.pov.lt/trac/browser/ZODB/trunk/src/ZODB/blob.py#L500

A common error when copying blobs during Plone version migration is to use "cp -R /path/to/old/blob/dir/* /path/to/new/blob/dir", which does not copy "hidden" files like ".layout".

These two facts combined, and the blobs won't be available unless one edits the ".layout" file to contain "bushy".

So: Why don't let this recipe create a ".layout" file containing "bushy" in each created blob dir?

P.S.

The experienced sysadm would probably step into the old blob dir, and from there do:

    tar cvf - . | (cd /path/to/new/blob/dir; tar xvf -)

or even:

    rsync -a . /path/to/new/blob/dir

To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers