Re: 4GB file size limit on SMBFS

Urban Widmark (urban@teststation.com)
Sat, 15 Dec 2001 22:02:00 +0100 (CET)


On Fri, 14 Dec 2001, Petr Titera wrote:

> simple
> dd if=/dev/zero of=test bs=1024k count=8000
>
> gives 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

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/