mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: "P.V.Anthony" <pvantony@singnet.com.sg>
To: "J. Bruce Fields" <bfields@fieldses.org>
Cc: linux-kernel@vger.kernel.org
Subject: Re: Solved - How to change the FSINFO for nfsd?
Date: Sun, 18 May 2008 01:57:33 +0800	[thread overview]
Message-ID: <20080518015733.o7n8cvhomvgos8ow@mail.mindmedia.com.sg> (raw)
In-Reply-To: <20080509042238.GC21408@fieldses.org>

Quoting "J. Bruce Fields":
> I think you'reprobably barking up the wrong tree, but the max file size
> as returned by fsinfo is set in fs/nfsd/nfs3proc.c:nfsd3_proc_fsinfo().

Just in case someone needs to know this information. Please note that  
I am not a
programmer. I am just hacking away.

Most of the credit for the hack goes to the person in the forum  
mentioned below
for finding the Mac NFS behavior.
http://forums.creativecow.net/thread/8/975362

The changes done seem to work well.

I am dissapointed that Apple made changes to NFS to a point that we  
have to use an Apple NFS. I thought that NFS is open. Anyway with  
these changes, a Linux server can be used.

Anyway this problem only happens from with in the video editing application,
Final Cut Pro, an Apple product. I hope someday a good video editing  
application
comes to Linux. I am willing to pay for Linux video editing  
application. It must
be good that is.

Anyway here is the patch done.

------------------- start ------------------------------

pv at videoserver2 ~ $ diff -ruN
/usr/src/linux-2.6.22-gentoo-r8/fs/nfsd/nfs3proc.c.org
/usr/src/linux-2.6.22-gentoo-r8/fs/nfsd/nfs3proc.c
--- /usr/src/linux-2.6.22-gentoo-r8/fs/nfsd/nfs3proc.c.org 2008-05-09
13:07:19.000000000 +0800
+++ /usr/src/linux-2.6.22-gentoo-r8/fs/nfsd/nfs3proc.c 2008-05-13
23:54:56.000000000 +0800
@@ -555,7 +555,7 @@
resp->f_wtpref = max_blocksize;
resp->f_wtmult = PAGE_SIZE;
resp->f_dtpref = PAGE_SIZE;
- resp->f_maxfilesize = ~(u32) 0;
+ resp->f_maxfilesize = 0xffffffffffffffff;
resp->f_properties = NFS3_FSF_DEFAULT;

nfserr = fh_verify(rqstp, &argp->fh, 0, MAY_NOP);
@@ -570,7 +570,7 @@
if (sb->s_magic == 0x4d44 /* MSDOS_SUPER_MAGIC */) {
resp->f_properties = NFS3_FSF_BILLYBOY;
}
- resp->f_maxfilesize = sb->s_maxbytes;
+ resp->f_maxfilesize = 0xffffffffffffffff;
}

fh_put(&argp->fh);

---------------- end -------------------------------------------------

P.V.Anthony



  parent reply	other threads:[~2008-05-17 17:57 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-05-08 17:05 P.V.Anthony
2008-05-09  4:22 ` J. Bruce Fields
2008-05-11 16:44   ` P.V.Anthony
2008-05-11 17:36     ` Bernd Eckenfels
2008-05-17 17:57   ` P.V.Anthony [this message]
2008-05-17 18:25     ` Solved - " Jan Engelhardt
2008-05-17 18:36       ` Trond Myklebust
2008-05-19 17:24         ` J. Bruce Fields
2008-05-19 17:59           ` P.V.Anthony
2008-05-20  8:15           ` P.V.Anthony
2008-05-20 13:12             ` Trond Myklebust

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20080518015733.o7n8cvhomvgos8ow@mail.mindmedia.com.sg \
    --to=pvantony@singnet.com.sg \
    --cc=bfields@fieldses.org \
    --cc=linux-kernel@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®