[root] / trunk / net / net / src / TNetFile.cxx Repository:
ViewVC logotype

Log of /trunk/net/net/src/TNetFile.cxx

Parent Directory Parent Directory


Links to HEAD: (view) (download) (as text) (annotate)
Sticky Revision:

Revision 48992 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu Mar 28 15:26:26 2013 UTC (21 months, 3 weeks ago) by rdm
File length: 36123 byte(s)
Diff to previous 38221
From Lifeng Sun:
The attached patchset fixes a bunch of typo in the source:
0001-succes-success.patch
0002-preceed-preced.patch
0003-informations-information.patch
0004-childs-children.patch
0005-avaliable-available.patch
0006-writeable-writable.patch
0007-comand-command.patch
0008-unkown-unknown.patch
0009-wierd-weird.patch
0010-wheter-whether.patch
0011-unecessary-unnecessary.patch
0012-splitted-split.patch
0013-registerd-registered.patch
0014-recieve-receive.patch
0015-processsing-processing.patch
0016-ouput-output.patch
0017-mutiple-multiple.patch
0018-lenght-length.patch
0019-interupted-interrupted.patch
0020-independant-independent.patch
0021-inconsistant-inconsistent.patch
0022-expresion-expression.patch
0023-explicitely-explicitly.patch
0024-enviroment-environment.patch
0025-deafult-default.patch
0026-continous-continuous.patch
0027-completly-completely.patch
0028-commited-committed.patch
0029-choosen-chosen.patch
0030-backgroud-background.patch
0031-auxilliary-auxiliary.patch
0032-authentification-authentication.patch
0033-appropiate-appropriate.patch
0034-an-other-another.patch
0035-environement-environment.patch
0036-targetting-targeting.patch
0037-suppported-supported.patch
0038-paramater-parameter.patch

Revision 38221 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Fri Feb 25 10:26:55 2011 UTC (3 years, 10 months ago) by rdm
File length: 36125 byte(s)
Diff to previous 34444
From Gerri:
Few fixes to improve/reduce verbosity in case of connection broken or
reset by peer
- In TSocket:
  - Add bit  kBrokenConn and set it when the connection is broken or reset
    by peer
  - Add missing checks of return codes from Send and Recv operations
  - In CreateAuthSocket, add an optional argument to extract the error code
    in case of failure; set the error to kErrConnectionRefused when the
    failure is due to a broken or reset by peer connection.
- In TPSocket:
  - Add bit  kBrokenConn and set it when the connection is broken or reset
    by peer
  - Add missing checks of return codes from Send and Recv operations
  - In the main constructor, fix a bug causing a double connection attempt
    in case of failure
- In TNetFile:
  - Extract a more correct error code via CreateAuthSocket instead of
    setting the generic authentication error code
  - Fix a typo in a error message
- In TNetSystem:
  - Fix a bug in ConsistentWith causing always a new helper (and connection)
    instance to be created when repeating the request with the same path.

Revision 34444 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Fri Jul 16 02:17:39 2010 UTC (4 years, 6 months ago) by pcanal
File length: 35885 byte(s)
Diff to previous 34286
Avoid doing seeks on the physical file reprensation when it is not absolutely necessary
(i.e. it is not need if we are going to pick the data from our cache).
Introduce a SetOffset to change fOffset (i.e. the logical position in the file) without doing a lseek.
Introduce ReadBuffer(char * buf, Long64_t pos, Int_t len) to avoid the lseek when the data is in the cache.

See <http://savannah.cern.ch/bugs/?69845>

Revision 34286 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu Jul 1 20:38:57 2010 UTC (4 years, 6 months ago) by rdm
File length: 35985 byte(s)
Diff to previous 34276
fix format errors related to TString::Form(), TString::Format(), Form()
and Printf().

Revision 34276 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu Jul 1 10:25:16 2010 UTC (4 years, 6 months ago) by rdm
File length: 35971 byte(s)
Diff to previous 30977
fix format warning.

Revision 30977 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu Nov 5 01:37:22 2009 UTC (5 years, 2 months ago) by rdm
File length: 35965 byte(s)
Diff to previous 30749
change to new FileReadEvent start time convention.

Revision 30749 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu Oct 15 16:33:04 2009 UTC (5 years, 3 months ago) by brun
File length: 36041 byte(s)
Diff to previous 30360
From Matthew Strait:
This patch fixes the spelling of "function" in the root source code
and documentation, which is misspelled (sometimes as part of larger
"function"-based words) at least 152 times:

* "funciton" 48 times
* "funcion" 36 times
* "funtion" 23 times
* "fucntion" 17 times
* "functionn" 6 times
* "fuction" 6 times
* "fuunction" 4 times
* "functioin" 3 times
* "fonction" 3 times
* "funstion" twice
* "fnuction" once
* "functiom" once
* "functio" once
* "funcition" once

Revision 30360 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue Sep 22 16:19:32 2009 UTC (5 years, 4 months ago) by rdm
File length: 36040 byte(s)
Diff to previous 24662
From Gerri:
avoid infinite loop by not calling derived IsPathLocal() again.

Revision 24662 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Fri Jul 4 10:54:58 2008 UTC (6 years, 6 months ago) by rdm
File length: 36040 byte(s)
Diff to previous 24659
store netops argument for later re-use in ReOpen().

Revision 24659 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Fri Jul 4 10:14:08 2008 UTC (6 years, 6 months ago) by rdm
File length: 35949 byte(s)
Diff to previous 24656
comment.

Revision 24656 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu Jul 3 17:53:17 2008 UTC (6 years, 6 months ago) by rdm
File length: 35915 byte(s)
Diff to previous 24655
comment was truncated.

Revision 24655 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu Jul 3 17:50:43 2008 UTC (6 years, 6 months ago) by rdm
File length: 35893 byte(s)
Diff to previous 23094
From Gerri and me:
fix allowing:
  f->Close()
  f->ReOpen()
to work. Before a closed file could not be reopened().

Revision 23094 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed Apr 9 15:52:29 2008 UTC (6 years, 9 months ago) by rdm
File length: 35695 byte(s)
Diff to previous 23091
From Gerri:
Complete the patch for the locality check (some part got lost at some point).

Revision 23091 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed Apr 9 15:04:27 2008 UTC (6 years, 9 months ago) by rdm
File length: 33932 byte(s)
Copied from: trunk/net/src/TNetFile.cxx revision 23090
Diff to previous 23027
moving the follwing directories to "net":

alien, auth, glite, globusauth, krb5auth, ldap, monalisa, net, netx,
rootd, rpdutils, srputils, xrootd

Revision 23027 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon Apr 7 16:49:09 2008 UTC (6 years, 9 months ago) by rdm
Original Path: trunk/net/src/TNetFile.cxx
File length: 33932 byte(s)
Diff to previous 21382
From Gerri:
Implement TNetSystem::Unlink().

Revision 21382 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Fri Dec 14 20:15:07 2007 UTC (7 years, 1 month ago) by rdm
Original Path: trunk/net/src/TNetFile.cxx
File length: 33437 byte(s)
Diff to previous 20882
From Bertrand and Gerri:
Fixes the problem reported at:
http://root.cern.ch/phpBB2/viewtopic.php?t=5917

