![]() |
|
![]() | ||
|
Subject:
Partial file transfer supported by NFS
Category: Computers > Software Asked by: quickening-ga List Price: $20.00 |
Posted:
26 Dec 2002 14:06 PST
Expires: 25 Jan 2003 14:06 PST Question ID: 133633 |
I was shocked to find that I could do a tail on a large file in an nfs mount and only the tail of the file was transfered. ( The whole file would have taken much longer to transfer. ) So my question is, what feature of NFS is capable of doing this "rsync-like" behavior, and what clients use it (besides tail) ? Even "tail -f " keeps growing record by record within seconds of the log file being appended. What are the limitations of the feature too, like how large a file fragment do I get before the whole file is transferred? It would help me if you could duplicate this behavior on other systems too. I am doing an nfs mount on linux 2.4.18 from an IBM FlexOS nfs server (an OS/2 derivitive). Eventually I would like to set up an rsync-like facility to keep transaction files distributed nationally current locally. (partial ftp and rsync are NOT available) Wrench in the works: I might have to do this from windows. | |
| |
|
![]() | ||
|
There is no answer at this time. |
![]() | ||
|
Subject:
Re: Partial file transfer supported by NFS
From: cwrl-ga on 07 Jan 2003 09:39 PST |
The NFS protocol is described in RFC 1094. It defines a bunch of file operations, for instance 2.2.7 Read From File struct readargs { fhandle file; unsigned offset; unsigned count; unsigned totalcount; }; union readres switch (stat status) { case NFS_OK: fattr attributes; nfsdata data; default: void; }; readres NFSPROC_READ(readargs) = 6; Returns up to "count" bytes of "data" from the file given by "file", starting at "offset" bytes from the beginning of the file. The first byte of the file is at offset zero. The file attributes after the read takes place are returned in "attributes". The tail(1) functionality is probably implemented by opening the file, finding out how long it is, and reading the end of it. So on an NFS mount it can do this just as it would on a normal file system. |
If you feel that you have found inappropriate content, please let us know by emailing us at answers-support@google.com with the question ID listed above. Thank you. |
Search Google Answers for |
Google Home - Answers FAQ - Terms of Service - Privacy Policy |