Re: smbfs 4G max file size

From: Benjamin Close <Benjamin.Close_at_unisa.edu.au>
Date: Mon, 22 Dec 2003 10:17:10 +1030
Tim Robbins wrote:

>On Fri, Dec 19, 2003 at 05:03:08PM +1030, Benjamin Close wrote:
>
>  
>
>>Hi All,
>>   Whilst tinkering with some backups the other day I noticed that 
>>smbfs capped out at 4G.
>>Does the protocol restrict it to this limit or is there something else?
>>    
>>
>
>What exactly doesn't work for files >4G? smbfs is supposed to support
>files up to 2^64 bytes in size, but the code may be buggy or incomplete.
>
>
>Tim
>  
>
Quite a bit. I can't create a file bigger than 4G, cat to a file bigger 
than 4G or do anything to make it bigger than 4G.
ie:
cis209883# cd /mnt/smbfs
cis209883# /home/benjsc/bin/createfile filename 4294967296
cis209883# ls -l filename
-rwxr-xr-x  1 root  wheel  4294967296 Dec 22 10:07 filename
cis209883# echo "This string will not be appended" >> filename
cis209883# ls -l filename
-rwxr-xr-x  1 root  wheel  4294967296 Dec 22 10:07 filename

This seems like a nasty bug as well
cis209883# /home/benjsc/bin/createfile filename2 5368709120
cis209883# ls -l filename2
-rwxr-xr-x  1 root  wheel  1073741824 Dec 22 10:08 filename2
cis209883# ls -lh filename2
-rwxr-xr-x  1 root  wheel          1G Dec 22 10:08 filename2

Yet on a ufs partition:
cis209883# cd /mnt/raid
cis209883# /home/benjsc/bin/createfile filename2 5368709120
cis209883# ls -l filename2
-rw-r--r--  1 root  wheel  5368709120 Dec 22 10:10 filename2
cis209883# ls -lh filename2
-rw-r--r--  1 root  wheel          5G Dec 22 10:10 filename2

Cheers,
    Benjamin

-- 
3D Research Associate / System Administrator     +61 8 8302 3669
School of Computer and Information Science       Room D1-07, ML Campus
University of South Australia                    Mawson Lakes Blvd.
Benjamin.Close_at_cs.unisa.edu.au                   South Australia, 5095
F00D C83D 5F7E 5561 DF91  B74D E602 CAA3 4842 B5B4
Received on Sun Dec 21 2003 - 14:47:44 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:37:35 UTC