-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
New SMB storage backend #10673
New SMB storage backend #10673
Conversation
Awesome work! I'll get testing this when I've got a proper setup again. How many issues will this close? 😆 |
@icewind1991 please rebase - will install libsmbclient for testing |
General information: linux packages are available here: http://software.opensuse.org/download.html?project=isv%3AownCloud%3Acommunity%3Atesting&package=php5-libsmbclient |
4cbd129
to
0a968c0
Compare
@DeepDiver1975 @PVince81 @Xenopathic please review |
Question: would that work on Windows as well ? I guess it would only if libsmbclient exists for Windows ? CC @MTRichards |
No this will not work on windows - windows has native support for accessing smb shares. But there are issue with connecting to the same share using mulitple credentials - this is not allowed on windows. |
@DeepDiver1975 @PVince81 please review |
Tested against my NAS 👍 |
Will run unit tests now ... |
|
Are the clocks on both machines the same? |
let me check ... also running unit tests against Windows 7 the next minutes ... |
LOL - the clock was horrible off 🙈 |
Against Windows 7:
|
Error 13 seems to be permissions denied (will add handling for it). Can you try running the tests from https://github.com/icewind1991/SMB |
Should be revived for 8.1 |
indeed |
Please rebase, if it makes sense at this point |
Testing both the libsmbclient and the smblcient implementations of the smb library |
How to do that? |
enabling disabling the libsmbclient extension |
I guess we should follow the mechanism in 3rdparty and remove the tests folder from icewind/smb and icewind/streams @icewind1991 or maybe even you don't package test within the composer package? |
come on @owncloud-bot retest this please |
a063a37
to
6477e39
Compare
rebased and tested against samba server running inside docker 👍 issues with windows are to be seen as local network/setup issues |
Refer to this link for build results (access rights to CI server needed): |
The inspection completed: 17 new issues, 12 updated code elements |
@PVince81 @MorrisJobke can this be merged? |
Yes. Tested 👍 |
Great job! @icewind1991 |
Please add as feature to https://github.com/owncloud/core/wiki/ownCloud-8.1-Features as well – THX. |
done - thx for the reminder |
My Questions: smbclient is caching the file to download in /tmp, which may be a problem for larger files. Is this still the case for libsmbclient ? Is the cache Folder configurable somewhere ? Currently, i am downloading a 2,15 GB File, /tmp is 1024 MB only and 100% filled right now. Will the download work or will it break ? (it is at 300 MB right now so i will know soon ..) Thanks for the Info ! Edit: On OC 8.0.3RC1, the download breaks if /tmp is full. There should be a warning or the download shall not even start for a better user experience ... Thanks ! |
Ref for the documentation of this new "libsmbclient" / "libsmbclient-php" dependency: owncloud-archive/documentation#1447 It could be really useful to document something like this before the release of the version including it. |
New SMB storage backend based on https://github.com/icewind1991/SMB which supports either wrapping smbclient or use libsmbclient directly trough libsmbclient-php.
All tests pass locally (both with smbclient and libsmbclient)
Both methods also provide a nice speedup compared to smb4php, on my local machine I get the following times for running the smb unit tests
cc @DeepDiver1975 @PVince81 @Xenopathic
Fixes #6092, fixes #9467, fixes #9480