gmediaserver-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[gmediaserver-devel] File size limit


From: Jan Ceuleers
Subject: [gmediaserver-devel] File size limit
Date: Tue, 03 Jul 2007 20:20:27 +0200
User-agent: Thunderbird 2.0.0.4 (Windows/20070604)

All,

I'm running into the dreaded 2GB file size limit that is often mentioned on the interweb, but rarely attributed to a specific cause.

What I'm trying to do is serve a large .avi file. This file is discarded in scan_entry() because it thinks that the stat() call there returns a negative value (and the error message is " cannot stat: Value too large for defined data type").

However, if I strace the process, the stat64() call actually returns zero:

stat64("/home/storage/Test/Eragon-001.avi", {st_mode=S_IFREG|0644, st_size=2200526492, ...}) = 0 open("/usr/share/locale/en_US.UTF-8/LC_MESSAGES/libc.mo", O_RDONLY) = -1 ENOENT(No such file or directory) open("/usr/share/locale/en_US.utf8/LC_MESSAGES/libc.mo", O_RDONLY) = -1 ENOENT (No such file or directory) open("/usr/share/locale/en_US/LC_MESSAGES/libc.mo", O_RDONLY) = -1 ENOENT (No such file or directory) open("/usr/share/locale/en.UTF-8/LC_MESSAGES/libc.mo", O_RDONLY) = -1 ENOENT (No such file or directory) open("/usr/share/locale/en.utf8/LC_MESSAGES/libc.mo", O_RDONLY) = -1 ENOENT (No such file or directory) open("/usr/share/locale/en/LC_MESSAGES/libc.mo", O_RDONLY) = -1 ENOENT (No such file or directory) open("/usr/share/locale-langpack/en_US.UTF-8/LC_MESSAGES/libc.mo", O_RDONLY) = -1 ENOENT (No such file or directory) open("/usr/share/locale-langpack/en_US.utf8/LC_MESSAGES/libc.mo", O_RDONLY) = -1 ENOENT (No such file or directory) open("/usr/share/locale-langpack/en_US/LC_MESSAGES/libc.mo", O_RDONLY) = -1 ENOENT (No such file or directory) open("/usr/share/locale-langpack/en.UTF-8/LC_MESSAGES/libc.mo", O_RDONLY) = -1 ENOENT (No such file or directory) open("/usr/share/locale-langpack/en.utf8/LC_MESSAGES/libc.mo", O_RDONLY) = -1 ENOENT (No such file or directory) open("/usr/share/locale-langpack/en/LC_MESSAGES/libc.mo", O_RDONLY) = -1 ENOENT (No such file or directory) write(2, "gmediaserver: /home/storage/Test"..., 100gmediaserver: /home/storage/Test/Eragon-001.avi: cannot stat: Value too large for defined data type
) = 100

So, is this a glibc problem?

Some system info:

Mine is a modified gmediaserver based on 0.11.0, but I think that the current stock release would exhibit the same problem.

OS: Ubuntu server 7.04
address@hidden:~# uname -a
Linux via 2.6.20-16-generic #2 SMP Thu Jun 7 20:19:32 UTC 2007 i686 GNU/Linux
address@hidden:~# gcc -v
Using built-in specs.
Target: i486-linux-gnu
Configured with: ../src/configure -v --enable-languages=c,c++,fortran,objc,obj-c++,treelang --prefix=/usr --enable-shared --with-system-zlib --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --enable-nls --program-suffix=-4.1 --enable-__cxa_atexit --enable-clocale=gnu --enable-libstdcxx-debug --enable-mpfr --enable-checking=release i486-linux-gnu
Thread model: posix
gcc version 4.1.2 (Ubuntu 4.1.2-0ubuntu4)

The file system is ext3 on a software RAID5.
address@hidden:~# df /home/storage/Test/
Filesystem           1K-blocks      Used Available Use% Mounted on
/dev/md2             920098100  70945548 802414264   9% /raid5

Any thoughts?

Thanks, Jan




reply via email to

[Prev in Thread] Current Thread [Next in Thread]