Re: lseek("/dev/hda1", 0, SEEK_END) returns 0

Alan Cox (alan@lxorguk.ukuu.org.uk)
Mon, 18 Jan 1999 19:54:13 +0000 (GMT)


> I would like to ask you if the lseek with SEEK_END and offset of 0
> should return 0
> when used on raw devices like hard disk or cdrom.

Its not defined for them

> By example Solaris 2.5 returns the correct length of partiton but Linux
> 2.0 returns 0.

2.5 doesnt - try it on an 8Gig partition...

Alan

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/