On Wed, Nov 09, 2011 at 07:58:44PM +0100, Goffredo Baroncelli wrote:
> On Wednesday, 09 November, 2011 08:36:24 Chris Mason wrote:
> > The only choice for an online operation is to make a new partition in
> > front of the old one and just add that as a second disk in btrfs.
> > 
> > The slow method of shifting the bytes down is probably a better long
> > term choice.
> > 
> > -chris
> 
> Hi Chris,
> 
> does the chunk tree be able to map the sectors "before" ? If so we should 
> only 
> "shift down" the map logical->physical in the chunk tree/device tree.
> 
> The only exception should be the superblock which has to be moved.
> 
> At the mount time we should pass a parameter which set how the data should be 
> moved backward. Then the kernel remap the chunk tree/device tree.
> 
> I don't know if the gains is greater than the work, but from a theoretical 
> point of view, it should be doable..

Agreed, if we wanted to sit down and write a tool, it wouldn't be that
complex.  The only tricky part is maintaining alignment and position of
the super blocks.

-chris
--
To unsubscribe from this list: send the line "unsubscribe linux-btrfs" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to