30 December 2022, 10:54 | #1 |
old chunk of coal
Join Date: Nov 2011
Location: Hungary
Posts: 1,289
|
SMB2FS OS3 port
This is a port of the OS4 SMB2FS handler by Fredrik Wikstrom aka salass00. With this handler you no longer have to enable the old and insecure SMBv1/CIFS protocol, as you can access SMBv2/3 shares directly.
Unlike smbfs it comes as a traditional file system handler, so you have to create a MountList file and use the C:Mount utility to mount it either from the command line or via an icon. For the latter check DEVS:DOSDrivers or SYS:Storage/DOSDrivers to see how it's done. Do not mount the share until you are online! Here's an example MountList: Code:
Handler = L:smb2-handler StackSize = 16384 Priority = 5 GlobVec = -1 Activate = 1 Startup = "smb://myuser:password123@mypc/myshare" https://github.com/salass00/smb2fs You can also find the releases for the original OS4 version there. The current requirements are AmigaOS 3.0, a TCP/IP stack and filesysbox.library. It should go into the L: drawer on your system volume, but you can place it anywhere as long as the Handler path in the MountList is correct. smb2fs-handler: GitHub: https://github.com/salass00/smb2fs/releases Aminet: https://aminet.net/package/disk/misc...s.m68k-amigaos filesysbox.library: GitHub: https://github.com/salass00/filesysbox/releases Aminet: https://aminet.net/package/util/libs...x.m68k-amigaos For the cutting edge version look at GitHub, I'll update the Aminet versions once a week if there's a new release. Last edited by BSzili; 23 January 2023 at 08:03. Reason: The port is now merged into the official repo |
30 December 2022, 11:11 | #2 |
Registered User
Join Date: Jan 2005
Location: Umeå
Age: 43
Posts: 922
|
Can it be compiled also for the 68000 too, so this can be enjoyed on that class of machines? I myself have an A500+ with a plipbox which very much would appreciate this .
|
30 December 2022, 11:30 | #3 |
old chunk of coal
Join Date: Nov 2011
Location: Hungary
Posts: 1,289
|
Of course, I'll look into this! It should work on 68000 too, the speed will be OK as long as SMBv3 end-to-end encryption is not turned on.
edit: Not tested yet, but here they are: http://bszili.morphos.me/stuff/filesysbox.library.000 http://bszili.morphos.me/stuff/smb2-handler.000 Last edited by BSzili; 30 December 2022 at 11:57. |
30 December 2022, 12:14 | #4 |
Italian Amiga Zealot
Join Date: Jan 2009
Location: Italy
Age: 36
Posts: 1,910
|
Very nice! How does this compare speed-wise to a more classical FTP-client setup?
|
30 December 2022, 12:51 | #5 |
old chunk of coal
Join Date: Nov 2011
Location: Hungary
Posts: 1,289
|
I've only tried it on high-end systems, so I can't tell, but it should be comparable to smbfs.
|
30 December 2022, 13:07 | #6 |
Registered User
Join Date: Jan 2005
Location: Umeå
Age: 43
Posts: 922
|
The files does not need to be written to disk first as it would need to in the ftp client case, so unless something is wrong with the implementation, it should in general be faster as you can operate on the file directly - say if you extract an archive directly from the network drive.
|
30 December 2022, 13:08 | #7 | |
Registered User
Join Date: Jan 2005
Location: Umeå
Age: 43
Posts: 922
|
Quote:
|
|
30 December 2022, 14:38 | #8 | ||
Italian Amiga Zealot
Join Date: Jan 2009
Location: Italy
Age: 36
Posts: 1,910
|
Quote:
Quote:
SMB2/3 is certainly an improvement over SMB1 since Microsoft is making it more and more difficult to use SMB1 in Windows - I have an Ubuntu VM with Samba just because of that |
||
30 December 2022, 14:58 | #9 | |
Registered User
Join Date: Jan 2005
Location: Umeå
Age: 43
Posts: 922
|
Quote:
|
|
30 December 2022, 15:44 | #10 | |
old chunk of coal
Join Date: Nov 2011
Location: Hungary
Posts: 1,289
|
Quote:
|
|
30 December 2022, 16:07 | #11 |
Registered User
Join Date: Dec 2017
Location: Sassari/Italy
Posts: 867
|
This is a great news.
I do have smbv1 on my Linux PC just to share a few folders with my Amiga. I'll try this as soon as I have a moment. Thanks for sharing! |
30 December 2022, 17:11 | #12 |
Registered User
Join Date: Dec 2014
Location: Netherlands
Posts: 1,406
|
Awesome, thanks so much!!! Indeed, now I don't need to temporarily turn on SMBv1 on my Synology NAS when wanting to access it from Amigas.
|
30 December 2022, 18:03 | #13 | |
Registered User
Join Date: Jan 2005
Location: Umeå
Age: 43
Posts: 922
|
Quote:
|
|
30 December 2022, 18:36 | #14 |
old chunk of coal
Join Date: Nov 2011
Location: Hungary
Posts: 1,289
|
That's quite possible, later I'll check it on a 68k setup in WinUAE.
|
30 December 2022, 19:52 | #15 |
old chunk of coal
Join Date: Nov 2011
Location: Hungary
Posts: 1,289
|
I traced the problem back to a memmove -> bcopy in libnix, and added a quick workaround. I'll fix this properly, but could you download and test smb2-handler.000 again?
Last edited by BSzili; 30 December 2022 at 21:20. |
30 December 2022, 21:44 | #16 | |
Registered User
Join Date: Jan 2005
Location: Umeå
Age: 43
Posts: 922
|
Quote:
The new 000 version does work on the A3000 strangely though and it fixed an issue I was just about to report: uses up all memory after a while if you run DiskSpeed on it. To be clear, the 020 version never had this issue and the new 000 version fixed it. Or well at least not the 020 version I downloaded (md5sum 63a432251c7ca3176fcb13998e942518), which I downloaded at the same time as the second 000 version (md5sum bcb2d5159a587dd8d5b8d2525e8cb936). Last edited by patrik; 30 December 2022 at 21:54. Reason: More clarifications |
|
30 December 2022, 22:09 | #17 |
old chunk of coal
Join Date: Nov 2011
Location: Hungary
Posts: 1,289
|
The "No Disk Present in device" error usually appears when it can't create the volume for some reason. In this context it can't connect to the share. I assume you can you ping the host name or IP from the smb:// url on that machine.
|
30 December 2022, 23:03 | #18 |
Registered User
Join Date: Jan 2005
Location: Umeå
Age: 43
Posts: 922
|
Yes. Got a smbfs mount of the same share working on the A500+ and am using the same binaries and mountlist on the A3000, so it reasonably should work indeed.
|
31 December 2022, 00:31 | #19 |
Registered User
Join Date: Jan 2005
Location: Umeå
Age: 43
Posts: 922
|
My bad, it works!
I assumed ping was working as smbfs was working with that hostname. However smbfs must source that hostname via nmbd? or something as the A500+ was missing the domain setting for the local network, making it unable to resolve that hostname with ping and other normal network tools. Sorry for that! |
31 December 2022, 01:06 | #20 |
Registered User
Join Date: Jan 2005
Location: Umeå
Age: 43
Posts: 922
|
Ran DiskSpeed on a smb2-handler share on the A3000 and I must say that the performance is really good:
Code:
Testing with a 262144 byte, MEMF_FAST, LONG-aligned buffer. Create file: 298569 bytes/sec | CPU Available: 0% Write to file: 360748 bytes/sec | CPU Available: 0% Read from file: 617957 bytes/sec | CPU Available: 0% Send: Code:
8.Ram Disk:> ttcp -s -t megaburken ttcp-t: buflen=8192, nbuf=2048, align=16384/0, port=5001 tcp -> megaburken ttcp-t: socket ttcp-t: connect ttcp-t: 16777216 bytes in 40.38 real seconds = 405.75 KB/sec +++ ttcp-t: 2048 I/O calls, msec/call = 20.19, calls/sec = 50.72 ttcp-t: 0:40real Code:
8.Ram Disk:> ttcp -s -r ttcp-r: buflen=8192, nbuf=2048, align=16384/0, port=5001 tcp ttcp-r: socket ttcp-r: accept from 192.168.1.1 ttcp-r: 16777216 bytes in 24.46 real seconds = 669.83 KB/sec +++ ttcp-r: 2049 I/O calls, msec/call = 12.22, calls/sec = 83.77 ttcp-r: 0:24real A3000-X-Surf-100-smb2-handler.000.txt A3000-X-Surf-100-smb2-handler.020.txt |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
Thread Tools | |
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Using PotGo on Mouse Port (Port 0)? | Daedalus | Coders. System | 14 | 02 March 2016 20:44 |
Help please - Making Frankenstein os3.0 with os3.5/9 bits | Abdabs | support.Other | 3 | 27 February 2015 21:51 |
Serial port, parallel port, and pipe device mount errors | Samurai_Crow | support.FS-UAE | 4 | 13 March 2014 00:04 |
ECS. Make OS3.1 look like OS3.9 without loosing speed. | lukassid | support.Apps | 21 | 19 February 2013 00:13 |
Sending debug output to the serial port OS3.x | NovaCoder | Coders. C/C++ | 0 | 18 February 2013 06:56 |
|
|