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

New SMB storage backend #10673

Merged
merged 6 commits into from
Feb 16, 2015
Merged

New SMB storage backend #10673

merged 6 commits into from
Feb 16, 2015

Conversation

icewind1991
Copy link
Contributor

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

old (smb4php) new (smbclient) new (libsmbclient)
16s 8s 1s

cc @DeepDiver1975 @PVince81 @Xenopathic

Fixes #6092, fixes #9467, fixes #9480

@RobinMcCorkell
Copy link
Member

Awesome work! I'll get testing this when I've got a proper setup again. How many issues will this close? 😆

@DeepDiver1975
Copy link
Member

@icewind1991 please rebase - will install libsmbclient for testing

@DeepDiver1975
Copy link
Member

@icewind1991 icewind1991 force-pushed the smb-new branch 2 times, most recently from 4cbd129 to 0a968c0 Compare September 3, 2014 13:41
@icewind1991
Copy link
Contributor Author

@DeepDiver1975 @PVince81 @Xenopathic please review

@PVince81
Copy link
Contributor

Question: would that work on Windows as well ? I guess it would only if libsmbclient exists for Windows ?

CC @MTRichards

@DeepDiver1975
Copy link
Member

Question: would that work on Windows as well ? I guess it would only if libsmbclient exists for Windows ?

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.

@icewind1991
Copy link
Contributor Author

@DeepDiver1975 @PVince81 please review

@DeepDiver1975
Copy link
Member

Tested against my NAS 👍

@DeepDiver1975
Copy link
Member

Will run unit tests now ...

@DeepDiver1975
Copy link
Member

/usr/bin/php /tmp/ide-phpunit.php --configuration /home/deepdiver/Development/ownCloud/core/tests/phpunit-autotest.xml Test\Files\Storage\SMB /home/deepdiver/Development/ownCloud/core/apps/files_external/tests/smb.php
Testing started at 14:09 ...
PHPUnit 4.3.4 by Sebastian Bergmann.

Configuration read from /home/deepdiver/Development/ownCloud/core/tests/phpunit-autotest.xml


Failed asserting that 1415974267 is equal to 1415970549 or is less than 1415970549.
 /home/deepdiver/Development/ownCloud/core/tests/lib/files/storage/storage.php:291

TestSuite 'Test\Files\Storage\SMB': Did not clean up storages
TestSuite 'Test\Files\Storage\SMB': Did not clean up file cache
TestSuite 'Test\Files\Storage\SMB': Did not clean up data dir


Time: 2.52 seconds, Memory: 17.00Mb


FAILURES!
Tests: 55, Assertions: 215, Failures: 1.

Process finished with exit code 1

@icewind1991
Copy link
Contributor Author

Are the clocks on both machines the same?

@DeepDiver1975
Copy link
Member

Are the clocks on both machines the same?

let me check ... also running unit tests against Windows 7 the next minutes ...

@DeepDiver1975
Copy link
Member

Are the clocks on both machines the same?

LOL - the clock was horrible off 🙈

@DeepDiver1975
Copy link
Member

Against Windows 7:

/usr/bin/php /tmp/ide-phpunit.php --configuration /home/deepdiver/Development/ownCloud/core/tests/phpunit-autotest.xml Test\Files\Storage\SMB /home/deepdiver/Development/ownCloud/core/apps/files_external/tests/smb.php
Testing started at 14:35 ...
PHPUnit 4.3.4 by Sebastian Bergmann.

Configuration read from /home/deepdiver/Development/ownCloud/core/tests/phpunit-autotest.xml


Unknown error (13) for smb://nautilus/oc-test/test5466053ea3f99/s%C3%B2urc%C4%93.txt
 /home/deepdiver/Development/ownCloud/core/apps/files_external/3rdparty/icewind/smb/src/NativeState.php:53
 /home/deepdiver/Development/ownCloud/core/apps/files_external/3rdparty/icewind/smb/src/NativeState.php:59
 /home/deepdiver/Development/ownCloud/core/apps/files_external/3rdparty/icewind/smb/src/NativeState.php:203
 /home/deepdiver/Development/ownCloud/core/apps/files_external/3rdparty/icewind/smb/src/NativeShare.php:237
 /home/deepdiver/Development/ownCloud/core/apps/files_external/lib/smb.php:162
 /home/deepdiver/Development/ownCloud/core/lib/private/files/storage/common.php:153
 /home/deepdiver/Development/ownCloud/core/tests/lib/files/storage/storage.php:179
 /home/deepdiver/Development/ownCloud/core/tests/lib/files/storage/storage.php:212


