Skip to content

Commit 9423a36

Browse files
author
Fabrizio Furano
committed
eosfs: Expose the parms ReadUsesLocalTemp and WriteUsesLocalTemp
1 parent c0231a7 commit 9423a36

File tree

2 files changed

+21
-9
lines changed

2 files changed

+21
-9
lines changed

pkg/storage/utils/eosfs/config.go

+10
Original file line numberDiff line numberDiff line change
@@ -111,4 +111,14 @@ type Config struct {
111111
// URI of the EOS MGM grpc server
112112
// Default is empty
113113
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"`
114124
}

pkg/storage/utils/eosfs/eosfs.go

+11-9
Original file line numberDiff line numberDiff line change
@@ -145,15 +145,17 @@ func NewEOSFS(c *Config) (storage.FS, error) {
145145
var eosClient eosclient.EOSClient
146146
if c.UseGRPC {
147147
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,
157159
}
158160
eosClient = eosgrpc.New(eosClientOpts)
159161
} else {

0 commit comments

Comments
 (0)