Skip to content

Make home folders movable without requiring rescans - #5591

Merged
butonic merged 4 commits into
masterfrom
home-storage
Oct 31, 2013
Merged

butonic merged 4 commits into
masterfrom
home-storage

Conversation

@icewind1991

Copy link
Copy Markdown
Contributor

This introduces a new Home storage backend which provides access to the users home directory without the storage id changing whenever the home folder changes for the user.

If no existing Local storage exists for the user's home this new backend is used

This makes it possible for the users home folder to be dynamic without forcing rescans while still being backwards compatible

cc @karlitschek @DeepDiver1975 @bantu

@ghost

ghost commented Oct 29, 2013

Copy link
Copy Markdown

@DeepDiver1975

Copy link
Copy Markdown
Contributor
HP Fatal error:  Call to a member function getHome() on a non-object in /var/lib/jenkins/jobs/pull-request-analyser/workspace/lib/private/files/storage/home.php on line 22
00:04:57.704 PHP Stack trace:
00:04:57.704 PHP   1. {main}() /usr/bin/phpunit:0
00:04:57.704 PHP   2. PHPUnit_TextUI_Command::main() /usr/bin/phpunit:46
00:04:57.704 PHP   3. PHPUnit_TextUI_Command->run() /usr/share/php/PHPUnit/TextUI/Command.php:129
00:04:57.704 PHP   4. PHPUnit_TextUI_TestRunner->doRun() /usr/share/php/PHPUnit/TextUI/Command.php:176
00:04:57.704 PHP   5. PHPUnit_Framework_TestSuite->run() /usr/share/php/PHPUnit/TextUI/TestRunner.php:349
00:04:57.704 PHP   6. PHPUnit_Framework_TestSuite->run() /usr/share/php/PHPUnit/Framework/TestSuite.php:705
00:04:57.704 PHP   7. PHPUnit_Framework_TestSuite->runTest() /usr/share/php/PHPUnit/Framework/TestSuite.php:745
00:04:57.704 PHP   8. PHPUnit_Framework_TestCase->run() /usr/share/php/PHPUnit/Framework/TestSuite.php:775
00:04:57.704 PHP   9. PHPUnit_Framework_TestResult->run() /usr/share/php/PHPUnit/Framework/TestCase.php:776
00:04:57.704 PHP  10. PHPUnit_Framework_TestCase->runBare() /usr/share/php/PHPUnit/Framework/TestResult.php:648
00:04:57.704 PHP  11. PHPUnit_Framework_TestCase->runTest() /usr/share/php/PHPUnit/Framework/TestCase.php:831
00:04:57.704 PHP  12. ReflectionMethod->invokeArgs() /usr/share/php/PHPUnit/Framework/TestCase.php:976
00:04:57.704 PHP  13. Test\Files\Filesystem->testHooks() /usr/share/php/PHPUnit/Framework/TestCase.php:976
00:04:57.704 PHP  14. OC\Files\View->mkdir() /var/lib/jenkins/jobs/pull-request-analyser/workspace/tests/lib/files/filesystem.php:93
00:04:57.704 PHP  15. OC\Files\View->basicOperation() /var/lib/jenkins/jobs/pull-request-analyser/workspace/lib/private/files/view.php:158
00:04:57.704 PHP  16. OC\Files\Filesystem::resolvePath() /var/lib/jenkins/jobs/pull-request-analyser/workspace/lib/private/files/view.php:675
00:04:57.704 PHP  17. OC\Files\Mount\Mount->getStorage() /var/lib/jenkins/jobs/pull-request-analyser/workspace/lib/private/files/filesystem.php:265
00:04:57.704 PHP  18. OC\Files\Mount\Mount->createStorage() /var/lib/jenkins/jobs/pull-request-analyser/workspace/lib/private/files/mount/mount.php:92
00:04:57.704 PHP  19. OC\Files\Storage\Loader->load() /var/lib/jenkins/jobs/pull-request-analyser/workspace/lib/private/files/mount/mount.php:76
00:04:57.704 PHP  20. OC\Files\Storage\Home->__construct() /var/lib/jenkins/jobs/pull-request-analyser/workspace/lib/private/files/storage/loader.php:29

@karlitschek

Copy link
Copy Markdown
Contributor

Thanks @icewind1991 Does this fix an existing bug? And if yes, which?

@DeepDiver1975

Copy link
Copy Markdown
Contributor

@karlitschek we have a regression in migration of the file cache from oc4.5 to oc5.0/oc6 - this has been requested by me and is highly required - @icewind1991 was faster in coming up with a solution than me filing the issue 😉 thx a lot

@DeepDiver1975

Copy link
Copy Markdown
Contributor

once we have this merged a backport to oc5 is required

@karlitschek

Copy link
Copy Markdown
Contributor

good to know. But we should still have the issue for reference.

@DeepDiver1975

Copy link
Copy Markdown
Contributor

fixes #5597

@DeepDiver1975

Copy link
Copy Markdown
Contributor

@karlitschek here we go

@VicDeo

VicDeo commented Oct 29, 2013

Copy link
Copy Markdown
Contributor

most likely fixes #5045 as well

@ghost

ghost commented Oct 29, 2013

Copy link
Copy Markdown

@icewind1991

Copy link
Copy Markdown
Contributor Author

Test Result (4 failures / +4)
Test\Preview::testIsTransparent.testIsTransparent with data set #0
Test\Preview::testIsTransparent.testIsTransparent with data set #0
Test\Preview::testIsTransparent.testIsTransparent with data set #0
Test\Preview::testIsTransparent.testIsTransparent with data set #0

No idea why this is failing

@bantu

bantu commented Oct 29, 2013

Copy link
Copy Markdown

These are very likely unrelated.

@DeepDiver1975

Copy link
Copy Markdown
Contributor

These are very likely unrelated.

yes - we have this in master as well - these unit tests have issue with the initialization of user and filesystem

@DeepDiver1975

Copy link
Copy Markdown
Contributor

tested 👍

@ghost

ghost commented Oct 30, 2013

Copy link
Copy Markdown

@butonic

butonic commented Oct 31, 2013

Copy link
Copy Markdown
Contributor

tested 👍

butonic added a commit that referenced this pull request Oct 31, 2013
Make home folders movable without requiring rescans
@butonic
butonic merged commit b4cdac0 into master Oct 31, 2013
@butonic
butonic deleted the home-storage branch October 31, 2013 17:20
@lock lock Bot locked as resolved and limited conversation to collaborators Aug 21, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants