Re: How to change the FSINFO for nfsd?

From: P.V.Anthony
Date: Sun May 11 2008 - 12:44:59 EST


J. Bruce Fields wrote:

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

Thank you very much for information on which file to change.

Need to ask one question. Please bear with me as I am not a programmer.

1. What program should be used to see the FSINFO of a NFS server?
This program is needed to see if the changes done to the source is
returning with the required FSINFO information.

Just for the record, the change done is as follows.

/usr/src/linux/fs/nfsd # diff nfs3proc.c.org nfs3proc.c
558c558
< resp->f_maxfilesize = ~(u32) 0;
---
> resp->f_maxfilesize = 1111111111111111;

P.V.Anthony

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/