49{
51 Eroute.
Say(
"++++++ OssCsi plugin initialization started.");
52
53 std::stringstream ss(parms ? parms : "");
54 std::string item;
55
56 while(std::getline(ss, item, ' '))
57 {
58 std::string value;
59 const auto idx = item.find('=');
60 if (idx != std::string::npos)
61 {
62 value = item.substr(idx+1, std::string::npos);
63 item.erase(idx, std::string::npos);
64 }
65 if (item == "nofill")
66 {
67 fillFileHole_ = false;
68 }
69 else if (item == "space" && !value.empty())
70 {
71 xrdtSpaceName_ = value;
72 }
73 else if (item == "nomissing")
74 {
75 allowMissingTags_ = false;
76 }
77 else if (item == "prefix")
78 {
79 if (
tagParam_.SetPrefix(Eroute, value)) NoGo = 1;
80 }
81 else if (item == "nopgextend")
82 {
83 disablePgExtend_ = true;
84 }
85 else if (item == "noloosewrites")
86 {
87 disableLooseWrite_ = true;
88 }
89 }
90
91 if (NoGo) return NoGo;
92
95 if (readConfig(Eroute, config_fn)) return 1;
96
97 Eroute.
Say(
" compute file holes : ", fillFileHole_ ?
"yes" :
"no");
98 Eroute.
Say(
" space name : ", xrdtSpaceName_.c_str());
99 Eroute.
Say(
" allow files without CRCs: ", allowMissingTags_ ?
"yes" :
"no");
100 Eroute.
Say(
" pgWrite can extend : ", disablePgExtend_ ?
"no" :
"yes");
101 Eroute.
Say(
" loose writes : ", disableLooseWrite_ ?
"no" :
"yes");
102 Eroute.
Say(
" trace level : ", std::to_string((
long long int)
OssCsiTrace.
What).c_str());
104
105 Eroute.
Say(
"++++++ OssCsi plugin initialization completed.");
106
107
109}
void Say(const char *text1, const char *text2=0, const char *txt3=0, const char *text4=0, const char *text5=0, const char *txt6=0)