Re: NFS: file too large

2011-01-19 Thread Rick Macklem
:Well, since a server specifies the maximum file size it can :handle, it seems good form to check for that in the client. :(Although I'd agree that a server shouldn't crash if a read/write : that goes beyond that limit.) : :Also, as Matt notes, off_t is signed. As such, it looks to me

Re: NFS: file too large

2011-01-18 Thread Matthew Dillon
:Well, since a server specifies the maximum file size it can :handle, it seems good form to check for that in the client. :(Although I'd agree that a server shouldn't crash if a read/write : that goes beyond that limit.) : :Also, as Matt notes, off_t is signed. As such, it looks to me like :the

Re: NFS: file too large

2011-01-18 Thread Daniel Braniss
:Well, since a server specifies the maximum file size it can :handle, it seems good form to check for that in the client. :(Although I'd agree that a server shouldn't crash if a read/write : that goes beyond that limit.) : :Also, as Matt notes, off_t is signed. As such, it looks to me like

Re: NFS: file too large

2011-01-14 Thread Daniel Braniss
:Try editting line #1226 of sys/nfsclient/nfs_vfsops.c, where :it sets nm_maxfilesize = (u_int64_t)0x8000 * DEV_BSIZE - 1; and make it :something larger. : :I have no idea why the limit is set that way? (I'm guessing it was the :limit for UFS.) Hopefully not some weird buffer cache

Re: NFS: file too large

2011-01-14 Thread Rick Macklem
BTW, why not make away with the test altogether? Well, since a server specifies the maximum file size it can handle, it seems good form to check for that in the client. (Although I'd agree that a server shouldn't crash if a read/write that goes beyond that limit.) Also, as Matt notes, off_t

Re: NFS: file too large

2011-01-13 Thread Daniel Braniss
I'm getting 'File too large' when copying via NFS(v3, tcp/udp) a file that is larger than 1T. The server is ZFS which has no problem with large files. Is this fixable? As I understand it, there is no FreeBSD VFSop that returns the maximum file size supported. As such, the NFS

Re: NFS: file too large

2011-01-13 Thread Rick Macklem
I'm getting 'File too large' when copying via NFS(v3, tcp/udp) a file that is larger than 1T. The server is ZFS which has no problem with large files. Is this fixable? As I understand it, there is no FreeBSD VFSop that returns the maximum file size supported. As

Re: NFS: file too large

2011-01-13 Thread Matthew Dillon
:Try editting line #1226 of sys/nfsclient/nfs_vfsops.c, where :it sets nm_maxfilesize = (u_int64_t)0x8000 * DEV_BSIZE - 1; and make it :something larger. : :I have no idea why the limit is set that way? (I'm guessing it was the :limit for UFS.) Hopefully not some weird buffer cache restriction

NFS: file too large

2011-01-12 Thread Daniel Braniss
I'm getting 'File too large' when copying via NFS(v3, tcp/udp) a file that is larger than 1T. The server is ZFS which has no problem with large files. Is this fixable? Cheers, danny ___ freebsd-hackers@freebsd.org mailing list

Re: NFS: file too large

2011-01-12 Thread Rick Macklem
I'm getting 'File too large' when copying via NFS(v3, tcp/udp) a file that is larger than 1T. The server is ZFS which has no problem with large files. Is this fixable? As I understand it, there is no FreeBSD VFSop that returns the maximum file size supported. As such, the NFS servers just