Hello
Within perl, using the XrdClientAdmin perl lib, the stat of a file is
obtained with:
my ($id,$modtime,$sizeXrd,$flags) = XrdClientAdmin::XrdStat($testFile);
print "stat: id= $id mtime= $modtime size= $sizeXrd flags= $flags
$testFile\n";
The output is:
stat: id= 1 mtime= 2147483647 size= 80871 flags= 0
/prod/WRTest/testOut2/B0DKNeut.01.root
The mtime is 2147483647, which is not only far in the future, but I get
this number for every file that is stat'ed. 2147483647 corresponds
to 0x7fffffff in HEX.
In the xrootd protocol documentation (3.22 kXR_stat Request) it says that
the stat command returns for each file:
info: id size flags modtime\0
but the perl stat command returns: id mtime size flags
Does the perl command changes the order? Is the xrootd documentation
correct?
Cheers,
Wilko
|