bug-parted
[Top][All Lists]
Advanced

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

Re: 1.4.18 problem with counting?


From: Andrew Clausen
Subject: Re: 1.4.18 problem with counting?
Date: Wed, 3 Oct 2001 07:35:58 +1000
User-agent: Mutt/1.2.5i

On Tue, Oct 02, 2001 at 01:28:25PM +0200, Rafa³ Kleger-Rudomin wrote:
> Any hints how to track down the problem?
> I can strace or gdb the program, but please suggest me what 
> should I search.

There is a long story.  Have a look at ped_device_seek() in
libparted/device.c.  Notice how there are 2 different versions of the
syscall, etc., and glibc hides this fact in newer versions (it uses macros
to select the right version, depending on whether you
#define _FILE_OFFSET_BITS.  This is done by adding -D_FILE_OFFSET_BITS=64
to CFLAGS... this is decided at ./configure time)

So, all seeks go through ped_device_seek().  I would try running device.c
through the pre-processor on Mandrake and PLD, and look for differences...

Thanks!
Andrew




reply via email to

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