Re: resizing auto-allocated labels

2011-05-22 Thread Kenneth R Westerback
On Sun, May 22, 2011 at 03:35:33PM +0200, Otto Moerbeek wrote: > On Sun, May 22, 2011 at 03:02:09PM +0200, Otto Moerbeek wrote: > > > On Sun, May 22, 2011 at 02:59:32PM +0200, Mark Kettenis wrote: > > > > > > Date: Sun, 22 May 2011 13:41:56 +0100 > > > > From: Stuart Henderson > > > > > > > > n

Re: resizing auto-allocated labels

2011-05-22 Thread Otto Moerbeek
On Sun, May 22, 2011 at 03:02:09PM +0200, Otto Moerbeek wrote: > On Sun, May 22, 2011 at 02:59:32PM +0200, Mark Kettenis wrote: > > > > Date: Sun, 22 May 2011 13:41:56 +0100 > > > From: Stuart Henderson > > > > > > nice, I like this :-) OK sthen@. > > > > > > > (One thing that's needed is a s

Re: resizing auto-allocated labels

2011-05-22 Thread Otto Moerbeek
On Sun, May 22, 2011 at 02:59:32PM +0200, Mark Kettenis wrote: > > Date: Sun, 22 May 2011 13:41:56 +0100 > > From: Stuart Henderson > > > > nice, I like this :-) OK sthen@. > > > > > (One thing that's needed is a smarter rounding to 4k boundaries, if > > > you work in units of M or G this work

Re: resizing auto-allocated labels

2011-05-22 Thread Mark Kettenis
> Date: Sun, 22 May 2011 13:41:56 +0100 > From: Stuart Henderson > > nice, I like this :-) OK sthen@. > > > (One thing that's needed is a smarter rounding to 4k boundaries, if > > you work in units of M or G this works all out by itself, but above > > you can see that the partitions after /var

Re: resizing auto-allocated labels

2011-05-22 Thread Stuart Henderson
On 2011/05/21 22:01, Otto Moerbeek wrote: > it is already possible to resize auto alloctaed labels using the R > command in disklabel. But a problem quite a few persons mentioned is > that the R command only takes a relative size currently. This changes > that to allow for both absolute and relativ

Re: resizing auto-allocated labels

2011-05-22 Thread Kenneth R Westerback
On Sun, May 22, 2011 at 07:13:15AM +0200, Otto Moerbeek wrote: > On Sat, May 21, 2011 at 09:57:54PM -0400, Kenneth R Westerback wrote: > > > I like this a lot. Can we use stronum() and avoid the manual > > operator processing? > > Don't think so. Fractions like 0.5g would break. > > -Otto

Re: resizing auto-allocated labels

2011-05-21 Thread Otto Moerbeek
On Sat, May 21, 2011 at 09:57:54PM -0400, Kenneth R Westerback wrote: > I like this a lot. Can we use stronum() and avoid the manual > operator processing? Don't think so. Fractions like 0.5g would break. -Otto > > Ken > > On Sat, May 21, 2011 at 10:01:01PM +0200, Otto Moerbeek w

Re: resizing auto-allocated labels

2011-05-21 Thread Kenneth R Westerback
I like this a lot. Can we use stronum() and avoid the manual operator processing? Ken On Sat, May 21, 2011 at 10:01:01PM +0200, Otto Moerbeek wrote: > Hi, > > it is already possible to resize auto alloctaed labels using the R > command in disklabel. But a problem quite a few persons mention

resizing auto-allocated labels

2011-05-21 Thread Otto Moerbeek
Hi, it is already possible to resize auto alloctaed labels using the R command in disklabel. But a problem quite a few persons mentioned is that the R command only takes a relative size currently. This changes that to allow for both absolute and relative size changes. An example session to get t