Subject: Re: Lossage
To: Tsubai Masanari <tsubai@iri.co.jp>
From: Bill Studenmund <wrstuden@nas.nasa.gov>
List: port-macppc
Date: 06/08/1999 16:27:44
On Wed, 9 Jun 1999, Tsubai Masanari wrote:
> >Weird. For me, it won't read anything. It always gets a media error.
>
> Did You try to use /dev/rwd0c? Currently it works for regular file only.
It's working on /dev/wd0c for me. :-)
> work-around patch:
>
> *** file_media.c~ Fri Jun 4 03:16:17 1999
> --- file_media.c Wed Jun 9 08:08:45 1999
> ***************
> *** 221,227 ****
> off = llseek(fd, (loff_t)0, 2); /* seek to end of media */
> #if !defined(__linux__) && !defined(__unix__)
> if (off <= 0) {
> ! off = 1; /* XXX not right? */
> }
> #endif
> //printf("file size = %Ld\n", off);
> --- 221,227 ----
> off = llseek(fd, (loff_t)0, 2); /* seek to end of media */
> #if !defined(__linux__) && !defined(__unix__)
> if (off <= 0) {
> ! off = LOFF_MAX; /* XXX not right? */
> }
> #endif
> //printf("file size = %Ld\n", off);
>
That got it working!
Take care,
Bill