Skip to content

Commit

Permalink
eosfs: Expose the parms ReadUsesLocalTemp and WriteUsesLocalTemp
Browse files Browse the repository at this point in the history
  • Loading branch information
Fabrizio Furano committed Mar 19, 2021
1 parent c0231a7 commit 9423a36
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 9 deletions.
10 changes: 10 additions & 0 deletions pkg/storage/utils/eosfs/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -111,4 +111,14 @@ type Config struct {
// URI of the EOS MGM grpc server
// Default is empty
GrpcURI string `mapstructure:"master_grpc_uri"`

// Normally the eosgrpc plugin streams data on the fly.
// Setting this to true will make reva use the temp cachedirectory
// as intermediate step for read operations
ReadUsesLocalTemp bool `mapstructure:"read_uses_local_temp"`

// Normally the eosgrpc plugin streams data on the fly.
// Setting this to true will make reva use the temp cachedirectory
// as intermediate step for write operations
WriteUsesLocalTemp bool `mapstructure:"write_uses_local_temp"`
}
20 changes: 11 additions & 9 deletions pkg/storage/utils/eosfs/eosfs.go
Original file line number Diff line number Diff line change
Expand Up @@ -145,15 +145,17 @@ func NewEOSFS(c *Config) (storage.FS, error) {
var eosClient eosclient.EOSClient
if c.UseGRPC {
eosClientOpts := &eosgrpc.Options{
XrdcopyBinary: c.XrdcopyBinary,
URL: c.MasterURL,
GrpcURI: c.GrpcURI,
CacheDirectory: c.CacheDirectory,
UseKeytab: c.UseKeytab,
Keytab: c.Keytab,
Authkey: c.GRPCAuthkey,
SecProtocol: c.SecProtocol,
VersionInvariant: c.VersionInvariant,
XrdcopyBinary: c.XrdcopyBinary,
URL: c.MasterURL,
GrpcURI: c.GrpcURI,
CacheDirectory: c.CacheDirectory,
UseKeytab: c.UseKeytab,
Keytab: c.Keytab,
Authkey: c.GRPCAuthkey,
SecProtocol: c.SecProtocol,
VersionInvariant: c.VersionInvariant,
ReadUsesLocalTemp: c.ReadUsesLocalTemp,
WriteUsesLocalTemp: c.WriteUsesLocalTemp,
}
eosClient = eosgrpc.New(eosClientOpts)
} else {
Expand Down

0 comments on commit 9423a36

Please sign in to comment.