Skip to content

Commit

Permalink
EOS grpc fixes (#3420)
Browse files Browse the repository at this point in the history
* return inode in fileinfo

* fix log

* fix eos grpc parsing

* stat as a root

* workaround for inode (revert me)

* set parent id in eosfs

* Revert "stat as a root"

This reverts commit 81ce7b3.

* set storage id to parent id in storage provider

* fix file path

* clean path returned by eos

* set xattrs for lock as root

* fix key when setting attribute

* stat as root

* Revert "stat as root"

This reverts commit e865e6e.

* trim prefix for user attrs

* do not filter sys attrs

* fix add acl

* fix initiate file upload reference resolution

* fix initiate file upload

* Revert "fix initiate file upload"

This reverts commit 265d091.

* set sys acl as root

* workaround for adding acl

* fix unset attr

* unset lock as root

* Avoid crash when getting checksum in a stat request

* fix

* add changelog

* fix linter

* fix license

Co-authored-by: Fabrizio Furano <furano@cern.ch>
  • Loading branch information
gmgigi96 and ffurano authored Nov 29, 2022
1 parent af8fe04 commit 48a2870
Show file tree
Hide file tree
Showing 8 changed files with 1,010 additions and 970 deletions.
6 changes: 6 additions & 0 deletions changelog/unreleased/eos-grpc-fixes.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
Bugfix: EOS grpc fixes

The shares and the applications were not working
with the EOS grpc storage driver. This fixes both.

https://github.com/cs3org/reva/pull/3420
3 changes: 3 additions & 0 deletions internal/grpc/services/storageprovider/storageprovider.go
Original file line number Diff line number Diff line change
Expand Up @@ -1559,6 +1559,9 @@ func (s *service) wrap(ctx context.Context, ri *provider.ResourceInfo, prefixMou
// For wrapper drivers, the storage ID might already be set. In that case, skip setting it
ri.Id.StorageId = s.mountID
}
if ri.ParentId != nil && ri.ParentId.StorageId == "" {
ri.ParentId.StorageId = s.mountID
}
if prefixMountpoint {
// TODO move mount path prefixing to the gateway
ri.Path = path.Join(s.mountPath, ri.Path)
Expand Down
1,346 changes: 684 additions & 662 deletions pkg/eosclient/eosgrpc/eos_grpc/Rpc.pb.go

Large diffs are not rendered by default.

Loading

0 comments on commit 48a2870

Please sign in to comment.