File tree 2 files changed +21
-9
lines changed
2 files changed +21
-9
lines changed Original file line number Diff line number Diff line change @@ -111,4 +111,14 @@ type Config struct {
111
111
// URI of the EOS MGM grpc server
112
112
// Default is empty
113
113
GrpcURI string `mapstructure:"master_grpc_uri"`
114
+
115
+ // Normally the eosgrpc plugin streams data on the fly.
116
+ // Setting this to true will make reva use the temp cachedirectory
117
+ // as intermediate step for read operations
118
+ ReadUsesLocalTemp bool `mapstructure:"read_uses_local_temp"`
119
+
120
+ // Normally the eosgrpc plugin streams data on the fly.
121
+ // Setting this to true will make reva use the temp cachedirectory
122
+ // as intermediate step for write operations
123
+ WriteUsesLocalTemp bool `mapstructure:"write_uses_local_temp"`
114
124
}
Original file line number Diff line number Diff line change @@ -145,15 +145,17 @@ func NewEOSFS(c *Config) (storage.FS, error) {
145
145
var eosClient eosclient.EOSClient
146
146
if c .UseGRPC {
147
147
eosClientOpts := & eosgrpc.Options {
148
- XrdcopyBinary : c .XrdcopyBinary ,
149
- URL : c .MasterURL ,
150
- GrpcURI : c .GrpcURI ,
151
- CacheDirectory : c .CacheDirectory ,
152
- UseKeytab : c .UseKeytab ,
153
- Keytab : c .Keytab ,
154
- Authkey : c .GRPCAuthkey ,
155
- SecProtocol : c .SecProtocol ,
156
- VersionInvariant : c .VersionInvariant ,
148
+ XrdcopyBinary : c .XrdcopyBinary ,
149
+ URL : c .MasterURL ,
150
+ GrpcURI : c .GrpcURI ,
151
+ CacheDirectory : c .CacheDirectory ,
152
+ UseKeytab : c .UseKeytab ,
153
+ Keytab : c .Keytab ,
154
+ Authkey : c .GRPCAuthkey ,
155
+ SecProtocol : c .SecProtocol ,
156
+ VersionInvariant : c .VersionInvariant ,
157
+ ReadUsesLocalTemp : c .ReadUsesLocalTemp ,
158
+ WriteUsesLocalTemp : c .WriteUsesLocalTemp ,
157
159
}
158
160
eosClient = eosgrpc .New (eosClientOpts )
159
161
} else {
You can’t perform that action at this time.
0 commit comments