bug-parted
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: PedUnit API commit


From: Andrew Clausen
Subject: Re: PedUnit API commit
Date: Thu, 7 Jul 2005 08:22:15 +1000
User-agent: Mutt/1.5.6+20040907i

On Wed, Jul 06, 2005 at 08:59:23PM +0200, address@hidden wrote:
> > (parted) unit B
> > (parted) mkpart
> > Partition type?  [primary]?
> > File system type?  [ext2]?
> > Start? 0
> > End? -1
> > Error: The location -1 is outside of the device /dev/sdx.
> Does this only happen with gpt labels?

Well, -1B is very strange.  How should we deal with byte units that
aren't sector aligned?

> > Using units GB, mkpart works but wastes quite a bit
> > of space at the end of the disk.  Is this really the way you
> > want it to work, leaving almost a GB of unused space at the end of
> > the disk?  I'd consider changing the semantics of "-1"
> > to be "last available sector relative to the starting sector
> > regardless of unit in effect".  This means that if you're trying
> > to fill a hole in the disk, all you have to do is get the starting
> > location correct and -1 will find the end.  Anyway, something to think
> > about.
> Special semantics for ``-1''?
> This introduces an inconsistency. You can always use ``-1s''.

We could just make _grow_over_small_freespace() a more generous
_grow_over_freespace(), constrained by our new "range" parameter.

> > I'd still like to see resize of a partition with no filesystem.
> > (Patch previously submitted to maintainer(s).)

I'm not excited by the idea.  Would letting the "check" command set the
partition size to coincide with the detected filesystem's size suffice?

Cheers,
Andrew





reply via email to

[Prev in Thread] Current Thread [Next in Thread]