[Top][All Lists]

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

Re: [Bulk] Re: [bug-fdisk] fdisk and partition size

From: Christian
Subject: Re: [Bulk] Re: [bug-fdisk] fdisk and partition size
Date: Thu, 16 Oct 2008 19:01:24 +0200
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.5) Gecko/20041221

Leslie P. Polzer wrote:

there already option to make fdisk compatible with Linux fdisk and to make
full featured mode, ok, what you think about make this feature avaiable
in full feature mode?

Yes, let's make it so. :)


Bug-fdisk mailing list

There is small problem in this task and I hope to explain successfully... :)

To get `start' and `end' partition position, fdisk use the function `get_sector' wich is defined in common.c. In this file there isn't a variable to say if user have run fdisk with -G option to enable GNU extension. We can't use `extern int fdisk_compatibility_mode' in common.c because this file is used for both fdisk and cfdisk and when
link with cfdisk `ld' can't find global symbol `fdisk_compatibility_mode'.
For me we have two possibilityes: make new function or make a global variable.

- We can make a global in common.c for use from fdisk.c to set extended mode; - We can make a global in both fdisk.c and cfdisk.c and use this from common.c; - We can make new function similar to get_sector but with an extra option wich can be used
 to indicate if compatibility mode should be used;

What you think about?

reply via email to

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