Unknown error (13) for smb://nautilus/oc-test/test5466053eb576b/source.txt
 /home/deepdiver/Development/ownCloud/core/apps/files_external/3rdparty/icewind/smb/src/NativeState.php:53
 /home/deepdiver/Development/ownCloud/core/apps/files_external/3rdparty/icewind/smb/src/NativeState.php:59
 /home/deepdiver/Development/ownCloud/core/apps/files_external/3rdparty/icewind/smb/src/NativeState.php:203
 /home/deepdiver/Development/ownCloud/core/apps/files_external/3rdparty/icewind/smb/src/NativeShare.php:237
 /home/deepdiver/Development/ownCloud/core/apps/files_external/lib/smb.php:162
 /home/deepdiver/Development/ownCloud/core/lib/private/files/storage/common.php:153
 /home/deepdiver/Development/ownCloud/core/tests/lib/files/storage/storage.php:179
 /home/deepdiver/Development/ownCloud/core/tests/lib/files/storage/storage.php:226


Unknown error (13) for smb://nautilus/oc-test/test5466053ec5257/source.txt
 /home/deepdiver/Development/ownCloud/core/apps/files_external/3rdparty/icewind/smb/src/NativeState.php:53
 /home/deepdiver/Development/ownCloud/core/apps/files_external/3rdparty/icewind/smb/src/NativeState.php:59
 /home/deepdiver/Development/ownCloud/core/apps/files_external/3rdparty/icewind/smb/src/NativeState.php:203
 /home/deepdiver/Development/ownCloud/core/apps/files_external/3rdparty/icewind/smb/src/NativeShare.php:237
 /home/deepdiver/Development/ownCloud/core/apps/files_external/lib/smb.php:162
 /home/deepdiver/Development/ownCloud/core/lib/private/files/storage/common.php:153
 /home/deepdiver/Development/ownCloud/core/tests/lib/files/storage/storage.php:179
 /home/deepdiver/Development/ownCloud/core/tests/lib/files/storage/storage.php:226


Unknown error (13) for smb://nautilus/oc-test/test5466053ed4300/source%20with%20space.txt
 /home/deepdiver/Development/ownCloud/core/apps/files_external/3rdparty/icewind/smb/src/NativeState.php:53
 /home/deepdiver/Development/ownCloud/core/apps/files_external/3rdparty/icewind/smb/src/NativeState.php:59
 /home/deepdiver/Development/ownCloud/core/apps/files_external/3rdparty/icewind/smb/src/NativeState.php:203
 /home/deepdiver/Development/ownCloud/core/apps/files_external/3rdparty/icewind/smb/src/NativeShare.php:237
 /home/deepdiver/Development/ownCloud/core/apps/files_external/lib/smb.php:162
 /home/deepdiver/Development/ownCloud/core/lib/private/files/storage/common.php:153
 /home/deepdiver/Development/ownCloud/core/tests/lib/files/storage/storage.php:179
 /home/deepdiver/Development/ownCloud/core/tests/lib/files/storage/storage.php:226


Unknown error (13) for smb://nautilus/oc-test/test5466053ee4fd8/source%20with%20space.txt
 /home/deepdiver/Development/ownCloud/core/apps/files_external/3rdparty/icewind/smb/src/NativeState.php:53
 /home/deepdiver/Development/ownCloud/core/apps/files_external/3rdparty/icewind/smb/src/NativeState.php:59
 /home/deepdiver/Development/ownCloud/core/apps/files_external/3rdparty/icewind/smb/src/NativeState.php:203
 /home/deepdiver/Development/ownCloud/core/apps/files_external/3rdparty/icewind/smb/src/NativeShare.php:237
 /home/deepdiver/Development/ownCloud/core/apps/files_external/lib/smb.php:162
 /home/deepdiver/Development/ownCloud/core/lib/private/files/storage/common.php:153
 /home/deepdiver/Development/ownCloud/core/tests/lib/files/storage/storage.php:179
 /home/deepdiver/Development/ownCloud/core/tests/lib/files/storage/storage.php:226


Unknown error (13) for smb://nautilus/oc-test/test5466053f006b2/source.txt
 /home/deepdiver/Development/ownCloud/core/apps/files_external/3rdparty/icewind/smb/src/NativeState.php:53
 /home/deepdiver/Development/ownCloud/core/apps/files_external/3rdparty/icewind/smb/src/NativeState.php:59
 /home/deepdiver/Development/ownCloud/core/apps/files_external/3rdparty/icewind/smb/src/NativeState.php:203
 /home/deepdiver/Development/ownCloud/core/apps/files_external/3rdparty/icewind/smb/src/NativeShare.php:237
 /home/deepdiver/Development/ownCloud/core/apps/files_external/lib/smb.php:162
 /home/deepdiver/Development/ownCloud/core/lib/private/files/storage/common.php:153
 /home/deepdiver/Development/ownCloud/core/tests/lib/files/storage/storage.php:179
 /home/deepdiver/Development/ownCloud/core/tests/lib/files/storage/storage.php:226


Unknown error (13) for smb://nautilus/oc-test/test5466053f10eb7/s%C3%B2urc%C4%93.txt
 /home/deepdiver/Development/ownCloud/core/apps/files_external/3rdparty/icewind/smb/src/NativeState.php:53
 /home/deepdiver/Development/ownCloud/core/apps/files_external/3rdparty/icewind/smb/src/NativeState.php:59
 /home/deepdiver/Development/ownCloud/core/apps/files_external/3rdparty/icewind/smb/src/NativeState.php:203
 /home/deepdiver/Development/ownCloud/core/apps/files_external/3rdparty/icewind/smb/src/NativeShare.php:237
 /home/deepdiver/Development/ownCloud/core/apps/files_external/lib/smb.php:162
 /home/deepdiver/Development/ownCloud/core/lib/private/files/storage/common.php:153
 /home/deepdiver/Development/ownCloud/core/tests/lib/files/storage/storage.php:179
 /home/deepdiver/Development/ownCloud/core/tests/lib/files/storage/storage.php:226


Unknown error (13) for smb://nautilus/oc-test/test5466053f219f5/s%C3%B2urc%C4%93.txt
 /home/deepdiver/Development/ownCloud/core/apps/files_external/3rdparty/icewind/smb/src/NativeState.php:53
 /home/deepdiver/Development/ownCloud/core/apps/files_external/3rdparty/icewind/smb/src/NativeState.php:59
 /home/deepdiver/Development/ownCloud/core/apps/files_external/3rdparty/icewind/smb/src/NativeState.php:203
 /home/deepdiver/Development/ownCloud/core/apps/files_external/3rdparty/icewind/smb/src/NativeShare.php:237
 /home/deepdiver/Development/ownCloud/core/apps/files_external/lib/smb.php:162
 /home/deepdiver/Development/ownCloud/core/lib/private/files/storage/common.php:153
 /home/deepdiver/Development/ownCloud/core/tests/lib/files/storage/storage.php:179
 /home/deepdiver/Development/ownCloud/core/tests/lib/files/storage/storage.php:226


Unknown error (13) for smb://nautilus/oc-test/test5466053f317d3/source.txt
 /home/deepdiver/Development/ownCloud/core/apps/files_external/3rdparty/icewind/smb/src/NativeState.php:53
 /home/deepdiver/Development/ownCloud/core/apps/files_external/3rdparty/icewind/smb/src/NativeState.php:59
 /home/deepdiver/Development/ownCloud/core/apps/files_external/3rdparty/icewind/smb/src/NativeState.php:203
 /home/deepdiver/Development/ownCloud/core/apps/files_external/3rdparty/icewind/smb/src/NativeShare.php:237
 /home/deepdiver/Development/ownCloud/core/apps/files_external/lib/smb.php:162
 /home/deepdiver/Development/ownCloud/core/lib/private/files/storage/common.php:153
 /home/deepdiver/Development/ownCloud/core/tests/lib/files/storage/storage.php:179
 /home/deepdiver/Development/ownCloud/core/tests/lib/files/storage/storage.php:240


Unknown error (13) for smb://nautilus/oc-test/test5466053f42efe/source.txt
 /home/deepdiver/Development/ownCloud/core/apps/files_external/3rdparty/icewind/smb/src/NativeState.php:53
 /home/deepdiver/Development/ownCloud/core/apps/files_external/3rdparty/icewind/smb/src/NativeState.php:59
 /home/deepdiver/Development/ownCloud/core/apps/files_external/3rdparty/icewind/smb/src/NativeState.php:203
 /home/deepdiver/Development/ownCloud/core/apps/files_external/3rdparty/icewind/smb/src/NativeShare.php:237
 /home/deepdiver/Development/ownCloud/core/apps/files_external/lib/smb.php:162
 /home/deepdiver/Development/ownCloud/core/lib/private/files/storage/common.php:153
 /home/deepdiver/Development/ownCloud/core/tests/lib/files/storage/storage.php:179
 /home/deepdiver/Development/ownCloud/core/tests/lib/files/storage/storage.php:240


Unknown error (13) for smb://nautilus/oc-test/test5466053f55423/source%20with%20space.txt
 /home/deepdiver/Development/ownCloud/core/apps/files_external/3rdparty/icewind/smb/src/NativeState.php:53
 /home/deepdiver/Development/ownCloud/core/apps/files_external/3rdparty/icewind/smb/src/NativeState.php:59
 /home/deepdiver/Development/ownCloud/core/apps/files_external/3rdparty/icewind/smb/src/NativeState.php:203
 /home/deepdiver/Development/ownCloud/core/apps/files_external/3rdparty/icewind/smb/src/NativeShare.php:237
 /home/deepdiver/Development/ownCloud/core/apps/files_external/lib/smb.php:162
 /home/deepdiver/Development/ownCloud/core/lib/private/files/storage/common.php:153
 /home/deepdiver/Development/ownCloud/core/tests/lib/files/storage/storage.php:179
 /home/deepdiver/Development/ownCloud/core/tests/lib/files/storage/storage.php:240


Unknown error (13) for smb://nautilus/oc-test/test5466053f650b8/source%20with%20space.txt
 /home/deepdiver/Development/ownCloud/core/apps/files_external/3rdparty/icewind/smb/src/NativeState.php:53
 /home/deepdiver/Development/ownCloud/core/apps/files_external/3rdparty/icewind/smb/src/NativeState.php:59
 /home/deepdiver/Development/ownCloud/core/apps/files_external/3rdparty/icewind/smb/src/NativeState.php:203
 /home/deepdiver/Development/ownCloud/core/apps/files_external/3rdparty/icewind/smb/src/NativeShare.php:237
 /home/deepdiver/Development/ownCloud/core/apps/files_external/lib/smb.php:162
 /home/deepdiver/Development/ownCloud/core/lib/private/files/storage/common.php:153
 /home/deepdiver/Development/ownCloud/core/tests/lib/files/storage/storage.php:179
 /home/deepdiver/Development/ownCloud/core/tests/lib/files/storage/storage.php:240


Unknown error (13) for smb://nautilus/oc-test/test5466053f73bac/source.txt
 /home/deepdiver/Development/ownCloud/core/apps/files_external/3rdparty/icewind/smb/src/NativeState.php:53
 /home/deepdiver/Development/ownCloud/core/apps/files_external/3rdparty/icewind/smb/src/NativeState.php:59
 /home/deepdiver/Development/ownCloud/core/apps/files_external/3rdparty/icewind/smb/src/NativeState.php:203
 /home/deepdiver/Development/ownCloud/core/apps/files_external/3rdparty/icewind/smb/src/NativeShare.php:237
 /home/deepdiver/Development/ownCloud/core/apps/files_external/lib/smb.php:162
 /home/deepdiver/Development/ownCloud/core/lib/private/files/storage/common.php:153
 /home/deepdiver/Development/ownCloud/core/tests/lib/files/storage/storage.php:179
 /home/deepdiver/Development/ownCloud/core/tests/lib/files/storage/storage.php:240


Unknown error (13) for smb://nautilus/oc-test/test5466053f83230/s%C3%B2urc%C4%93.txt
 /home/deepdiver/Development/ownCloud/core/apps/files_external/3rdparty/icewind/smb/src/NativeState.php:53
 /home/deepdiver/Development/ownCloud/core/apps/files_external/3rdparty/icewind/smb/src/NativeState.php:59
 /home/deepdiver/Development/ownCloud/core/apps/files_external/3rdparty/icewind/smb/src/NativeState.php:203
 /home/deepdiver/Development/ownCloud/core/apps/files_external/3rdparty/icewind/smb/src/NativeShare.php:237
 /home/deepdiver/Development/ownCloud/core/apps/files_external/lib/smb.php:162
 /home/deepdiver/Development/ownCloud/core/lib/private/files/storage/common.php:153
 /home/deepdiver/Development/ownCloud/core/tests/lib/files/storage/storage.php:179
 /home/deepdiver/Development/ownCloud/core/tests/lib/files/storage/storage.php:240


Unknown error (13) for smb://nautilus/oc-test/test5466053f91ffc/s%C3%B2urc%C4%93.txt
 /home/deepdiver/Development/ownCloud/core/apps/files_external/3rdparty/icewind/smb/src/NativeState.php:53
 /home/deepdiver/Development/ownCloud/core/apps/files_external/3rdparty/icewind/smb/src/NativeState.php:59
 /home/deepdiver/Development/ownCloud/core/apps/files_external/3rdparty/icewind/smb/src/NativeState.php:203
 /home/deepdiver/Development/ownCloud/core/apps/files_external/3rdparty/icewind/smb/src/NativeShare.php:237
 /home/deepdiver/Development/ownCloud/core/apps/files_external/lib/smb.php:162
 /home/deepdiver/Development/ownCloud/core/lib/private/files/storage/common.php:153
 /home/deepdiver/Development/ownCloud/core/tests/lib/files/storage/storage.php:179
 /home/deepdiver/Development/ownCloud/core/tests/lib/files/storage/storage.php:240


Unknown error (13) for smb://nautilus/oc-test/test5466053fa0c1d/lorem.txt
 /home/deepdiver/Development/ownCloud/core/apps/files_external/3rdparty/icewind/smb/src/NativeState.php:53
 /home/deepdiver/Development/ownCloud/core/apps/files_external/3rdparty/icewind/smb/src/NativeState.php:59
 /home/deepdiver/Development/ownCloud/core/apps/files_external/3rdparty/icewind/smb/src/NativeState.php:203
 /home/deepdiver/Development/ownCloud/core/apps/files_external/3rdparty/icewind/smb/src/NativeShare.php:237
 /home/deepdiver/Development/ownCloud/core/apps/files_external/lib/smb.php:162
 /home/deepdiver/Development/ownCloud/core/lib/private/files/storage/common.php:153
 /home/deepdiver/Development/ownCloud/core/tests/lib/files/storage/storage.php:251


Unknown error (13) for smb://nautilus/oc-test/test5466053faf51f/lorem.txt
 /home/deepdiver/Development/ownCloud/core/apps/files_external/3rdparty/icewind/smb/src/NativeState.php:53
 /home/deepdiver/Development/ownCloud/core/apps/files_external/3rdparty/icewind/smb/src/NativeState.php:59
 /home/deepdiver/Development/ownCloud/core/apps/files_external/3rdparty/icewind/smb/src/NativeState.php:203
 /home/deepdiver/Development/ownCloud/core/apps/files_external/3rdparty/icewind/smb/src/NativeShare.php:237
 /home/deepdiver/Development/ownCloud/core/apps/files_external/lib/smb.php:162
 /home/deepdiver/Development/ownCloud/core/lib/private/files/storage/common.php:153
 /home/deepdiver/Development/ownCloud/core/tests/lib/files/storage/storage.php:282


Unknown error (13) for smb://nautilus/oc-test/test5466053fbdc47/lorem.txt
 /home/deepdiver/Development/ownCloud/core/apps/files_external/3rdparty/icewind/smb/src/NativeState.php:53
 /home/deepdiver/Development/ownCloud/core/apps/files_external/3rdparty/icewind/smb/src/NativeState.php:59
 /home/deepdiver/Development/ownCloud/core/apps/files_external/3rdparty/icewind/smb/src/NativeState.php:203
 /home/deepdiver/Development/ownCloud/core/apps/files_external/3rdparty/icewind/smb/src/NativeShare.php:237
 /home/deepdiver/Development/ownCloud/core/apps/files_external/lib/smb.php:162
 /home/deepdiver/Development/ownCloud/core/lib/private/files/storage/common.php:153
 /home/deepdiver/Development/ownCloud/core/tests/lib/files/storage/storage.php:312


Unknown error (13) for smb://nautilus/oc-test/test5466053fcc611/foo
 /home/deepdiver/Development/ownCloud/core/apps/files_external/3rdparty/icewind/smb/src/NativeState.php:53
 /home/deepdiver/Development/ownCloud/core/apps/files_external/3rdparty/icewind/smb/src/NativeState.php:59
 /home/deepdiver/Development/ownCloud/core/apps/files_external/3rdparty/icewind/smb/src/NativeState.php:167
 /home/deepdiver/Development/ownCloud/core/apps/files_external/3rdparty/icewind/smb/src/NativeShare.php:108
 /home/deepdiver/Development/ownCloud/core/apps/files_external/3rdparty/icewind/smb/src/NativeShare.php:103
 /home/deepdiver/Development/ownCloud/core/apps/files_external/lib/smb.php:75
 /home/deepdiver/Development/ownCloud/core/apps/files_external/lib/smb.php:259
 /home/deepdiver/Development/ownCloud/core/apps/files_external/lib/smb.php:156
 /home/deepdiver/Development/ownCloud/core/tests/lib/files/storage/storage.php:325


Unknown error (13) for smb://nautilus/oc-test/test5466053fdb42d/touch
 /home/deepdiver/Development/ownCloud/core/apps/files_external/3rdparty/icewind/smb/src/NativeState.php:53
 /home/deepdiver/Development/ownCloud/core/apps/files_external/3rdparty/icewind/smb/src/NativeState.php:59
 /home/deepdiver/Development/ownCloud/core/apps/files_external/3rdparty/icewind/smb/src/NativeState.php:167
 /home/deepdiver/Development/ownCloud/core/apps/files_external/3rdparty/icewind/smb/src/NativeShare.php:108
 /home/deepdiver/Development/ownCloud/core/apps/files_external/3rdparty/icewind/smb/src/NativeShare.php:103
 /home/deepdiver/Development/ownCloud/core/apps/files_external/lib/smb.php:75
 /home/deepdiver/Development/ownCloud/core/apps/files_external/lib/smb.php:259
 /home/deepdiver/Development/ownCloud/core/tests/lib/files/storage/storage.php:343


Unknown error (13) for smb://nautilus/oc-test/test5466054005726/folder/asd.txt
 /home/deepdiver/Development/ownCloud/core/apps/files_external/3rdparty/icewind/smb/src/NativeState.php:53
 /home/deepdiver/Development/ownCloud/core/apps/files_external/3rdparty/icewind/smb/src/NativeState.php:59
 /home/deepdiver/Development/ownCloud/core/apps/files_external/3rdparty/icewind/smb/src/NativeState.php:203
 /home/deepdiver/Development/ownCloud/core/apps/files_external/3rdparty/icewind/smb/src/NativeShare.php:237
 /home/deepdiver/Development/ownCloud/core/apps/files_external/lib/smb.php:162
 /home/deepdiver/Development/ownCloud/core/lib/private/files/storage/common.php:153
 /home/deepdiver/Development/ownCloud/core/tests/lib/files/storage/storage.php:353


Unknown error (13) for smb://nautilus/oc-test/test546605401ef06/folder/asd.txt
 /home/deepdiver/Development/ownCloud/core/apps/files_external/3rdparty/icewind/smb/src/NativeState.php:53
 /home/deepdiver/Development/ownCloud/core/apps/files_external/3rdparty/icewind/smb/src/NativeState.php:59
 /home/deepdiver/Development/ownCloud/core/apps/files_external/3rdparty/icewind/smb/src/NativeState.php:203
 /home/deepdiver/Development/ownCloud/core/apps/files_external/3rdparty/icewind/smb/src/NativeShare.php:237
 /home/deepdiver/Development/ownCloud/core/apps/files_external/lib/smb.php:162
 /home/deepdiver/Development/ownCloud/core/lib/private/files/storage/common.php:153
 /home/deepdiver/Development/ownCloud/core/tests/lib/files/storage/storage.php:366


Unknown error (13) for smb://nautilus/oc-test/test5466054037d3b/hash.txt
 /home/deepdiver/Development/ownCloud/core/apps/files_external/3rdparty/icewind/smb/src/NativeState.php:53
 /home/deepdiver/Development/ownCloud/core/apps/files_external/3rdparty/icewind/smb/src/NativeState.php:59
 /home/deepdiver/Development/ownCloud/core/apps/files_external/3rdparty/icewind/smb/src/NativeState.php:203
 /home/deepdiver/Development/ownCloud/core/apps/files_external/3rdparty/icewind/smb/src/NativeShare.php:237
 /home/deepdiver/Development/ownCloud/core/apps/files_external/lib/smb.php:162
 /home/deepdiver/Development/ownCloud/core/lib/private/files/storage/common.php:153
 /home/deepdiver/Development/ownCloud/core/tests/lib/files/storage/storage.php:388


Unknown error (13) for smb://nautilus/oc-test/test5466054046614/hash.txt
 /home/deepdiver/Development/ownCloud/core/apps/files_external/3rdparty/icewind/smb/src/NativeState.php:53
 /home/deepdiver/Development/ownCloud/core/apps/files_external/3rdparty/icewind/smb/src/NativeState.php:59
 /home/deepdiver/Development/ownCloud/core/apps/files_external/3rdparty/icewind/smb/src/NativeState.php:203
 /home/deepdiver/Development/ownCloud/core/apps/files_external/3rdparty/icewind/smb/src/NativeShare.php:237
 /home/deepdiver/Development/ownCloud/core/apps/files_external/lib/smb.php:162
 /home/deepdiver/Development/ownCloud/core/lib/private/files/storage/common.php:153
 /home/deepdiver/Development/ownCloud/core/tests/lib/files/storage/storage.php:388


Unknown error (13) for smb://nautilus/oc-test/test5466054054f19/hash.txt
 /home/deepdiver/Development/ownCloud/core/apps/files_external/3rdparty/icewind/smb/src/NativeState.php:53
 /home/deepdiver/Development/ownCloud/core/apps/files_external/3rdparty/icewind/smb/src/NativeState.php:59
 /home/deepdiver/Development/ownCloud/core/apps/files_external/3rdparty/icewind/smb/src/NativeState.php:203
 /home/deepdiver/Development/ownCloud/core/apps/files_external/3rdparty/icewind/smb/src/NativeShare.php:237
 /home/deepdiver/Development/ownCloud/core/apps/files_external/lib/smb.php:162
 /home/deepdiver/Development/ownCloud/core/lib/private/files/storage/common.php:153
 /home/deepdiver/Development/ownCloud/core/tests/lib/files/storage/storage.php:388


Unknown error (13) for smb://nautilus/oc-test/test5466054063c10/%23test.txt
 /home/deepdiver/Development/ownCloud/core/apps/files_external/3rdparty/icewind/smb/src/NativeState.php:53
 /home/deepdiver/Development/ownCloud/core/apps/files_external/3rdparty/icewind/smb/src/NativeState.php:59
 /home/deepdiver/Development/ownCloud/core/apps/files_external/3rdparty/icewind/smb/src/NativeState.php:203
 /home/deepdiver/Development/ownCloud/core/apps/files_external/3rdparty/icewind/smb/src/NativeShare.php:237
 /home/deepdiver/Development/ownCloud/core/apps/files_external/lib/smb.php:162
 /home/deepdiver/Development/ownCloud/core/lib/private/files/storage/common.php:153
 /home/deepdiver/Development/ownCloud/core/tests/lib/files/storage/storage.php:394


Unknown error (13) for smb://nautilus/oc-test/test54660540722d3/target.txt
 /home/deepdiver/Development/ownCloud/core/apps/files_external/3rdparty/icewind/smb/src/NativeState.php:53
 /home/deepdiver/Development/ownCloud/core/apps/files_external/3rdparty/icewind/smb/src/NativeState.php:59
 /home/deepdiver/Development/ownCloud/core/apps/files_external/3rdparty/icewind/smb/src/NativeState.php:203
 /home/deepdiver/Development/ownCloud/core/apps/files_external/3rdparty/icewind/smb/src/NativeShare.php:237
 /home/deepdiver/Development/ownCloud/core/apps/files_external/lib/smb.php:162
 /home/deepdiver/Development/ownCloud/core/lib/private/files/storage/common.php:153
 /home/deepdiver/Development/ownCloud/core/tests/lib/files/storage/storage.php:413


Unknown error (13) for smb://nautilus/oc-test/test5466054080d9c/target.txt
 /home/deepdiver/Development/ownCloud/core/apps/files_external/3rdparty/icewind/smb/src/NativeState.php:53
 /home/deepdiver/Development/ownCloud/core/apps/files_external/3rdparty/icewind/smb/src/NativeState.php:59
 /home/deepdiver/Development/ownCloud/core/apps/files_external/3rdparty/icewind/smb/src/NativeState.php:203
 /home/deepdiver/Development/ownCloud/core/apps/files_external/3rdparty/icewind/smb/src/NativeShare.php:237
 /home/deepdiver/Development/ownCloud/core/apps/files_external/lib/smb.php:162
 /home/deepdiver/Development/ownCloud/core/lib/private/files/storage/common.php:153
 /home/deepdiver/Development/ownCloud/core/tests/lib/files/storage/storage.php:420


Unknown error (13) for smb://nautilus/oc-test/test546605408f776/source/test1.txt
 /home/deepdiver/Development/ownCloud/core/apps/files_external/3rdparty/icewind/smb/src/NativeState.php:53
 /home/deepdiver/Development/ownCloud/core/apps/files_external/3rdparty/icewind/smb/src/NativeState.php:59
 /home/deepdiver/Development/ownCloud/core/apps/files_external/3rdparty/icewind/smb/src/NativeState.php:203
 /home/deepdiver/Development/ownCloud/core/apps/files_external/3rdparty/icewind/smb/src/NativeShare.php:237
 /home/deepdiver/Development/ownCloud/core/apps/files_external/lib/smb.php:162
 /home/deepdiver/Development/ownCloud/core/lib/private/files/storage/common.php:153
 /home/deepdiver/Development/ownCloud/core/tests/lib/files/storage/storage.php:429


Unknown error (13) for smb://nautilus/oc-test/test54660540a2d16/source/test1.txt
 /home/deepdiver/Development/ownCloud/core/apps/files_external/3rdparty/icewind/smb/src/NativeState.php:53
 /home/deepdiver/Development/ownCloud/core/apps/files_external/3rdparty/icewind/smb/src/NativeState.php:59
 /home/deepdiver/Development/ownCloud/core/apps/files_external/3rdparty/icewind/smb/src/NativeState.php:203
 /home/deepdiver/Development/ownCloud/core/apps/files_external/3rdparty/icewind/smb/src/NativeShare.php:237
 /home/deepdiver/Development/ownCloud/core/apps/files_external/lib/smb.php:162
 /home/deepdiver/Development/ownCloud/core/lib/private/files/storage/common.php:153
 /home/deepdiver/Development/ownCloud/core/tests/lib/files/storage/storage.php:454


Unknown error (13) for smb://nautilus/oc-test/test54660540b5bc6/source/test1.txt
 /home/deepdiver/Development/ownCloud/core/apps/files_external/3rdparty/icewind/smb/src/NativeState.php:53
 /home/deepdiver/Development/ownCloud/core/apps/files_external/3rdparty/icewind/smb/src/NativeState.php:59
 /home/deepdiver/Development/ownCloud/core/apps/files_external/3rdparty/icewind/smb/src/NativeState.php:203
 /home/deepdiver/Development/ownCloud/core/apps/files_external/3rdparty/icewind/smb/src/NativeShare.php:237
 /home/deepdiver/Development/ownCloud/core/apps/files_external/lib/smb.php:162
 /home/deepdiver/Development/ownCloud/core/lib/private/files/storage/common.php:153
 /home/deepdiver/Development/ownCloud/core/tests/lib/files/storage/storage.php:470


Unknown error (13) for smb://nautilus/oc-test/test54660540c8c85/source/test1.txt
 /home/deepdiver/Development/ownCloud/core/apps/files_external/3rdparty/icewind/smb/src/NativeState.php:53
 /home/deepdiver/Development/ownCloud/core/apps/files_external/3rdparty/icewind/smb/src/NativeState.php:59
 /home/deepdiver/Development/ownCloud/core/apps/files_external/3rdparty/icewind/smb/src/NativeState.php:203
 /home/deepdiver/Development/ownCloud/core/apps/files_external/3rdparty/icewind/smb/src/NativeShare.php:237
 /home/deepdiver/Development/ownCloud/core/apps/files_external/lib/smb.php:162
 /home/deepdiver/Development/ownCloud/core/lib/private/files/storage/common.php:153
 /home/deepdiver/Development/ownCloud/core/tests/lib/files/storage/storage.php:483


Unknown error (13) for smb://nautilus/oc-test/test54660540dbea0/source/test1.txt
 /home/deepdiver/Development/ownCloud/core/apps/files_external/3rdparty/icewind/smb/src/NativeState.php:53
 /home/deepdiver/Development/ownCloud/core/apps/files_external/3rdparty/icewind/smb/src/NativeState.php:59
 /home/deepdiver/Development/ownCloud/core/apps/files_external/3rdparty/icewind/smb/src/NativeState.php:203
 /home/deepdiver/Development/ownCloud/core/apps/files_external/3rdparty/icewind/smb/src/NativeShare.php:237
 /home/deepdiver/Development/ownCloud/core/apps/files_external/lib/smb.php:162
 /home/deepdiver/Development/ownCloud/core/lib/private/files/storage/common.php:153
 /home/deepdiver/Development/ownCloud/core/tests/lib/files/storage/storage.php:508


Unknown error (13) for smb://nautilus/oc-test/test54660540eec46/source/test1.txt
 /home/deepdiver/Development/ownCloud/core/apps/files_external/3rdparty/icewind/smb/src/NativeState.php:53
 /home/deepdiver/Development/ownCloud/core/apps/files_external/3rdparty/icewind/smb/src/NativeState.php:59
 /home/deepdiver/Development/ownCloud/core/apps/files_external/3rdparty/icewind/smb/src/NativeState.php:203
 /home/deepdiver/Development/ownCloud/core/apps/files_external/3rdparty/icewind/smb/src/NativeShare.php:237
 /home/deepdiver/Development/ownCloud/core/apps/files_external/lib/smb.php:162
 /home/deepdiver/Development/ownCloud/core/lib/private/files/storage/common.php:153
 /home/deepdiver/Development/ownCloud/core/tests/lib/files/storage/storage.php:522


Unknown error (13) for smb://nautilus/oc-test/test546605410e527
 /home/deepdiver/Development/ownCloud/core/apps/files_external/3rdparty/icewind/smb/src/NativeState.php:53
 /home/deepdiver/Development/ownCloud/core/apps/files_external/3rdparty/icewind/smb/src/NativeState.php:59
 /home/deepdiver/Development/ownCloud/core/apps/files_external/3rdparty/icewind/smb/src/NativeState.php:88
 /home/deepdiver/Development/ownCloud/core/apps/files_external/3rdparty/icewind/smb/src/NativeShare.php:86
 /home/deepdiver/Development/ownCloud/core/apps/files_external/lib/smb.php:206
 /home/deepdiver/Development/ownCloud/core/apps/files_external/tests/smb.php:28

TestSuite 'Test\Files\Storage\SMB': Did not clean up data dir


Time: 4.37 seconds, Memory: 17.25Mb


FAILURES!
Tests: 55, Assertions: 77, Errors: 35.

Process finished with exit code 2

@icewind1991
Copy link
Contributor Author

Error 13 seems to be permissions denied (will add handling for it).

Can you try running the tests from https://github.com/icewind1991/SMB

@MorrisJobke
Copy link
Contributor

Should be revived for 8.1

@MorrisJobke MorrisJobke added this to the 8.1-next milestone Jan 9, 2015
@DeepDiver1975
Copy link
Member

Should be revived for 8.1

indeed

@PVince81
Copy link
Contributor

PVince81 commented Feb 4, 2015

Please rebase, if it makes sense at this point

@icewind1991
Copy link
Contributor Author

Testing both the libsmbclient and the smblcient implementations of the smb library

@MorrisJobke
Copy link
Contributor

Testing both the libsmbclient and the smblcient implementations of the smb library

How to do that?

@icewind1991
Copy link
Contributor Author

enabling disabling the libsmbclient extension

@DeepDiver1975
Copy link
Member

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?

@DeepDiver1975
Copy link
Member

come on @owncloud-bot retest this please

@DeepDiver1975
Copy link
Member

rebased and tested against samba server running inside docker 👍

issues with windows are to be seen as local network/setup issues

@ghost
Copy link

ghost commented Feb 16, 2015

Refer to this link for build results (access rights to CI server needed):
https://ci.owncloud.org//job/pull-request-analyser-ng-simple/9504/
Test PASSed.

@scrutinizer-notifier
Copy link

The inspection completed: 17 new issues, 12 updated code elements

@icewind1991
Copy link
Contributor Author

@PVince81 @MorrisJobke can this be merged?

@MorrisJobke
Copy link
Contributor

Yes. Tested 👍

MorrisJobke added a commit that referenced this pull request Feb 16, 2015
@MorrisJobke MorrisJobke merged commit fadf0a9 into master Feb 16, 2015
@MorrisJobke MorrisJobke deleted the smb-new branch February 16, 2015 16:37
@DeepDiver1975
Copy link
Member

kungfupanda2

Great job! @icewind1991

@LukasReschke
Copy link
Member

Please add as feature to https://github.com/owncloud/core/wiki/ownCloud-8.1-Features as well – THX.

@DeepDiver1975
Copy link
Member

Please add as feature to https://github.com/owncloud/core/wiki/ownCloud-8.1-Features as well – THX.

done - thx for the reminder

@derkostka
Copy link
Contributor

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 !

@ghost
Copy link

ghost commented Aug 9, 2015

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.

@ghost ghost mentioned this pull request Aug 9, 2015
@lock lock bot locked as resolved and limited conversation to collaborators Aug 11, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
8 participants