This is the mail archive of the
cygwin
mailing list for the Cygwin project.
Re: happily messing up with raw devices (aka: lseek problems)
- From: Corinna Vinschen <corinna-cygwin at cygwin dot com>
- To: "[ML] CygWin " <cygwin at cygwin dot com>
- Date: Wed, 7 Sep 2005 20:04:25 +0200
- Subject: Re: happily messing up with raw devices (aka: lseek problems)
- References: <431F266D.3050604@lapo.it> <20050907174848.GR5555@calimero.vinschen.de>
- Reply-to: cygwin at cygwin dot com
On Sep 7 19:48, Corinna Vinschen wrote:
> On Sep 7 19:42, Lapo Luchini wrote:
> > Is is normal that Cygwin's lseek doesn't work on /dev/sda?
> > What should I do?
> > My own personal work-around would be to read all those 44 sectors (and
> > discarding them), but I don't like that very much, is there some
> > better/cleaner alternative?
> >
> > If anyone wants to see the source code, it's all in my Monotone
> > server, so either
>
> I really thought you know better.
>
> - "It doesn't work" is not helpful. What's the error you get?
> What happens?
>
> - What about a simple testcase(tm) to demonstrate the problem?
Btw., I just tested with my own small testcase(tm) and with od(1)
and I don't see anything wrong. Is it possible that you are stumbling
over the fact that the second parameter to lseek is an off_t type
and off_t is 64 bit (long long) on Cygwin?
Corinna
--
Corinna Vinschen Please, send mails regarding Cygwin to
Cygwin Project Co-Leader mailto:cygwin@cygwin.com
Red Hat, Inc.
--
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Problem reports: http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ: http://cygwin.com/faq/