Absolutely correct. I thought we went through this: xrdcp should *not* do a stat prior to opening the file. Fabrizio, I thought you said that this was changed. So, this is very confusing now. Andy ----- Original Message ----- From: "Wilko Kroeger" <[log in to unmask]> To: <[log in to unmask]> Sent: Wednesday, November 17, 2004 7:52 AM Subject: xrdcp and redirector > > Hello Fabrizio > > I tried xrdcp from the head together with a redirector. > The setup is simple: one redirector and one data server and > I try to copy a local file to an xrootd data server. > Unfortunately, xrdcp failed so far claiming that no data server > is available. > I have a question regarding the steps within xrdcp. Looking > through the logs it looks like that xrdcp first stats the file > and directory the files should go to and then if the dirs don't > exist it tries to create them. However all these steps fail because > the redirector doesn't return a data server. > > As far as I understand a redirector returns a valid data server > if it receives a request to write a file, and therefore writing to > xrootd should follow the steps below. Is this true and is this > implemented in xrdcp ? > > 1) open/write the file to xrootd (the redirector should return a valid > data server) > 2) if 1) fails do the stat and mkdir on the data server obtained in step > 1). > 3) repeat step 1). > > > Cheers, > Wilko > > > >