* How to change the FSINFO for nfsd? @ 2008-05-07 14:37 P.V.Anthony 2008-05-07 15:47 ` Jeff Moyer 0 siblings, 1 reply; 9+ messages in thread From: P.V.Anthony @ 2008-05-07 14:37 UTC (permalink / raw) To: autofs Hi, Currently a gentoo linux server is used as a nfs server for some Mac OS X clients. These Mac OS X clients are doing video editing. Currently the video are captured directly to the NFS mounts. Here is the problem. The video files are broken into 2GB files. This because the video editing software(Final Cut Pro) breaks the files into 2GB sizes. It does not seem that the Mac OS X is not doing the breaking up of files. It is the video editing software. Some commercial company found an interesting behaviour. All the Mac OS X NFS server FSINFO response in which the max file size is set to 'FFFF FFFF FFFF FFFF' (all '1's). The link about the above information can be found at this link below. Read towards the bottom of the link. http://forums.creativecow.net/thread/8/975362 I really would like to know where to change in the NFS source code so that the FSINFO response from the server in which the max file size is set to 'FFFF FFFF FFFF FFFF' (all '1's). P.V.Anthony ^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: How to change the FSINFO for nfsd? 2008-05-07 14:37 How to change the FSINFO for nfsd? P.V.Anthony @ 2008-05-07 15:47 ` Jeff Moyer 2008-05-08 0:49 ` P.V.Anthony 0 siblings, 1 reply; 9+ messages in thread From: Jeff Moyer @ 2008-05-07 15:47 UTC (permalink / raw) To: P.V.Anthony; +Cc: autofs "P.V.Anthony" <pvantony@singnet.com.sg> writes: > Hi, > > Currently a gentoo linux server is used as a nfs server for some Mac OS > X clients. These Mac OS X clients are doing video editing. > > Currently the video are captured directly to the NFS mounts. > > Here is the problem. The video files are broken into 2GB files. This > because the video editing software(Final Cut Pro) breaks the files into > 2GB sizes. It does not seem that the Mac OS X is not doing the breaking > up of files. It is the video editing software. > > Some commercial company found an interesting behaviour. All the Mac OS X > NFS server FSINFO response in which the max file size is set to 'FFFF > FFFF FFFF FFFF' (all '1's). > > The link about the above information can be found at this link below. > Read towards the bottom of the link. > http://forums.creativecow.net/thread/8/975362 > > I really would like to know where to change in the NFS source code so > that the FSINFO response from the server in which the max file size is > set to 'FFFF FFFF FFFF FFFF' (all '1's). You're really stabbing in the dark, here. I suggest you email the software manufacturer of Final Cut Pro (Apple?) with a support request. Thanks, Jeff ^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: How to change the FSINFO for nfsd? 2008-05-07 15:47 ` Jeff Moyer @ 2008-05-08 0:49 ` P.V.Anthony 2008-05-08 6:24 ` Ian Kent 0 siblings, 1 reply; 9+ messages in thread From: P.V.Anthony @ 2008-05-08 0:49 UTC (permalink / raw) To: jmoyer; +Cc: autofs Jeff Moyer wrote: > You're really stabbing in the dark, here. I suggest you email the > software manufacturer of Final Cut Pro (Apple?) with a support request. You are right but Apple is not going to help because I am using Linux. They would ask me to buy a Apple Xserve. I know it will work because the commercial company made the changes and it works. I also understand that they will not share the code change because it is a commercial thing. Here is their email. At least they are willing to share this. -------------- start ---------------------- Yes we arrive to an interesting conclusion. Over NFS the Max OSX10.5 client uses the NFS FSINFO request to discover NFS server capabilities such as the max file size. Specifically Mac NFS servers return a value of all '1's for the max file size field in the FSINFO response. This value is not realistic but tell the Mac client that this is a Mac NFS server that can handle files larger then 2GB. We are a storage vendor so we changed the code for our NFS server to return the same FSINFO information and that resolved the file chopping problem. It also fixed another bug where copies over the finder of files over 4GB failed. Now they don't. -------------- end ---------------------- If possible, please share how to change the code to make the FSINFO present all '1's for the max file size field. P.V.Anthony ^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: How to change the FSINFO for nfsd? 2008-05-08 0:49 ` P.V.Anthony @ 2008-05-08 6:24 ` Ian Kent 2008-05-08 17:06 ` P.V.Anthony 0 siblings, 1 reply; 9+ messages in thread From: Ian Kent @ 2008-05-08 6:24 UTC (permalink / raw) To: P.V.Anthony; +Cc: autofs On Thu, 2008-05-08 at 08:49 +0800, P.V.Anthony wrote: > Jeff Moyer wrote: > > > You're really stabbing in the dark, here. I suggest you email the > > software manufacturer of Final Cut Pro (Apple?) with a support request. > > You are right but Apple is not going to help because I am using Linux. > They would ask me to buy a Apple Xserve. > > I know it will work because the commercial company made the changes and > it works. I also understand that they will not share the code change > because it is a commercial thing. > > Here is their email. At least they are willing to share this. > -------------- start ---------------------- > > Yes we arrive to an interesting conclusion. Over NFS the Max OSX10.5 > client uses the NFS FSINFO request to discover NFS server capabilities > such as the max file size. Specifically Mac NFS servers return a value > of all '1's for the max file size field in the FSINFO response. This > value is not realistic but tell the Mac client that this is a Mac NFS > server that can handle files larger then 2GB. > > We are a storage vendor so we changed the code for our NFS server to > return the same FSINFO information and that resolved the file chopping > problem. It also fixed another bug where copies over the finder of files > over 4GB failed. Now they don't. > > -------------- end ---------------------- > > If possible, please share how to change the code to make the FSINFO > present all '1's for the max file size field. This isn't the place to ask how to make changes to the kernel NFS client. You should probably ask this on the linux-nfs list. Ian ^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: How to change the FSINFO for nfsd? 2008-05-08 6:24 ` Ian Kent @ 2008-05-08 17:06 ` P.V.Anthony 0 siblings, 0 replies; 9+ messages in thread From: P.V.Anthony @ 2008-05-08 17:06 UTC (permalink / raw) To: Ian Kent; +Cc: autofs Ian Kent wrote: > This isn't the place to ask how to make changes to the kernel NFS > client. You should probably ask this on the linux-nfs list. Thank you for the information. I will try there. P.V.Anthony ^ permalink raw reply [flat|nested] 9+ messages in thread
* How to change the FSINFO for nfsd? @ 2008-05-08 17:05 P.V.Anthony 2008-05-09 4:22 ` J. Bruce Fields 0 siblings, 1 reply; 9+ messages in thread From: P.V.Anthony @ 2008-05-08 17:05 UTC (permalink / raw) To: linux-kernel Hi, Currently a gentoo linux server is used as a nfs server for some Mac OS X clients. These Mac OS X clients are doing video editing. Currently the video are captured directly to the NFS mounts. Here is the problem. The video files are broken into 2GB files. This because the video editing software(Final Cut Pro) breaks the files into 2GB sizes. It does not seem that the Mac OS X is not doing the breaking up of files. It is the video editing software. Some commercial company found an interesting behaviour. All the Mac OS X NFS server FSINFO response in which the max file size is set to 'FFFF FFFF FFFF FFFF' (all '1's). The link about the above information can be found at this link below. Read towards the bottom of the link. http://forums.creativecow.net/thread/8/975362 I really would like to know where to change in the NFS source code so that the FSINFO response from the server in which the max file size is set to 'FFFF FFFF FFFF FFFF' (all '1's). P.V.Anthony ^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: How to change the FSINFO for nfsd? 2008-05-08 17:05 P.V.Anthony @ 2008-05-09 4:22 ` J. Bruce Fields 2008-05-11 16:44 ` P.V.Anthony 0 siblings, 1 reply; 9+ messages in thread From: J. Bruce Fields @ 2008-05-09 4:22 UTC (permalink / raw) To: P.V.Anthony; +Cc: linux-kernel On Fri, May 09, 2008 at 01:05:17AM +0800, P.V.Anthony wrote: > Hi, > > Currently a gentoo linux server is used as a nfs server for some Mac OS > X clients. These Mac OS X clients are doing video editing. > > Currently the video are captured directly to the NFS mounts. > > Here is the problem. The video files are broken into 2GB files. This > because the video editing software(Final Cut Pro) breaks the files into > 2GB sizes. It does not seem that the Mac OS X is not doing the breaking > up of files. It is the video editing software. > > Some commercial company found an interesting behaviour. All the Mac OS X > NFS server FSINFO response in which the max file size is set to 'FFFF > FFFF FFFF FFFF' (all '1's). > > The link about the above information can be found at this link below. > Read towards the bottom of the link. > http://forums.creativecow.net/thread/8/975362 > > I really would like to know where to change in the NFS source code so > that the FSINFO response from the server in which the max file size is > set to 'FFFF FFFF FFFF FFFF' (all '1's). 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(). --b. ^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: How to change the FSINFO for nfsd? 2008-05-09 4:22 ` J. Bruce Fields @ 2008-05-11 16:44 ` P.V.Anthony 2008-05-11 17:36 ` Bernd Eckenfels 0 siblings, 1 reply; 9+ messages in thread From: P.V.Anthony @ 2008-05-11 16:44 UTC (permalink / raw) To: J. Bruce Fields; +Cc: linux-kernel 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 ^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: How to change the FSINFO for nfsd? 2008-05-11 16:44 ` P.V.Anthony @ 2008-05-11 17:36 ` Bernd Eckenfels 0 siblings, 0 replies; 9+ messages in thread From: Bernd Eckenfels @ 2008-05-11 17:36 UTC (permalink / raw) To: linux-kernel In article <4827227D.6040903@singnet.com.sg> you wrote: > 1. What program should be used to see the FSINFO of a NFS server? I think pathconf is supposed to do that, however I dont remember if it can query filesize. I have seen only PATH_MAX und NAME_MAX on NFS>=3. However you can strace that: # strace getconf NAME_MAX /nfs/home ... readlink("/usr/lib/getconf/default", 0xbf846ea6, 21) = -1 ENOENT (No such file or directory) statfs("/nfs/home/", {f_type="NFS_SUPER_MAGIC", f_bsize=16384, f_blocks=3731367, f_bfree=454412, f_bavail=155902, f_files=7725054, f_ffree=7434759, f_fsid={0, 0}, f_namelen=255, f_frsize=16384}) = 0 fstat64(1, {st_mode=S_IFCHR|0620, st_rdev=makedev(136, 1), ...}) = 0 mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb7f33000 write(1, "255\n") = 4 255 In my example the FreeBSD Server is not returning max filesize.. Gruss Bernd ^ permalink raw reply [flat|nested] 9+ messages in thread
end of thread, other threads:[~2008-05-11 17:36 UTC | newest] Thread overview: 9+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2008-05-07 14:37 How to change the FSINFO for nfsd? P.V.Anthony 2008-05-07 15:47 ` Jeff Moyer 2008-05-08 0:49 ` P.V.Anthony 2008-05-08 6:24 ` Ian Kent 2008-05-08 17:06 ` P.V.Anthony -- strict thread matches above, loose matches on Subject: below -- 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
This is an external index of several public inboxes, see mirroring instructions on how to clone and mirror all data and code used by this external index.