[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: PedUnit API commit
From: |
Michael Reed |
Subject: |
Re: PedUnit API commit |
Date: |
Fri, 01 Jul 2005 17:39:56 -0500 |
User-agent: |
Mozilla Thunderbird 1.0 (X11/20041207) |
address@hidden wrote:
> Hello Michael,
>
> thank you for helping with testing.
>
>>Error: Can't have a partition outside the disk!
>>
>>Is this an intended change in the UI or an unexpected side effect?
> The latter. Fixed.
I picked up the new unit.c.
Your fix is an improvement. I tried a length of -11 in creating the
partition and it worked. I tried -1, again, and it still fails.
Previously, -11 would fail also.
Using /dev/sdx
(parted) unit s
(parted) print
Disk geometry for /dev/sdx: 0s - 71687371s
Disk label type: dvh
<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<< DVH, if it matters
Number Start End Size Type File system Name
Flags
9 0s 16064s 16065s extended
(parted) mkpart
Partition type? primary/logical? p
File system type? [ext2]?
Start? 16100
End? -1
Error: The location -1 is outside of the device /dev/sdx.
(parted)
(parted)
(parted) mkpart
Partition type? primary/logical? p
File system type? [ext2]?
Start? 16100
End? -11
(parted) print
Disk geometry for /dev/sdx: 0s - 71687371s
Disk label type: dvh
Number Start End Size Type File system Name
Flags
9 0s 16064s 16065s extended
1 16099s 71687363s 71671265s primary
In the course of this testing I noticed that prefixing '=' to a sector number
results in an invalid number. Is this another UI change? :) If so, how do
I create a partition at exactly the start/end that I want?
(parted) rm 1
(parted)
(parted) mkpart
Partition type? primary/logical? p
File system type? [ext2]?
Start? =16100
Error: Invalid number.
I'm out of here now. Have a good weekend.
Mike
- Re: PedUnit API commit, Michael Reed, 2005/07/01
- Re: PedUnit API commit, leslie . polzer, 2005/07/01
- Re: PedUnit API commit,
Michael Reed <=
- Re: PedUnit API commit, leslie . polzer, 2005/07/02
- Re: PedUnit API commit, Michael Reed, 2005/07/06
- Re: PedUnit API commit, leslie . polzer, 2005/07/06
- Re: PedUnit API commit, Andrew Clausen, 2005/07/06
- Re: partition resizing (was: Re: PedUnit API commit), Szakacsits Szabolcs, 2005/07/07
- Re: partition resizing (was: Re: PedUnit API commit), Andrew Clausen, 2005/07/08
- Re: partition resizing (was: Re: PedUnit API commit), Szakacsits Szabolcs, 2005/07/08
- Re: partition resizing (was: Re: PedUnit API commit), Szakacsits Szabolcs, 2005/07/08
- Re: PedUnit API commit and partition resizing (blending "Re: PedUnit API commit" and "Re: partition resizing"), Michael Reed, 2005/07/08