Revision 20882 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon Nov 19 11:31:26 2007 UTC (7 years, 2 months ago) by rdm
Original Path: trunk/net/src/TNetFile.cxx
File length: 33411 byte(s)
Diff to previous 19826
Set property svn:eol-style LF on all source and Makefiles. This should avoid
problems with Win32 line endings ending up in the repository. All MS tools
support LF eols fine.

Revision 19826 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed Sep 19 19:56:11 2007 UTC (7 years, 4 months ago) by rdm
Original Path: trunk/net/src/TNetFile.cxx
File length: 33411 byte(s)
Diff to previous 19825
imported svn:keywords Id property

Revision 19825 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed Sep 19 19:49:10 2007 UTC (7 years, 4 months ago) by rdm
Original Path: trunk/net/src/TNetFile.cxx
File length: 33461 byte(s)
Diff to previous 19747
remove :$ from tag line

Revision 19747 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Fri Aug 31 11:06:12 2007 UTC (7 years, 4 months ago) by brun
Original Path: trunk/net/src/TNetFile.cxx
File length: 33471 byte(s)
Diff to previous 16198
From Bertrand:
- Added several #ifdef R__WIN32 to use the Win32 syntax
  %I64d instead of %lld to read Long64_t via sscanf.
- Replaced #ifdef WIN32 by #ifdef R__WIN32

Revision 16198 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon Sep 4 00:45:03 2006 UTC (8 years, 4 months ago) by rdm
Original Path: trunk/net/src/TNetFile.cxx
File length: 33220 byte(s)
Diff to previous 15998
From Gerri and me:
- don't use TUrl to strip off "file:" protocol string from file names
  as this was also striping off everything after # and ? tokens, making
  it impossible to e.g. stat local file names like .#bla#.
- make copy ctor and assignment operator private and not implemented.

Revision 15998 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon Aug 14 10:50:15 2006 UTC (8 years, 5 months ago) by brun
Original Path: trunk/net/src/TNetFile.cxx
File length: 33938 byte(s)
Diff to previous 15996
Fix coding conventions violations

Revision 15996 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon Aug 14 10:31:36 2006 UTC (8 years, 5 months ago) by brun
Original Path: trunk/net/src/TNetFile.cxx
File length: 33898 byte(s)
Diff to previous 15990
From Leandro:
Fix portability problem on Windows.

Revision 15990 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Fri Aug 11 20:33:18 2006 UTC (8 years, 5 months ago) by brun
Original Path: trunk/net/src/TNetFile.cxx
File length: 33808 byte(s)
Diff to previous 15755
From Leandro:
Reduces the memory footprint by transfering a big block produced in a
readv call in smaller chunks (the size is specified by the client).
Since the transfers are in a non-blocking mode it should also improve
the performance by reading the (future) disk data at the same as sending
the actual one.

Revision 15755 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon Jul 10 14:31:28 2006 UTC (8 years, 6 months ago) by brun
Original Path: trunk/net/src/TNetFile.cxx
File length: 33313 byte(s)
Diff to previous 15626
From Leo:
Add backward compatibility for old rootd servers not equipped with the new protocol.

Revision 15626 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu Jun 29 22:15:37 2006 UTC (8 years, 6 months ago) by rdm
Original Path: trunk/net/src/TNetFile.cxx
File length: 33153 byte(s)
Diff to previous 15572
Several fixes in the new cache handling:
- TFile
   - GetBytesWritten() includes also the number of bytes still in the
     write cache
   - New method FlushWriteCache()
   - Call FlushWriteCache() also when closing files in raw mode
   - Call FlushWriteCache() also in Flush()
- TFileCacheWrite:
   - new method GetBytesInCache() returning bytes still in cache
     used by TFile::GetBytesWritten()
   - WriteBuffer() returns int iso bool, -1 write failure, 0 in case
     recusively called and 1 in case copied in cache
- TFileCacheRead:
   - ReadBuffer() returns int iso bool, -1 read failure, 0 in case not
    in cache and 1 in case read from cache.
- TTreeCache:
   - use int return type for ReadBuffer()
- TNetFile and TXNetFile:
   - call FlushWriteCache() in their Flush().

Revision 15572 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue Jun 27 14:36:28 2006 UTC (8 years, 6 months ago) by brun
Original Path: trunk/net/src/TNetFile.cxx
File length: 33129 byte(s)
Diff to previous 15482
-Rename class TFilePrefetch -> TFileCacheRead
-Rename class TTreeFilePrefetch -> TTreeCache
-Add new class TFileCacheWrite that implements automatic caching
 when writing network files. This class replaces the previous class TCache.
-old TCache class deleted.
-TFileCacheRead can read buffers from the wite cache in TFileCacheWrite.
-As a result TFile::UseCache is obsolete. The function is kept for
  backward compatibility.
-Remove references to TCache from TXMLFile, TSQLFile, TwebFile, TNetFile
-remove pointer TFile::fCache
-Add pointers TFile::fCacheRead and TFile::fCacheWrite
-Remove members fMaxCacheSize and fPageSize from TChain

NOTE that it is recommended to
  rm -f base/src/*.d base/src/*.o
  rm -f net/src/*.d  net/src/*.o
  rm -f tree/src/*.d tree/src/*.o

Revision 15482 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue Jun 20 10:15:23 2006 UTC (8 years, 7 months ago) by rdm
Original Path: trunk/net/src/TNetFile.cxx
File length: 33156 byte(s)
Diff to previous 15463
cosmetic.

Revision 15463 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Sun Jun 18 17:51:33 2006 UTC (8 years, 7 months ago) by rdm
Original Path: trunk/net/src/TNetFile.cxx
File length: 33100 byte(s)
Diff to previous 15384
Fix offset handling in case of prefetch with no special ReadBuffers(), like
RFIO, dCache, Chirp, etc.

Revision 15384 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Fri Jun 9 01:21:43 2006 UTC (8 years, 7 months ago) by rdm
Original Path: trunk/net/src/TNetFile.cxx
File length: 33269 byte(s)
Diff to previous 15359
added support in TNetFile and TWebFile ReadBuffers() for reading from
ZIP archive files. Also changed the mod_root2.c plugin to be able to
return the file size needed for finding the ZIP directory. ROOT zip files
published via Apache need to have the extension .rzip since .zip is already
handled by another handler.

Revision 15359 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed Jun 7 10:34:37 2006 UTC (8 years, 7 months ago) by rdm
Original Path: trunk/net/src/TNetFile.cxx
File length: 33950 byte(s)
Diff to previous 15284
add file names to error messages in case file cannot be opened.

Revision 15284 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu Jun 1 09:50:28 2006 UTC (8 years, 7 months ago) by brun
Original Path: trunk/net/src/TNetFile.cxx
File length: 33894 byte(s)
Diff to previous 15276
From Leandro:
Code cleanup and implementation of ReadBuffers in TXNetFile

Revision 15276 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu Jun 1 07:43:59 2006 UTC (8 years, 7 months ago) by brun
Original Path: trunk/net/src/TNetFile.cxx
File length: 35052 byte(s)
Diff to previous 15265
Fix coding conventions violations

Revision 15265 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed May 31 15:26:06 2006 UTC (8 years, 7 months ago) by brun
Original Path: trunk/net/src/TNetFile.cxx
File length: 35053 byte(s)
Diff to previous 15176
From Leandro Franco:
Implement new protocol in rootd and TNetFile to:
 get multiple buffers from the specified list of offsets and lengths from
 the currently open file and send it to the client in a single buffer.

Revision 15176 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Fri May 26 09:27:12 2006 UTC (8 years, 8 months ago) by brun
Original Path: trunk/net/src/TNetFile.cxx
File length: 31274 byte(s)
Diff to previous 15168
Fix coding conventions violations

Revision 15168 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed May 24 15:10:47 2006 UTC (8 years, 8 months ago) by brun
Original Path: trunk/net/src/TNetFile.cxx
File length: 31268 byte(s)
Diff to previous 15134
Fix coding conventions violations

Revision 15134 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue May 23 04:47:42 2006 UTC (8 years, 8 months ago) by brun
Original Path: trunk/net/src/TNetFile.cxx
File length: 31129 byte(s)
Diff to previous 14918
From Federico Carminati:

"I have implemented all copy and equal operators needed to silence all
warnings in AliRoot, as requested. I have implemented shallow copies as
would do the default operators synthetized by the compiler.
Most operators are protected. If users complain, you just have to move
them into the public area, but class derivation is of course supported.
It has been a terrible job, I have modified 278 files, but the changes
are backward compabile, and this goes a long way to permitting user to
use the effc++ flag with root headers."

Revision 14918 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu May 4 17:05:29 2006 UTC (8 years, 8 months ago) by rdm
Original Path: trunk/net/src/TNetFile.cxx
File length: 29847 byte(s)
Diff to previous 14884
From Gerri:
This should make the TUrl change backward compatible with respect to rootd.

Revision 14884 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon May 1 20:13:42 2006 UTC (8 years, 8 months ago) by rdm
Original Path: trunk/net/src/TNetFile.cxx
File length: 29481 byte(s)
Diff to previous 14740
Cleanup code by using TUrl::GetHostFQDN().

Revision 14740 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue Apr 18 14:23:20 2006 UTC (8 years, 9 months ago) by rdm
Original Path: trunk/net/src/TNetFile.cxx
File length: 30162 byte(s)
Diff to previous 14111
From Gerri:
move non-persistent member fUrl that was in all derived classes to
TFile. It is accessable via the new method GetEndpointUrl() and will
return in the case of xrootd files the url of the node really having
the file (and not the generic redirector host id).
Also added code to better handle the case of many concurrent async
opens (keep a list of async open handlers).

Revision 14111 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Sun Feb 26 16:13:38 2006 UTC (8 years, 10 months ago) by rdm
Original Path: trunk/net/src/TNetFile.cxx
File length: 29069 byte(s)
Diff to previous 14074
From Gerri and Jan:
TXNetSystem::MakeDirectory:
   send request for the path name and not for the full URL
TXNetSystem::ConsistentWith:
   redirect to TNetSystem::ConsistentWith instead of TSystem::ConsistentWith
 TNetSystem::ConsistentWith:
   check also the port number
 TNetSystem::InitRemoteEntity (new)
   fill in user, host, port with the appropriate checks

Revision 14074 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue Feb 21 16:57:12 2006 UTC (8 years, 11 months ago) by brun
Original Path: trunk/net/src/TNetFile.cxx
File length: 28510 byte(s)
Diff to previous 13044
From Gerri:
Fix problem due to the attempt of using a deleted object in
TNetSystem::~TNetSystem.

Revision 13044 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu Oct 27 16:36:38 2005 UTC (9 years, 2 months ago) by rdm
Original Path: trunk/net/src/TNetFile.cxx
File length: 27703 byte(s)
Diff to previous 12650
From Gerri:
This is the patch to import the new XROOTD and to enable TXNetSystem.

Three files:
  - 'adds-netx.tgz' contains the new class TXNetSystem;

  - 'xrootd-20051026-1709.src.tgz' is the tagged version of XROOTD

  - 'cvs-patch' the modifications needed to integrate the two things in ROOT:
    - config/rootrc.in:
      add plugin info for TXNetSystem
    - base/src/TSystem.cxx:
      fix the number of arguments in loading the TXNetSystem plugin
    - netx/inc/TXNetFile.h, .cxx:
      make a couple of generic auxilliary methods static so that they can be
      used by TXNetSystem
    - net/inc/TNetFile.h, .cxx:
      add Create method in TNetSystem, used by TXNetSystem to re-use the
      open connection in case of rootd
    - net/inc/TFTP.h, .cxx:
      additional 'TSocket *' argument in the constructor to allow re-using an
      open connection; default behaviour not changed
    - netx/inc/LinkDef.h:
      add pragma statement for TXNetSystem
    - netx/Module.mk:
      add support for building on an external XROOTD distribution
    - xrootd/Module.mk:
      changes to use the new version; still using the 'classic' configure
      script:
         will move to autoconf with the next patch

Revision 12650 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon Sep 5 10:28:08 2005 UTC (9 years, 4 months ago) by rdm
Original Path: trunk/net/src/TNetFile.cxx
File length: 27476 byte(s)
Diff to previous 11917
from Andreas Peters:
I just added a function, GetEndpointUrl(), which allows you to find out
after redirection to which host you are redirected.

So, if you give a list of Alien URLs in a Dataset, the master can try to
open all files over the redirector and will end up at some hosts. It can
then replace the alien url with the url, where it could open the files.
This is cool, because you could set the connection time only to 2s and if
the master cannot open the file, it will just skip it in the dataset.
Or the master would trigger the staging over xroootd ... aso ...
so, if you could put this in soon, would be cool.

Revision 11917 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue May 31 13:29:12 2005 UTC (9 years, 7 months ago) by rdm
Original Path: trunk/net/src/TNetFile.cxx
File length: 27450 byte(s)
Diff to previous 11300
white space change.

Revision 11300 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Fri Mar 11 11:06:18 2005 UTC (9 years, 10 months ago) by rdm
Original Path: trunk/net/src/TNetFile.cxx
File length: 27446 byte(s)
Diff to previous 11293
From Gerri:
correction of my mistake ;-)

Revision 11293 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Fri Mar 11 00:49:46 2005 UTC (9 years, 10 months ago) by rdm
Original Path: trunk/net/src/TNetFile.cxx
File length: 27431 byte(s)
Diff to previous 10798
From Gerri:
allow anonymous user to read a directory.

Revision 10798 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed Dec 15 17:48:03 2004 UTC (10 years, 1 month ago) by rdm
Original Path: trunk/net/src/TNetFile.cxx
File length: 27430 byte(s)
Diff to previous 10666
From Gerri:
Purpose:
 - Add new Select functionality in TMonitor and TSocket
   This functionality will be used for asyncronous threaded
   reader of TXNetFile.
 - Add support for creation of a TNetFile using an existing
   connection (reuse connection that was already opened by
   TXNetFile while remore side is rootd and not xrootd).

net/inc/TMonitor.h
 - add new private member Bool_t fMainLoop to tell if the
   monitoring has to be on the main loop or outside.
 - add argument 'Bool_t mainloop' to the constructor, default kTRUE
 - add new method SetInterest() to change interest mask of
   a socket
 - add new Select() method for the out-of-main-loop case

net/src/TMonitor.cxx
 - add implemention for the new methods.

net/inc/TNetFile.h
 - add new signature for method Create() to open a TNetFile
   using an existing connection (used to optmize the rootd
   fall back support in TXNetFile).

net/src/TNetFile.cxx
 - add support for new Create()

net/inc/TPSocket.h
 - add new constructor to setup a parallel socket using
   an existing connection (used to optmize the rootd
   fall back support in TXNetFile).
 - add support for new constructor in method Init()

net/src/TPSocket.cxx
 - add implentation of new ctor and related modifications
   in Init().

net/inc/TSocket.h
 - add new method Select() to monitor the socket outside
   the main event loop
 - add new method SetDescriptor() used in TXSocket to save
   the TSocket part
 - add new member fTcpWindowSize and corresponding getter
   for use in the new TPSocket ctor
 - add a 'TSocket *' argument to CreateAuthSocket (default 0)
   to allow re-using of an existing connection

net/src/TSocket.cxx
 - add new method Select() to monitor the socket outside
   the main event loop

Revision 10666 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu Dec 2 11:52:28 2004 UTC (10 years, 1 month ago) by rdm
Original Path: trunk/net/src/TNetFile.cxx
File length: 26938 byte(s)
Diff to previous 10482
change "n-fold" to "n-stream" in messages. One speaks of multiple streams,
not folds.

Revision 10482 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Fri Nov 5 13:51:48 2004 UTC (10 years, 2 months ago) by rdm
Original Path: trunk/net/src/TNetFile.cxx
File length: 26765 byte(s)
Diff to previous 10467
From Gerri:
SysStat() was not updated after the change in protocol for the ROOTD_FSTAT
message.

Revision 10467 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed Nov 3 22:54:53 2004 UTC (10 years, 2 months ago) by rdm
Original Path: trunk/net/src/TNetFile.cxx
File length: 26197 byte(s)
Diff to previous 10316
fFTP could remain un-initialized.

Revision 10316 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Fri Oct 15 16:55:07 2004 UTC (10 years, 3 months ago) by rdm
Original Path: trunk/net/src/TNetFile.cxx
File length: 26181 byte(s)
Diff to previous 9699
introduce a more complete TSystem::GetPathInfo() method that takes a
new FileStat_t structure as argument. This FileStat_t structure mimics the
common struct stat. This allows for full support of the file mode bits
(via the new enum EFileModeMask and the inline function R_ISDIR(), R_ISCHR(),
R_SIBLK(), R_ISREG(), R_ISLNK(), R_ISFIFO() and R_ISSOCK()).
The TSystem derived helper clsses for the remote file access protocols
have been updated too (all already supported struct stat in their POSIX
layers). Modified rootd to also support FileStat_t. With this change we
can get rid of machine dependent file permission checking code in several
places, notably in the TGFSContainer, which now can correctly display
file attributes for remote protocols.

Revision 9699 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon Aug 9 17:43:07 2004 UTC (10 years, 5 months ago) by rdm
Original Path: trunk/net/src/TNetFile.cxx
File length: 26530 byte(s)
Diff to previous 9420
fix problem of reading ZIP archives when a TCache cache is active.

Revision 9420 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed Jul 7 23:25:33 2004 UTC (10 years, 6 months ago) by rdm
Original Path: trunk/net/src/TNetFile.cxx
File length: 27077 byte(s)
Diff to previous 9385
two new classes to read archive files. TArchiveFile is an abstract class
which uses the plugin manager to load a concrete archive reader. Currently
the TZIPFile class provides a ZIP archive reader. One can also imagine a
TTARFile to read tar files. We advice however to use ZIP archives since they
allow direct access to all its members via a directory structure which
is part of the file. The archive file access has been integrated into TFile
which also functions as byte reader to access the archive. This has the
enormous benefit that archives can be accessed using all the existing
remote file access classes, like TNetFile, TRFIOFile, TCastorFile, etc.

When creating ZIP files containing ROOT files make sure that the ROOT files
are not compressed since normally they are already ZIP compressed. on Linux
one can create a ZIP archive doing:

    zip -n root multi file1.root file2.root file3.root ...

which creates the archive multi.zip, with all files ending with .root
not compressed.

The ROOT files in an archive can be simply accessed like this:

    TFile *f = TFile::Open("multi.zip#file2.root")
or
    TFile *f = TFile::Open("root://pcsalo/multi.zip#2")

where the second form opens the 3rd ROOT file in the archive via rootd.

A TFile can also be used to just browse an archive file, like:

     TFile *f = TFile::Open("multi.zip")
     f->GetArchive->Print()

A TBrowser interface will follow shortly.

The core ZIP reading code has been kindly provided by Lassi Tuura.

Revision 9385 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Sun Jul 4 17:48:43 2004 UTC (10 years, 6 months ago) by rdm
Original Path: trunk/net/src/TNetFile.cxx
File length: 26863 byte(s)
Diff to previous 9377
From Gerri:
1. TSystem.cxx, TNetFile.cxx:
   two checks in TSystem::ConsistentWith and TNetSystem::ConsistentWith
   were wrong in such a way to compensate each other;

2. rpdutils.cxx:
   RpdCheckHostsEquiv:
   missing extension in renaming .rhosts made permission
   check ineffective

   RpdCheckAuthAllow:
   an initialization flag setting was misplaced

3. globus.cxx, proofd.cxx
   force null termination of std::string's after string::insert

   I have seen the problem with gcc2.96 (also a guy that contacted
   me saw the same): the new length is ok, but the newly allocate
   memory is not reset; gcc2.95 should also have the problem, at least
   looking at the gcc code, while for 3.x the STL implementation
   seems completely re-written.

Revision 9377 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Fri Jul 2 18:36:57 2004 UTC (10 years, 6 months ago) by rdm
Original Path: trunk/net/src/TNetFile.cxx
File length: 26780 byte(s)
Diff to previous 9200
From Gerri:
Patch to support 'system' functionality via the rootd daemon, so one
can get file stat and access info and directory browsing via rootd.

- TNetFile.h, .cxx
  New class TNetSystem inheriting from TSystem.

- net/inc/LinkDef.h
  Added #pragma for TNetSystem

- TFTP.h, .cxx
  New methods AccessPathName, GetPathInfo, GetDirEntry,
  OpenDirectory, FreeDirectory

- TSystem.h, .cxx
  New method ConsistentWith to allow different matching
  criteria in the search for existing helpers (method
  FindHelper)

- rootd.cxx
  New functions RootdAccess, RootdFreeDir, RootdGetDirEntry,
  RootdOpenDir

- MessageTypes.h
  New messages kROOTD_OPENDIR, kROOTD_FREEDIR, kROOTD_DIRENTRY,
  kROOTD_ACCESS

Revision 9200 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon Jun 14 22:58:21 2004 UTC (10 years, 7 months ago) by rdm
Original Path: trunk/net/src/TNetFile.cxx
File length: 19529 byte(s)
Diff to previous 9182
close socket in Close() and not in dtor. This allows proper behaviour when
Close() is called by itself (and not via the dtor). Problem reported by
Burt Holzman.

Revision 9182 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Sun Jun 13 16:26:36 2004 UTC (10 years, 7 months ago) by rdm
Original Path: trunk/net/src/TNetFile.cxx
File length: 19528 byte(s)
Diff to previous 9020
From Maarten and Kristjan Gulbrandsen:
PROOF and file I/O performance monitoring framework. The TVirtualPerfStats
abstract class allows adding monitoring events in base classes (TFile and
TNetfile). The performance monitoring info allows detailed study of PROOF
performance (which files accessed by which slaves, latency, read/write times,
packet size, etc.). The result is send back to the client in the form of a
memory based TTree.

Remove TProofStats.h and TProofStats.cxx, .d, .o from proof/inc and src.

Revision 9020 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed May 26 10:34:04 2004 UTC (10 years, 8 months ago) by rdm
Original Path: trunk/net/src/TNetFile.cxx
File length: 19298 byte(s)
Diff to previous 8808
set also SetBit(kWriteError) in case WriteBuffer() fails. Other remote
I/O classes go via TFile::WriteBuffer() are therefore ok.

Revision 8808 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu May 6 16:57:39 2004 UTC (10 years, 8 months ago) by rdm
Original Path: trunk/net/src/TNetFile.cxx
File length: 19187 byte(s)
Diff to previous 8239
From Gerri:
after CreateAuthSocket() sockets were only checked for validity,
and not for for authentication as it should.

Revision 8239 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu Feb 19 00:11:19 2004 UTC (10 years, 11 months ago) by rdm
Original Path: trunk/net/src/TNetFile.cxx
File length: 19178 byte(s)
Diff to previous 7944
Big authentication patch by Gerri:
General purpose:
Add support for 'authenticated' sockets on client side
and prepare for support of server authenticated sockets.

Main changes:

o TSocket, TPsocket:
  Added support of 'authenticated' sockets: authentication
  is delegated to TSocket by calling a static method
  CreateAuthSocket() returning a TSocket*.
  TSocket is now the only class calling TAuthenticate.

o TFTP, TNetFile, TSlave:
  modified to cope with new socket authentication scheme.

o TAuthDetails replaced by TSecContext containing:
  - local authentication info
  - expiration time
  - pointer to a security context for the method (if any)
  - information for cleanup (via TSecContextCleanup)

o A list of valid TSecContext has been added to TROOT,
  accessible via gROOT->GetListOfSecContexts().

o THostAuth rewritten using arrays to avoid multiple use
  of 'new'; functionality extended by the addition of
  several new methods.

o TAuthenticate:
  - Loading of information from .rootauthrc has been optimized;
    this allowed to simplify method signatures and drop several
    methods. Also collection and transmission of authentication
    information from TSlave to TProofServ gets simplified by the
    new scheme.
  - Added support for server dependent directives in .rootauthrc
  - Added check for changes in .rootauthrc each time a new
    TAuthenticate is instantiated, so that changes in the file
    are picked-up interactively.
  - Checking for an existing TSecContext (previously TAuthDetails)
    has been improved
  - Improved diagnostics for SshAuth
  - Enlarged support for authentication method indication in protocol:
       UsrPwd: rootup/proofup
          SRP: roots/proofs           (already supported)
         Krb5: rootk/proofk           (already supported)
       Globus: rootg/proofg
          SSH: rootsh/proofsh
       UigGid: rootug/proofug

o GlobusAuth.cxx, Krb5Auth.cxx, SRPAuth.cxx
  - Adapted to new class TSecContext
  - Added support for improved search for reusable TSecContext
  - Drop globals used to store established security contexts
    (saved in TSecContext) and related methods

o Automatic creation of <RootDir>/etc/system.rootauthrc from
  compilation flags; this has priority on old envs
  'Rootd.Authentication' and 'Proofd.Authentication' and is
  superseded by $HOME/.rootauthrc

o Automatic creation of <RootDir>/etc/system.authdaemonrc from
  compilation flags; this is superseded by $HOME/.rootauthrc

o rpdutils:
  - several almost identical methods moved in from rootd/proofd
  - several new methods to simplify manipulation of the
    authentication tab file
  - moved (and improved) check for running of sshd in RpdSshAuth,
    performed only in case of failure (to avoid spurious messages
    printed by sshd in /var/log/messages)

o proofd.cxx, rootd.cxx
  - increased protocol version
  - all initialization stuff (included authentication and
    login) done via RpdInitSession
  - postpone opening of parallels sockets after authentication
    (to solve problem of Kerberos/Globus authentication with
    parallel sockets)(rootd)
  - Fixed problem with kerberos and globus authentication in rootd
    with parallel sockets.

Revision 7944 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon Jan 19 18:31:13 2004 UTC (11 years ago) by rdm
Original Path: trunk/net/src/TNetFile.cxx
File length: 20587 byte(s)
Diff to previous 7810
support large files (>2GB) also in TNetFile/TFTP and rootd.

Revision 7810 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue Dec 30 13:16:51 2003 UTC (11 years ago) by brun
Original Path: trunk/net/src/TNetFile.cxx
File length: 20600 byte(s)
Diff to previous 7711
Mega patch to add support for large files (bigger than 2 GBytes)
----------------------------------------------------------------

  ==========>NEW VERSION 4.00/00 <===========

Because this new version has a considerable number of changes,
and new important additions by Philippe are scheduled for the coming days
we are starting a new major version 4.
  -Support for large files
  -Automatic schema evolution for foreign classes
  -New data type Double32_t

Large files are currently tested only under Linux with gcc3.2.
Support for other systems will be gradually added in the coming days.
By default under Linux, files are created with the option LARGEFILE.
Note that when creating a Tree, the default maximum size for a Tree
is set to 1.9 GBytes. You can change this default value by calling
  TTree::SetMaxTreeSize(Long64_t maxsize)

The implementation of this new feature has required changes in many places.
The files produced by this new version can still be read by old ROOT versions
if their size if smaller than 2 GBytes. And obviously, the new version
can digest old ROOT files.

WARNING: note the following backward incompatibility:
 -TSystem::GetPathInfo has a new signature: (also TUnixSystem, TWinNTSystem, etc)
  old: GetPathInfo(const char *path, Long_t *id, Long_t *size, Long_t *flags, Long_t *modtime);
  new: GetPathInfo(const char *path, Long_t *id, Long64_t *size, Long_t *flags, Long_t *modtime);

 -TFile::SysSeek and TFile::SysStat have a new signature (also TNetFile, TWebFile, etc)
  old:  Int_t    SysSeek(Int_t fd, Long_t offset, Int_t whence);
        Int_t    SysStat(Int_t fd, Long_t *id, Long_t *size, Long_t *flags, Long_t *modtime);
  new:  Long64_t SysSeek(Int_t fd, Long64_t offset, Int_t whence);
        Int_t    SysStat(Int_t fd, Long_t *id, Long64_t *size, Long_t *flags, Long_t *modtime);

 -TTree::SetMaxTreeSize has a new signature:
  old:  void TTree::SetMaxTreeSize(Int_t maxsize)
  new:  void TTree::SetMaxTreeSize(Long64_t maxsize)

  All references to Seek_t have been replaced by Long64_t.

Revision 7711 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed Dec 10 11:03:40 2003 UTC (11 years, 1 month ago) by rdm
Original Path: trunk/net/src/TNetFile.cxx
File length: 20591 byte(s)
Diff to previous 7672
fix some error messages.

Revision 7672 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Fri Nov 28 18:01:41 2003 UTC (11 years, 1 month ago) by rdm
Original Path: trunk/net/src/TNetFile.cxx
File length: 20570 byte(s)
Diff to previous 7656
correct Error and Info messages in Create().

Revision 7656 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed Nov 26 10:33:08 2003 UTC (11 years, 2 months ago) by rdm
Original Path: trunk/net/src/TNetFile.cxx
File length: 20586 byte(s)
Diff to previous 7534
From Gerri:
- remove globals in Krb5Auth, SRPAuth and GlobusAuth
- error printing in case of failure in TAuthenticate
  (print a list of failed messages only if unsuccessful
  in the end)
- fix a problem with globus credential transmission when
  running as non-root
- a couple of protections in TSlave related to SRP
- a few fixes to avoid some spurious error messages
  printed by proofd

Revision 7534 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Fri Nov 7 03:29:42 2003 UTC (11 years, 2 months ago) by rdm
Original Path: trunk/net/src/TNetFile.cxx
File length: 20625 byte(s)
Diff to previous 7456
From Gerri:
Index: README/README.AUTH
 o Update explaining tutorial use

Index: base/src/TFile.cxx
 o ::Open(): call TNetFile also if same host but different user
   (to access files protected by password)

Index: globusauth/src/GlobusAuth.cxx
 o Aestethic changes (shortening of a few lines)

Index: krb5auth/src/Krb5Auth.cxx
 o Simplify two debug printouts
 o Change debug print to stderr in Info(...; add gDebug control.

Index: net/inc/THostAuth.h
 o Modify default ctor
 o Add method HasMethod to test method availability

Index: net/src/TAuthenticate.cxx
 o make sure that if fgUser (and nothing else) is set, this is
   the default user name
 o Make sure that requiring roots/rootk uses correctly details
   found for those methods in .rootauthrc
 o Fix return of GetPromptUser()
 o Fix problem with wild cards
 o Add check for wildcard host names in method GetHostAuth
 o Remove debug printout in method ReadAuthRc

Index: net/src/THostAuth.cxx
 o Modify default ctor
 o Add method HaveMethod to test method availability
 o Aestethic changes (shortening of a few lines)

Index: net/src/TNetFile.cxx
 o Remove precompiler unused #if's in method ConnectServer

Index: proof/inc/TProofServ.h
 o Remove method ReadProofAuth, add method RecvHostAuth
   (To receive directly the authentication info in ProofServ
   instead of reading it from temporary files
   /usr/tmp/proofserv.<id>)

Index: proof/src/TProofServ.cxx
 o All mods needed to remove method ReadProofAuth and add
   method RecvHostAuth (see above).
   Modified methods: Setup, CollectAuthInfo .
 o Fix bug in CollectAuthInfo switching ReUse off by default
   for method UsrPwd
 o Removing automatic choice of UidGid for local slaves
 o Setting order of default UidGid authentication to last
 o Aestethic changes in CheckAuth

Index: proof/src/TSlave.cxx
 o transmit passwd for UsrPwd and SRP authentication also to slaves
 o All mods needed to send auth info to ProofServ instead of
   proofd (see above)

Index: proofd/src/proofd.cxx
 o Fix compiling problem with namespaces for Kerberos
 o Remove redundant 'access' calls
 o Authenticate: do not recive auth info (done in ProofServ)
 o ProofExec: send TmpDir to proofserv (for key location)
 o Define gSystemdaemonc as $ROOTETCDIR/system.rootdaemonrc

Index: rootd/src/rootd.cxx
 o Define gSystemdaemonc as $ROOTETCDIR/system.rootdaemonrc

Index: rpdutils/inc/rpdp.h
 o Rename gAuthAllow as gSystemDaemonRc
 o Rename kDaemonAccess as kDaemonRc

Index: rpdutils/src/rpdutils.cxx
 o Fix compiling problem with namespaces for Kerberos
 o Define kDaemonRc as .rootdaemonrc (it was daemon.access)
 o Add support for $HOME/.rootdaemonrc
 o Add support for daemon dependent access rules
 o Aestethic changes in CheckAuth (drop commented lines)

Index: srputils/src/SRPAuth.cxx
 o set static flags only when authentication is successful

Index: tutorials/TestAuth.C
 o Test using TFTP instead of TNetFile (faster and runs also
   with local host fqdn)
 o Add test for kerberos

Revision 7456 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed Oct 22 18:48:36 2003 UTC (11 years, 3 months ago) by rdm
Original Path: trunk/net/src/TNetFile.cxx
File length: 21160 byte(s)
Diff to previous 7310
From Gerri:
Patched files:

configure
 o improved detection of patch details for globus

README/README.GLOBUS
 o updated

etc/hostcert.conf
 o add example for non-root runs

globusauth/src/GlobusAuth.cxx
 o remove redundant 'access' calls

net/src/TAuthenticate.cxx
 o fix return value in method GetPromptUser

proofd/src/proofd.cxx
 o remove redundant 'access' calls

rpdutils/inc/rpdp.h
 o add new includes file depending on Globus GTK version
 o add prototype for new function GblsToolCheckProxy

rpdutils/src/globus.cxx
 o fix a few typos in debug messages
 o add new function GblsToolCheckProxy for checking user
   proxies when running as non-root
 o remove redundant 'access' calls

rpdutils/src/rpdutils.cxx
 o remove redundant 'access' calls

Revision 7310 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Sun Sep 21 21:38:31 2003 UTC (11 years, 4 months ago) by rdm
Original Path: trunk/net/src/TNetFile.cxx
File length: 21011 byte(s)
Diff to previous 7226
New TCastorFile: a TCastorFile is like a normal TNetFile except that it
obtains the remote node (disk server) via the CASTOR API, once the
disk server and the local file path are determined, the file will be
accessed via the rootd daemon. File names have to be specified like:
    castor:/castor/cern.ch/user/r/rdm/bla.root
The patch level of libshift should be at least 1.5.x (which is the one
installed on all CERN machines in /usr/local).
The CASTOR HSM interface code is provided by Jean-Damien Durand of the
CASTOR team.

Revision 7226 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Sun Sep 7 18:25:47 2003 UTC (11 years, 4 months ago) by rdm
Original Path: trunk/net/src/TNetFile.cxx
File length: 20877 byte(s)
Diff to previous 7175
From Gerri:
  - configure         Maarten's comments + fix for some SRP libraries
                      not being found

 - globusauth/Module.mk
                      Maarten's comments

 - net/inc/TAuthenticate.h
   net/src/TAuthenticate.cxx
   net/src/TAuthDetails.cxx
   net/src/THostAuth.cxx
   net/src/TNetFile.cxx
   proof/src/TProof.cxx
   proof/src/TSlave.cxx
                      Unified AuthMeth[kMAXSEC] (your comments ...)
                      + small consistency fixes (Host named checked
                      as FQDN everywhere ...)

 - proofd/src/proofd.cxx
   rootd/src/rootd.cxx
   rpdutils/inc/rpdp.h
   rpdutils/src/rpdutils.cxx
                      Unified AuthMeth[kMAXSEC]
                      + gShmIdCred fix
Fons:
 - TAuthenticate: simplified way to find index of auth method.

Revision 7175 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Fri Aug 29 10:41:28 2003 UTC (11 years, 4 months ago) by rdm
Original Path: trunk/net/src/TNetFile.cxx
File length: 20926 byte(s)
Diff to previous 7147
modified files, part of the authentication and daemon changes by Gerri. This
new authentication scheme supports, the following methods: user/passwd
(but save not clear passwd over wire), ssh, krb5, srp, globus and gui/uid
(like RFIO uses). Everything is documents here:
http://root.cern.ch/root/Auth.html.

Revision 7147 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Sat Aug 23 00:08:13 2003 UTC (11 years, 5 months ago) by rdm
Original Path: trunk/net/src/TNetFile.cxx
File length: 19659 byte(s)
Diff to previous 7138
revert most cast issues reported by buggy gcc 3.4 snapshot of this week.
Checked with gcc 3.4 from cvs of today which does not report any
problems anymore.

Revision 7138 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Fri Aug 22 12:47:21 2003 UTC (11 years, 5 months ago) by brun
Original Path: trunk/net/src/TNetFile.cxx
File length: 19665 byte(s)
Diff to previous 6533
Fix to avoid warnings with gcc3.4 when calling TEnv::GetValue.

Revision 6533 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon May 5 09:36:27 2003 UTC (11 years, 8 months ago) by rdm
Original Path: trunk/net/src/TNetFile.cxx
File length: 19658 byte(s)
Diff to previous 6059
fix in offset handling in case of cache usage. Use Seek() now instead
of directly updating fOffset, Seek() takes care of reseting the real file
offset pointer if needed.

Revision 6059 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed Feb 5 15:11:12 2003 UTC (11 years, 11 months ago) by rdm
Original Path: trunk/net/src/TNetFile.cxx
File length: 19666 byte(s)
Diff to previous 5929
fix a problem with "recreate" and "update" modes. If the recreate or update
resulted in the creation of a new file an attempt to read the new file was
made.

Revision 5929 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Fri Jan 17 10:35:39 2003 UTC (12 years ago) by rdm
Original Path: trunk/net/src/TNetFile.cxx
File length: 19390 byte(s)
Diff to previous 5783
big bug in TNetFile, due to mistake in argument parsing could not create
new files via rootd anymore. Reported by Gerri Ganis.

Revision 5783 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue Dec 10 12:11:31 2002 UTC (12 years, 1 month ago) by rdm
Original Path: trunk/net/src/TNetFile.cxx
File length: 19377 byte(s)
Diff to previous 5776
correct comments in ReOpen() to be more clear about return values.

Revision 5776 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue Dec 10 02:19:46 2002 UTC (12 years, 1 month ago) by rdm
Original Path: trunk/net/src/TNetFile.cxx
File length: 19281 byte(s)
Diff to previous 4210
new method TFile::ReOpen(Option_t *mode). Reopens a file with a different
access mode, like from READ to UPDATE or from NEW, CREATE, RECREATE, UPDATE
to READ. Thus the mode argument can be either "READ" or "UPDATE". The
method returns 0 in case of success, 1 in case mode did not change and
-1 in case of failure.

Revision 4210 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed Mar 20 18:54:57 2002 UTC (12 years, 10 months ago) by rdm
Original Path: trunk/net/src/TNetFile.cxx
File length: 17726 byte(s)
Diff to previous 3999
add cases for Kerberos5 authentication. In particular the default authentication
method for rootd and proofd can now be set in system.rootrc. The default is
clear text passwd, but SRP and Krb5 can be specified. The default is used when
"root:" or "proof:" appears in the url. The default can be overridden by
specifying explicitely "roots:" or "rootk:", idem for proof.

Revision 3999 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Fri Feb 15 14:07:14 2002 UTC (12 years, 11 months ago) by rdm
Original Path: trunk/net/src/TNetFile.cxx
File length: 17296 byte(s)
Diff to previous 3591
support new option "+read" in TNetFile. This will allow you to open a file
in read mode that has already been opened in write mode by another rootd.
By default rootd does not allow readers when a file is being written.
Usefull for spying in DAQ environments, but should be used carefully.

Revision 3591 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon Jan 7 09:08:41 2002 UTC (13 years ago) by rdm
Original Path: trunk/net/src/TNetFile.cxx
File length: 16547 byte(s)
Diff to previous 2773
typo in comment.

Revision 2773 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu Aug 30 16:37:50 2001 UTC (13 years, 4 months ago) by rdm
Original Path: trunk/net/src/TNetFile.cxx
File length: 16548 byte(s)
Diff to previous 2643
correction in comment describing how to authenticate.

Revision 2643 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue Aug 7 06:52:26 2001 UTC (13 years, 5 months ago) by brun
Original Path: trunk/net/src/TNetFile.cxx
File length: 16472 byte(s)
Diff to previous 2464
In case of an invalid URL, fSocket was not initialized to 0, giving a crash
when the TNetFile destructor was called

Revision 2464 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue Jun 26 14:24:24 2001 UTC (13 years, 7 months ago) by rdm
Original Path: trunk/net/src/TNetFile.cxx
File length: 16453 byte(s)
Diff to previous 1697
new method GetErrorCode(). Returns -1 in case the was no error and >=0 in
case there was an error in setting up the connection or during data transfer.
The error code matches the table gRootdErrStr[].

Revision 1697 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon Feb 26 02:48:21 2001 UTC (13 years, 11 months ago) by rdm
Original Path: trunk/net/src/TNetFile.cxx
File length: 16375 byte(s)
Diff to previous 1679
small optimization.

Revision 1679 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu Feb 22 15:18:56 2001 UTC (13 years, 11 months ago) by rdm
Original Path: trunk/net/src/TNetFile.cxx
File length: 16400 byte(s)
Diff to previous 1663
offsets are passed in messages as long and are cast to off_t (which can
be int or long depending on the flag __USE_LARGEFILE64.

Revision 1663 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu Feb 22 09:44:41 2001 UTC (13 years, 11 months ago) by rdm
Original Path: trunk/net/src/TNetFile.cxx
File length: 16382 byte(s)
Diff to previous 1602
change kRootdErrStr to gRootdErrStr.

Revision 1602 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue Feb 13 17:20:12 2001 UTC (13 years, 11 months ago) by rdm
Original Path: trunk/net/src/TNetFile.cxx
File length: 16344 byte(s)
Diff to previous 1560
typo in comment.

Revision 1560 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu Feb 8 16:10:34 2001 UTC (13 years, 11 months ago) by rdm
Original Path: trunk/net/src/TNetFile.cxx
File length: 16343 byte(s)
Diff to previous 1540
make sure fOffset is reset after using reading from cache.

Revision 1540 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed Feb 7 16:08:57 2001 UTC (13 years, 11 months ago) by rdm
Original Path: trunk/net/src/TNetFile.cxx
File length: 16002 byte(s)
Diff to previous 1535
add explanation on how to use parallel socket option.

Revision 1535 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue Feb 6 19:14:29 2001 UTC (13 years, 11 months ago) by rdm
Original Path: trunk/net/src/TNetFile.cxx
File length: 15679 byte(s)
Diff to previous 1473
supports parallel socket connection to rootd. Use argument netopt<0 to
specify the number of parallel sockets to rootd. This new version can
only talk to the new version of rootd.

Revision 1473 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Fri Jan 26 16:39:36 2001 UTC (14 years ago) by rdm
Original Path: trunk/net/src/TNetFile.cxx
File length: 15180 byte(s)
Diff to previous 1399
added netopt option to ctor. Use this option for specification of the
tcp window size (see http://www.psc.edu/networking/perf_tune.html).

Revision 1399 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue Jan 16 17:22:32 2001 UTC (14 years ago) by rdm
Original Path: trunk/net/src/TNetFile.cxx
File length: 14913 byte(s)
Diff to previous 1372
moved basic cache code in TFile (but don't use it in TFile itself). Derived
TFile classes (TNetFile and TRFIOFile) use common cache code.

Revision 1372 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon Jan 15 01:26:59 2001 UTC (14 years ago) by rdm
Original Path: trunk/net/src/TNetFile.cxx
File length: 15467 byte(s)
Diff to previous 1325
use TCache to optimze network I/O. Currently it is not activated by default.
One has to call TNetFile::UseCache() to activate it. Default might change
in the future.

Revision 1325 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Sun Jan 7 15:30:11 2001 UTC (14 years ago) by rdm
Original Path: trunk/net/src/TNetFile.cxx
File length: 14449 byte(s)
Diff to previous 1245
new protected method SysStat() which returns information as provided by
TSystem::GetPathInfo(). Needed to implement Recover() for TNetFile and
TRFIOFile.

Revision 1245 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue Dec 19 14:33:22 2000 UTC (14 years, 1 month ago) by rdm
Original Path: trunk/net/src/TNetFile.cxx
File length: 13829 byte(s)
Diff to previous 1205
use the improved TAuthenticate interface.

Revision 1205 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed Dec 13 15:13:57 2000 UTC (14 years, 1 month ago) by brun
Original Path: trunk/net/src/TNetFile.cxx
File length: 13704 byte(s)
Diff to previous 1105
      W A R N I N G   !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
     ==================================================================
A very long list of changes in this pre-release of version 3.00.
We have modified the signature of many functions (in particular TObject)
to introduce more constness in the system.
You must change your code if your class derives from TObject and uses
one of the modified functions such as ls, Print, Compare, Hash, etc.
The modified functions in TObject have the following signature:
   virtual TObject    *Clone() const;
   virtual Int_t       Compare(const TObject *obj) const;
   virtual void        Delete(Option_t *option=""); // *MENU*
   virtual void        DrawClass() const; // *MENU*
   virtual void        DrawClone(Option_t *option="") const; // *MENU*
   virtual void        Dump() const; // *MENU*
   virtual TObject    *FindObject(const TObject *obj) const;
   virtual char       *GetObjectInfo(Int_t px, Int_t py) const;
   virtual ULong_t     Hash() const;
   virtual void        Inspect() const; // *MENU*
   virtual Bool_t      IsEqual(const TObject *obj) const;
   virtual void        ls(Option_t *option="") const;
   virtual void        Print(Option_t *option="") const;

A similar operation has been done with classes such as TH1, TVirtualPad,
TTree, etc.

Revision 1105 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Sat Dec 2 15:50:28 2000 UTC (14 years, 1 month ago) by rdm
Original Path: trunk/net/src/TNetFile.cxx
File length: 13681 byte(s)
Diff to previous 1071
fixed error message.

Revision 1071 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon Nov 27 10:47:26 2000 UTC (14 years, 1 month ago) by rdm
Original Path: trunk/net/src/TNetFile.cxx
File length: 13691 byte(s)
Diff to previous 584
moved all authentication code into new class TAuthenticate.

Revision 584 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed Sep 6 14:10:17 2000 UTC (14 years, 4 months ago) by rdm
Original Path: trunk/net/src/TNetFile.cxx
File length: 20135 byte(s)
Diff to previous 409
added HTML tags to class description.

Revision 409 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Sat Jul 29 11:04:37 2000 UTC (14 years, 5 months ago) by rdm
Original Path: trunk/net/src/TNetFile.cxx
File length: 19985 byte(s)
Diff to previous 398
to use secure password authentication you now have to specify "roots" as
protocol. Using "root" will use the standard method. Also updated the
web page http://root.cern.ch/root/NetFile.html to clearly describe the
different authentication methods.

Revision 398 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon Jul 24 18:21:50 2000 UTC (14 years, 6 months ago) by rdm
Original Path: trunk/net/src/TNetFile.cxx
File length: 18920 byte(s)
Diff to previous 103
also implemented changed "update" option semantics in TNetFile, TRFIOFile,
and TMapFile.

Revision 103 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Sun Jun 11 12:08:30 2000 UTC (14 years, 7 months ago) by rdm
Original Path: trunk/net/src/TNetFile.cxx
File length: 18842 byte(s)
Diff to previous 55
use for rootd now the official port number 1094

Revision 55 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue May 30 17:17:10 2000 UTC (14 years, 7 months ago) by rdm
Original Path: trunk/net/src/TNetFile.cxx
File length: 18846 byte(s)
Diff to previous 3
mention that TFile::Open() is preferred way of opening files

Revision 3 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue May 16 17:00:58 2000 UTC (14 years, 8 months ago) by rdm
Original Path: trunk/net/src/TNetFile.cxx
File length: 18718 byte(s)
Copied from: branches/rdm/net/src/TNetFile.cxx revision 2
Diff to previous 2
This commit was generated by cvs2svn to compensate for changes in r2,
which included commits to RCS files with non-trunk default branches.

Revision 2 - (view) (download) (as text) (annotate) - [select for diffs]
Added Tue May 16 17:00:58 2000 UTC (14 years, 8 months ago) by rdm
Original Path: branches/rdm/net/src/TNetFile.cxx
File length: 18718 byte(s)
Initial import of ROOT into CVS

This form allows you to request diffs between any two revisions of this file. For each of the two "sides" of the diff, enter a numeric revision.

  Diffs between and
  Type of Diff should be a

Sort log by:

Subversion Admin
ViewVC Help
Powered by ViewVC 1.0.9