All of lore.kernel.org
 help / color / mirror / Atom feed
* lseek SEEK_END fails on a Toshiba 6007MB disk.
@ 2002-02-20 23:40 Kallol Biswas
  2002-02-21  0:01 ` Alan Cox
  2002-02-21  0:23 ` Andreas Dilger
  0 siblings, 2 replies; 3+ messages in thread
From: Kallol Biswas @ 2002-02-20 23:40 UTC (permalink / raw)
  To: linux-kernel

#include <stdio.h>
#include <fcntl.h>
#include <sys/types.h>
#include <unistd.h>



main(int argc, char *argv[])
{
int fd;
int offset;
int loffset;

fd = open("/dev/hda", O_RDONLY);

if (fd < 0) {
        perror("open");
        return;
}

offset = lseek(fd, 0, SEEK_END);

if (offset < 0) {
        perror("lseek");
}

}


# ./seek
lseek: Value too large for defined data type

The system runs 2.4.17 kernel.

A fix may be found reading the source code, but if someone already knows

the solution, please reply  to me.

Kallol


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2002-02-21  0:23 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-02-20 23:40 lseek SEEK_END fails on a Toshiba 6007MB disk Kallol Biswas
2002-02-21  0:01 ` Alan Cox
2002-02-21  0:23 ` Andreas Dilger

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.