4GB file size limit on SMBFS
A message that is not in the archive (sent off-list or not yet received): [email protected]
Quoted 6 lines · Petr Titera
simple
dd if=/dev/zero of=test bs=1024k count=8000gives 4GB file on server without any error. I cannot what would whappen if I use real file as my test machine has only 2GB of disk space :( So portions of output file can be rewriten.
The first patch was incomplete. It contained a calculation bug on the smbfs side limiting the possible offset to 32bits unsigned.
New patch vs 2.4.16 (and others) available here:
http://www.hojdpunkten.ac.se/054/samba/lfs.html
The annoying thing is that someone pointed that bug out to me some time ago in an earlier version. I made the change and verified it then, but now I used an unfixed patch as base for the 2.4.15-pre version ... grr.
I have successfully tested this with a winXP machine someone had. Not the 'dd test' but truncating it to 4.5G (less network transfer time), writing something above the 4G mark and then checking that it doesn't end up below. Also works with samba.
(But not with win2k and FAT, which all win2k users around here seems to be
using, that gives ENOSPC after 4G. Should perhaps be EFBIG ... or not)
Let me know if this works better for you.
/Urban
On Sat, Dec 15, 2001 at 10:02:00PM +0100, you [Urban Widmark] claimed:
Quoted 7 lines · Petr Titera
The first patch was incomplete. It contained a calculation bug on the smbfs side limiting the possible offset to 32bits unsigned.
New patch vs 2.4.16 (and others) available here:
http://www.hojdpunkten.ac.se/054/samba/lfs.html
BTW: the fsx test Dave Jones just pointed out pretty quickly fails on smbfs on 2.4.8ac2 (mounting a share from NT4SP6a). I don't have anything never to play with just now (1), but if you can't immediately reproduce it, I can compile a newer kernel for the left over box and give it a longer whirl.
-- v --
(1) I have a 2.4.16/ia64 on the corner, but fsx fails on IA64 with any fs ("mmap: Invalid argument"). Smbfs seems to work on ia64 otherwise...
Quoted 1 line · Ville Herva
BTW: the fsx test Dave Jones just pointed out pretty quickly fails on smbfs
Yes, I saw that too on a more recent (somewhat modified) kernel. I'm not very surprised considering it has found flaws in fs' that have a lot more support.
I will be looking into it, others are welcome to join in the fun :)
/Urban