lxc-clone of busybox lxc 440M instead 1.7M

Bug #1085057 reported by Rene K. Mueller
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
lxc (Ubuntu)
Fix Released
Medium
Unassigned

Bug Description

I am testing various lxc templates from Ubuntu 12.10, and noticed this:

% lxc-create -t busybox -n bb00
% lxc-clone -o bb00 -n bb01

% du -sh /var/lib/lxc/bb??
1.7M /var/lib/lxc/bb00
440M /var/lib/lxc/bb01

The problem is, that you copy /bin from bb00, which is ONE busybox with 281 hardlinks, once cloned to bb01, you copied all hardlinked busybox now individual files, blowing up from 1.7M to 440M.

I think it relates that you use rsync in lxc-clone, which disregards hardlinks.

Revision history for this message
Serge Hallyn (serge-hallyn) wrote :

Thanks for submitting this bug. We'll add -H to the rsync flags in lxc-clone.

Changed in lxc (Ubuntu):
importance: Undecided → Medium
status: New → Triaged
Revision history for this message
Serge Hallyn (serge-hallyn) wrote :

The fix is pushed to the github staging tree. It will be rolled into raring when 0.9.0 is released and merged.

Changed in lxc (Ubuntu):
status: Triaged → Fix Committed
Changed in lxc (Ubuntu):
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.