[Top][All Lists]

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

Re: end of the drive

From: Andrew Clausen
Subject: Re: end of the drive
Date: Sat, 22 Jan 2005 18:07:22 +1100
User-agent: Mutt/1.3.28i

On Fri, Jan 21, 2005 at 11:44:26PM -0600, Andrew Gaffney wrote:
> What does libparted consider the end of the drive? Is it the physical last 
> sector of the drive or the last sector implied by the geometry that parted 
> picks for the drive (which sometimes comes out to less sectors than the 
> physical amount)?

The former.

> I'm running into a problem where I get "can't create a partition past the 
> physical end of the drive" when I delete a partition that goes to the last 
> physical sector and try to recreate it. It is very possible that my program 
> is passing a sector number that is too high for the end value since it is 
> calculated from the position of a GTK+ slider widget. I haven't gotten 
> around to debugging that yet, because I've had other issues to deal with.

Note that "end = start + length - 1".


reply via email to

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