Re: cfdisk: Cannot seek on disk drive
On Sat, 22 Mar 1997, Michael Iles wrote:
[spip] referring to cfdisk w/ disks > 2G
>
> FATAL ERROR: Cannot seek on disk drive
>
After a suggestion on the BUG report system i have put the cast (ext2_loff_t)
at two places in the source file. It seems to work now. Specialists please
verify that this does not break anything else.
diff cfdisk.c cfdisk.orig
396c396
< if (ext2_llseek(fd, (ext2_loff_t)sect_num*SECTOR_SIZE, SEEK_SET) < 0)
---
> if (ext2_llseek(fd, sect_num*SECTOR_SIZE, SEEK_SET) < 0)
404c404
< if (ext2_llseek(fd, (ext2_loff_t)sect_num*SECTOR_SIZE, SEEK_SET) < 0)
---
> if (ext2_llseek(fd, sect_num*SECTOR_SIZE, SEEK_SET) < 0)
P.S. There is an attempt to correct this in the debian package util-linux, but it is
unfortunately applied uneffectively:
NIL: if (ext2_llseek(fd, (ext2_loff_t)(sect_num*SECTOR_SIZE), SEEK_SET) < 0)
Stelios Parnassidis <stel@ikaria.camelot.de>
Kapuzinerstr. 8, 80337 Muenchen, Germany, Tel. +49-089-7211505
Reply to: