Skip to contentSkip to conversation

4GB file size limit on SMBFS

DISCUSSION Petr Titera 3 participants 3 messages Dec 12, 2001

lore
Share & tools
lore
#0 lore raw

Hello,

I tested patches from Urban Wildmark to give SMBFS LFS support and found,
that limit on file size has only moved from 2GB to 4GB. Is this expected behaviour?

Petr Titera
[email protected]

#1 lore raw
Quoted 5 lines · Petr Titera

Hello,

I tested patches from Urban Wildmark to give SMBFS LFS support and
found, that limit on file size has only moved from 2GB to 4GB. Is this expected behaviour?

It is a possible behaviour.
There are no public official documents about how M$ has extended the SMB protocol in various systems. Apparently there are discrepancies even within M$ about how to do those extensions, thus newer M$ systems have more and more tests and work-arounds to handle various extensions.

Quoted 2 lines

Petr Titera
[email protected]

/Matti Aarnio

#2 lore raw
In reply to Petr Titera
Quoted 5 lines · Petr Titera

Hello,

I tested patches from Urban Wildmark to give SMBFS LFS support and found,
that limit on file size has only moved from 2GB to 4GB. Is this expected behaviour?

I have never tested it vs a NT server with more than 3G of disc, but it's a 64bit offset so it should be a bit more ... I'll try and dig up a machine with more space to test with.

It is possible that the readX/writeX SMB is used incorrectly and that while it does make the low 32 bits be unsigned the top 32 bits are set to 0.

But I have tested it with >4G files on samba servers and that seemed to work. You did patch smbmount too?

/Urban