Re: Large file size issues with Samba client.

2002-06-21 Thread Brett Simpson

After patching Samba 2.2.3 and the 2.4.18 kernel with your patchs and I can now access 
files  2GB without issue. Just for kicks I downloaded 2.5.24 and that worked too 
(without patching the kernel). Guess smbfs lfs is included. For now though I'm running 
2.4.18 just to be safe. Thanks.

Brett

 Urban Widmark [EMAIL PROTECTED] 06/20/02 02:34PM 
On Thu, 20 Jun 2002, Brett Simpson wrote:

 I'm trying to access a Windows 2000 server share that has files  2GB
 using the Samba client 2.2.3 that comes with Redhat 7.3. It lists the
 files as being many times larger than their actual size. I upgraded to
 the CVS version of Samba today and it still has the problem. Any ideas
 on how to work around this?

Apply the 2.4.18 kernel patches from:
http://www.hojdpunkten.ac.se/054/samba/index.html 

00 - 02 + the samba patch to make smbmount negotiate.

smbfs did not implement LFS before.

/Urban






Large file size issues with Samba client.

2002-06-20 Thread Brett Simpson

I'm trying to access a Windows 2000 server share that has files  2GB using the Samba 
client 2.2.3 that comes with Redhat 7.3. It lists the files as being many times larger 
than their actual size. I upgraded to the CVS version of Samba today and it still has 
the problem. Any ideas on how to work around this?

Viewed from Linux as a mount point to the Win2K.
-rwxr-xr-x1 root root 18446744071777017513 May 15 18:25 
BOCC_20020515_450kbps_21480048.rm

Viewed from Windows 2000.
BOCC_20020515_450kbps_21480048.rm2,307,064KB RealMedia File 5/15/2002 6:25 PM

Brett





RE: Large file size issues with Samba client.

2002-06-20 Thread Esh, Andrew
Title: RE: Large file size issues with Samba client.





An 18.4 Exabyte realmedia file? Must be one of Jeremy Allison's ACL discussions.


That number is interesting. If you subtract it from 2^64, you get 1,932,534,103. If that number is added to the other reported file size (2,307,064*1024), the result is 343 bytes less than 2^32. The 343 bytes is explained by rounding in the bytes-to-kilobytes conversion being done in W2K.

My guess is, somewhere, the actual 32-bit unsigned file size is being reported as a 32 bit signed number. That negative value is later represented as a 64-bit signed number, and is later represented an unsigned 64-bit number. That series of representation changes would convert the just-over 2GB file size into the just-under MAXINT64 size being shown in Linux.

-Original Message-
From: Brett Simpson [mailto:[EMAIL PROTECTED]]
Sent: Thursday, June 20, 2002 1:01 PM
To: [EMAIL PROTECTED]
Subject: Large file size issues with Samba client.



I'm trying to access a Windows 2000 server share that has files  2GB using the Samba client 2.2.3 that comes with Redhat 7.3. It lists the files as being many times larger than their actual size. I upgraded to the CVS version of Samba today and it still has the problem. Any ideas on how to work around this?

Viewed from Linux as a mount point to the Win2K.
-rwxr-xr-x 1 root root 18446744071777017513 May 15 18:25 BOCC_20020515_450kbps_21480048.rm


Viewed from Windows 2000.
BOCC_20020515_450kbps_21480048.rm 2,307,064KB RealMedia File 5/15/2002 6:25 PM


Brett





Re: Large file size issues with Samba client.

2002-06-20 Thread Urban Widmark

On Thu, 20 Jun 2002, Brett Simpson wrote:

 I'm trying to access a Windows 2000 server share that has files  2GB
 using the Samba client 2.2.3 that comes with Redhat 7.3. It lists the
 files as being many times larger than their actual size. I upgraded to
 the CVS version of Samba today and it still has the problem. Any ideas
 on how to work around this?

Apply the 2.4.18 kernel patches from:
http://www.hojdpunkten.ac.se/054/samba/index.html

00 - 02 + the samba patch to make smbmount negotiate.

smbfs did not implement LFS before.

/Urban





Re: Large file size issues with Samba client.

2002-06-20 Thread Brett Simpson

Thanks. I'll give that a try.

 Urban Widmark [EMAIL PROTECTED] 06/20/02 02:34PM 
On Thu, 20 Jun 2002, Brett Simpson wrote:

 I'm trying to access a Windows 2000 server share that has files  2GB
 using the Samba client 2.2.3 that comes with Redhat 7.3. It lists the
 files as being many times larger than their actual size. I upgraded to
 the CVS version of Samba today and it still has the problem. Any ideas
 on how to work around this?

Apply the 2.4.18 kernel patches from:
http://www.hojdpunkten.ac.se/054/samba/index.html 

00 - 02 + the samba patch to make smbmount negotiate.

smbfs did not implement LFS before.

/Urban






Re: Large file size issues with Samba client.

2002-06-20 Thread Urban Widmark

On Thu, 20 Jun 2002, Steven French wrote:

 FYI - The CIFS VFS handles large files and has been tested with RedHat 7.3
 version of the kernel.  It was a pain to test due to the lack of sparse
 file support on the Linux side (I had not seen an equivalent to the sparse
 flag on the Linux side - but it sure helps on the Windows side in creating
 test files).

What lack of sparse file support?

$ dd if=/dev/zero of=aa bs=512 count=1 seek=1024
1+0 records in
1+0 records out
$ d aa
-rw-rw-r--1 puw  puw524800 Jun 21 03:26 aa
$ du -h aa
8.0kaa

There is no flag because it is always supported (given filesystem
backing, and all unix-like filesystems support it). Just truncate it to
the size you want it to be.

/Urban