Print

Print


I have been trying to understand the Posix client library. I have two 
questions:

1. I can't figure out the Fstat function in XrdPosixXrootd.cc (~line 
201). Even though there is a write interface, the Fstat method seems to 
assume that the value from the last stat (probably the Open) is still 
valid. Why doesn't it do a new fstat call to the server each time to 
get the current values for the file?

2. I have poked around in the Posix standard for the maximum valid 
value for a file descriptor, without success. The Posix client library 
assumes that 65K is the maximum value a file descriptor can take on. Is 
this limit from the Posix standard, or is it based on "nobody will ever 
use that many files descriptors"?

--
Gregory J. Sharp                   email: [log in to unmask]
Wilson Synchrotron Laboratory      url: 
http://www.lepp.cornell.edu/~gregor
Dryden Rd                          ph:  +1 607 255 4882
Ithaca, NY 14853                   fax: +1 607 255 8062