Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use defer to invalidate ID Cache #3910

Closed
wants to merge 1,050 commits into from

Conversation

kobergj
Copy link
Contributor

@kobergj kobergj commented May 22, 2023

SwikritiT and others added 30 commits February 10, 2023 09:32
…sts-20230209-edge

[tests-only][full-ci]Bump ocis commit id for tests in edge
* add unique id to events

Signed-off-by: jkoberg <[email protected]>

* add ConsumeAll function

Signed-off-by: jkoberg <[email protected]>

* add helper to create natsstream from config

Signed-off-by: jkoberg <[email protected]>

---------

Signed-off-by: jkoberg <[email protected]>
* Support FreeBSD xattr naming

There is a slight compatibilty issue due to FreeBSD disallowing
usage of the `user.` prefix when it comes to xattr names.
Just for FreeBSD this patch removes that `user.` prefix (leaving
`ocis.`) which allows it to run on FreeBSD.

* Cleanup the FreeBSD xattr naming

* Comment for default xattr namespace as per Codacy static analysis

* chore: changelog update for freebsd-xattr-support

---------

Co-authored-by: Jur van den Berg <[email protected]>
* Bump ocis commit id to latest

* Fixed line numbers in expected failure

* Fixed ref-path of github from core to ocis
…cs3org#3649)

* Store node attributes in actual files instead of xattrs

* Use our xattrs instead of xattr everywhere. Fix tests.

* Cops the type attribute when copying attributes

* Use mtime of the childre dir when no tmtime is set

* Fix node.IsDir() logic

* Fix trash bin item types

* Fix part of the trashbin functionality

* Fix node id of recycle items

* Fix deleting references to subtrees that have been restored

* Fix cleaning up after restoring items from the trash bin

* Fix purging subdirectories of trash bin entries

* Hound fixes

* More linter fixes

* Use the node's GetTMTime() instead of reading it manually

* Do not change the mtime when setting attrs. xattrs don't do it either.

* Fix error message

* Store file metadata separately instead of moving the children elsewhere

Co-Authored-By: Jörn Friedrich Dreyer <[email protected]>

* Fix tests

* Filter meta files when listing revisions

* Fix tests

* Fix deep listing the recycle

* Fix reading items deeper in the trash

* Encode binary values

* Fall back to getting the node type by looking at the disk

* some xattr backend fixes

Signed-off-by: Jörn Friedrich Dreyer <[email protected]>

* make metadata backend configurable

Signed-off-by: Jörn Friedrich Dreyer <[email protected]>

* make linter happy

Signed-off-by: Jörn Friedrich Dreyer <[email protected]>

* add changelog

Signed-off-by: Jörn Friedrich Dreyer <[email protected]>

* add missing comments

Signed-off-by: Jörn Friedrich Dreyer <[email protected]>

* more linter fixes

Signed-off-by: Jörn Friedrich Dreyer <[email protected]>

* always initialize xattr backend to make tests pass

Signed-off-by: Jörn Friedrich Dreyer <[email protected]>

* Fix typo

* Improve error messages

* Use lockedfile package to access metadata files

* Cache file metadata

* Tidy go modules

* Do not ignore error when writing the cache

* use global var for regex

Signed-off-by: Jörn Friedrich Dreyer <[email protected]>

---------

Signed-off-by: Jörn Friedrich Dreyer <[email protected]>
Co-authored-by: Jörn Friedrich Dreyer <[email protected]>
* add a config options for a max quota

* support setting quota when creating a home space
…23-edge

[tests-only] Bump APITESTS_COMMITID
* Fix ini metadata backend unit tests

* Adapt changelog
When CreateStorageSpace is called without a quota but a max quota was set then the space can at most have max quota.
Signed-off-by: jkoberg <[email protected]>
kobergj and others added 23 commits May 16, 2023 11:05
…ect-spaces

Bring back public link sharing of project space roots
Signed-off-by: Christian Richter <[email protected]>
Signed-off-by: Christian Richter <[email protected]>
…xpiry-in-shares

Add missing expiry in shares
Signed-off-by: Jörn Friedrich Dreyer <[email protected]>
* Bump commit id for tests

* update expected to fail file
* clean idcache properly

Signed-off-by: jkoberg <[email protected]>

* use micro store instead of plain inmem

Signed-off-by: jkoberg <[email protected]>

---------

Signed-off-by: jkoberg <[email protected]>
@kobergj kobergj requested review from labkode, wkloucek, glpatcern, gmgigi96 and a team as code owners May 22, 2023 07:18
@kobergj
Copy link
Contributor Author

kobergj commented May 22, 2023

git is bad

@kobergj kobergj closed this May 22, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.