[MPlayer-dev-eng] Fwd: [PATCH] seeking in large files on SMB shares

Ivan Kalvachev ivan at cacad.com
Sat Oct 16 17:56:29 CEST 2004


On Sun, 12 Sep 2004 19:28:56 -0500
Joey Parrish <joey at nicewarrior.org> wrote:

> On Sat, Sep 11, 2004 at 11:42:25PM +0200, Reimar D_ffinger wrote:
> > I was asked to forward this mail, so I do that now, although I think the 
> > patch itself is not correct.
> > What I dislike about this patch is that it misuses fstat to try to 
> > detect if the file is seekable. In addition IMHO a file where 
> > lseek(f,0,SEEK_END) doesn't work effectively isn't seekable.
> > Does anyone know why it doesn't work and provide a better patch?
> 
> I agree, this is a bad fix.  But I often store my large files on another
> machine and watch over samba.
> 
> IIUC, samba isn't able to declare a file to be >2GB.  My large files all
> ls -sh as some ridiculous number on the order of a few terabytes.
> 
> I don't have a better fix...
> 
> --Joey

What happend with this patch?
I don't see why it is so bad fix,
after all it checks for file and set stream type to file.

Wish You Best
   Ivan Kalvachev
  iive




More information about the MPlayer-dev-eng mailing list