[prev in list] [next in list] [prev in thread] [next in thread] 

List:       busybox
Subject:    Re: fdisk fails to compile
From:       Denys Vlasenko <vda.linux () googlemail ! com>
Date:       2008-06-29 5:12:38
Message-ID: 200806290712.38631.vda.linux () googlemail ! com
[Download RAW message or body]

On Sunday 29 June 2008 06:44, Poly-p man wrote:
> On Sun, Jun 29, 2008 at 06:38:11AM +0200, Denys Vlasenko wrote:
> > 
> > Liar. :) You have this in your .config:
> > 
> > CONFIG_FDISK_SUPPORT_LARGE_DISKS=y
> > --
> > vda
> wow... you mean I've been missing that option for 4 months straight???

Yup. You needed to just look closer at that same code fragment.

static void
seek_sector(ullong secno)
{
        secno *= sector_size;
#if ENABLE_FDISK_SUPPORT_LARGE_DISKS <============ THIS!
        if (lseek64(dev_fd, (off64_t)secno, SEEK_SET) == (off64_t) -1)
                fdisk_fatal(unable_to_seek);
#else
        if (secno > MAXINT(off_t)
         || lseek(dev_fd, (off_t)secno, SEEK_SET) == (off_t) -1
        ) {
                fdisk_fatal(unable_to_seek);
        }
#endif
}
_______________________________________________
busybox mailing list
busybox@busybox.net
http://busybox.net/cgi-bin/mailman/listinfo/busybox
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic