Log of /trunk/io/dcache/inc/TDCacheFile.h
Parent Directory
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: 3906 byte(s)
Diff to
previous 31099
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
19269 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Modified
Fri Jul 6 10:39:19 2007 UTC (7 years, 6 months ago) by
pcanal
Original Path:
trunk/dcache/inc/TDCacheFile.h
File length: 3882 byte(s)
Diff to
previous 10921
Work around the missing 'vector read' in the DCache protocol by requesting
all the needed data in a single sequential read request (aka reading too
much data but reducing the number of messages). This improves performances
by a factor 20 to 50 depending on network topology.
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/dcache/inc/TDCacheFile.h
File length: 3796 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
9508 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Modified
Tue Jul 13 11:33:55 2004 UTC (10 years, 6 months ago) by
rdm
Original Path:
trunk/dcache/inc/TDCacheFile.h
File length: 3909 byte(s)
Diff to
previous 8743
From Tigran Mkrtchyan:
finally, we have implemented dc_opendir/dc_readdir and dc_closedir
functions. The new patch allow to use regular expressions in file names
with url:
TChain hat("HAT");
hat.Add("dcap://d2cachedoor.desy.de:24125/pnfs/desy.de/h1/data/oo-2.6/04/hat.2.6.3.10dst1.c04013*.root");
hat.Draw("LPol");
The patch created against ROOT cvs head at 29.06.2004. User need a
dcap library version 1.2.30 to get it running.
Revision
8743 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Modified
Thu Apr 29 17:05:39 2004 UTC (10 years, 8 months ago) by
brun
Original Path:
trunk/dcache/inc/TDCacheFile.h
File length: 3897 byte(s)
Diff to
previous 7810
From Bill Tanenbaum + Philippe
There were a couple of issues in TDCacheFile.
The number of call to dc_stat in case of opening a file in read-only
mode was 6. This patchs reduce it to 1 by checking existing and read permission
only in case of failure and by caching the size of the file.
The testing of the file in the update/create mode was incorrect in some circuntances
(this is due to gSystem->AccessPathName requiring an uri to proper work).
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/dcache/inc/TDCacheFile.h
File length: 3687 byte(s)
Diff to
previous 7680
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
4233 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Modified
Mon Mar 25 16:43:16 2002 UTC (12 years, 10 months ago) by
rdm
Original Path:
trunk/dcache/inc/TDCacheFile.h
File length: 2831 byte(s)
Diff to
previous 3795
New version of dCache interface by Grzegorz Mazur. The important changes
in this version are:
- contents of dcap.h is no longer included int the source, path to
dcap.h can be specified by --with-dcap-incdir during configuration,
- catch up with some minor modifications in libdcap API,
- improved error handling,
- quick'n'dirty but functional support for accessing files without
PNFS (dcap://dcachedoor...),
- preliminary support for (not yet functional in libdcap) SSL support.
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.