Login
Username:

Password:

Remember me



Lost Password?

Register now!

Sections

Who's Online
32 user(s) are online (20 user(s) are browsing Forums)

Members: 1
Guests: 31

sailor, more...

Headlines

 
  Register To Post  

(1) 2 3 4 5 »
AmigaOS port of libsmb2
Just can't stay away
Just can't stay away


See User information
I have just ported Ronnie Sahlberg's libsmb2 to AmigaOS 4.

Testing it with the smb2-ls-sync example program (being able to specify the password on the command line is a custom extension I've made) to list a samba share on Ubuntu 22.04 LTS:
8.Work:Tempsmb2-ls-sync smb://user:password@fubuntu/myhome/Development/Projects/filesystems/smb2fs/libsmb2-git/
makefile             FILE                 1353 Sat Dec 10 10:17:00 2022
config
.h             FILE                 2997 Fri Dec  9 20:22:32 2022
lib                  DIRECTORY               0 Sat Dec 10 17
:47:07 2022
obj                  DIRECTORY               0 Sat Dec 10 17
:47:10 2022
libsmb2
.a            FILE              1638578 Sat Dec 10 17:47:10 2022
include              DIRECTORY               0 Fri Dec  9 21:13:55 2022
examples             DIRECTORY               0 Sat Dec 10 17
:47:31 2022
COPYING              FILE                  895 Fri Dec  9 19
:48:46 2022
LICENCE
-LGPL-2.1.txt FILE                26530 Fri Dec  9 19:48:46 2022
..                   DIRECTORY               0 Sat Dec 10 13:16:12 2022
.                    DIRECTORY               0 Sat Dec 10 17:47:10 2022


The next step will be to try and use this to create a file system client using filesysbox.

Go to top
Re: AmigaOS port of libsmb2
Home away from home
Home away from home


See User information
At last :) Thumbi as always!

Join us to improve dopus5!
AmigaOS4 on youtube
Go to top
Re: AmigaOS port of libsmb2
Quite a regular
Quite a regular


See User information
@salass00

awesome work!!!!!

Go to top
Re: AmigaOS port of libsmb2
Home away from home
Home away from home


See User information
Well done

Go to top
Re: AmigaOS port of libsmb2
Home away from home
Home away from home


See User information
@salass00

Nice! Is there an equivalent server-side project out there?

One reason why the ZitaFS project exists, is because file sharing on the local network is lacking on AmigaOS> I know Samba and smbfs exist, but they're such a nightmare that I gave up on them years ago.

Hans

http://hdrlab.org.nz/ - Amiga OS 4 projects, programming articles and more.
https://keasigmadelta.com/ - more of my work
Go to top
Re: AmigaOS port of libsmb2
Just can't stay away
Just can't stay away


See User information
Any chanse of an os3 port? =)

Go to top
Re: AmigaOS port of libsmb2
Just popping in
Just popping in


See User information
@salass00

That's awesome! smb is an important missing piece of the AmigaOS puzzle.

Go to top
Re: AmigaOS port of libsmb2
Just can't stay away
Just can't stay away


See User information
Directory listing now works using smb2-handler:

https://www.dropbox.com/s/85kmk67b5ib8 ... andler_20221213.jpg?raw=1

Opening/closing files and reading from them is to be implemented next.

Go to top
Re: AmigaOS port of libsmb2
Just can't stay away
Just can't stay away


See User information
@Hans

Quote:

Nice! Is there an equivalent server-side project out there?


Not that I know of (except for smbd in samba project). The main samba source code is such a complex mess that I never got very far in my attempts to port it before I gave up on it (the config.h file by itself is like 1000s of lines long).

The way I found the libsmb2 project was that it was suggested to me by github through it's "explore repositories" feature a few days ago, and it sounded interesting so I starred it.

Go to top
Re: AmigaOS port of libsmb2
Just popping in
Just popping in


See User information
@salass00

Is there a project to copy files over SMB using this lib ? This is something I really could use.

Anyways, sounds good!

Steffen

Go to top
Re: AmigaOS port of libsmb2
Just can't stay away
Just can't stay away


See User information
@TheMagicSN

Quote:

Is there a project to copy files over SMB using this lib ? This is something I really could use.


There are example programs smb2-put-sync and smb2-cat-sync (also smb2-put-async and smb2-cat-async which are the same but using libsmb2 async API) that can be used to copy files to and from a samba share.

Go to top
Re: AmigaOS port of libsmb2
Just can't stay away
Just can't stay away


See User information
Reading and writing files (also creating new files) now works with smb2-handler. Saving over an existing file using notepad also required support for the truncate operation which is now implemented as well.

Go to top
Re: AmigaOS port of libsmb2
Not too shy to talk
Not too shy to talk


See User information
@salass00

Great work!!!

Thanks

AmigaOne X5000 -> 2GHz / 16GB RAM / Radeon RX 570 / ATI X1900 / M-Audio 5.1 -> AmigaOS 4.1 FE / Ubuntu Linux / MorphOS
Amiga 1200 -> Recapped / 68ec020 ACA 1221ec / CF HDD / RetroNET connected to the world
Go to top
Re: AmigaOS port of libsmb2
Home away from home
Home away from home


See User information
@salass00

Quote:
Not that I know of (except for smbd in samba project). The main samba source code is such a complex mess that I never got very far in my attempts to port it before I gave up on it (the config.h file by itself is like 1000s of lines long).

That's a pity.

Quote:
The way I found the libsmb2 project was that it was suggested to me by github through it's "explore repositories" feature a few days ago, and it sounded interesting so I starred it.

Maybe GitHub will suggest a server side project.

Hans

http://hdrlab.org.nz/ - Amiga OS 4 projects, programming articles and more.
https://keasigmadelta.com/ - more of my work
Go to top
Re: AmigaOS port of libsmb2
Just popping in
Just popping in


See User information
@salass00

Did you create a separate GitHub page for your port?

AmigaOne X5000 @ 2GHz / 4GB RAM / Radeon X1650 / AmigaOS 4.1 Final Edition / MorphOS 3.17
Amiga1200 / Blizzard 1230 IV / 128 MB RAM / AmigaOS 3.9
Go to top
Re: AmigaOS port of libsmb2
Just can't stay away
Just can't stay away


See User information
The current state of the smb2-handler sources (including libsmb2) is now available at:

https://github.com/salass00/smb2fs

There will be no binary release for smb2-handler yet as there is a problem there that still needs to be fixed. The problem is that eventually it gets stuck in wait_for_reply() calling select() through the poll() wrapper over and over. Interestingly if I make it slower by adding some debug output or by using bsdsocket through the newlib interface it works for longer suggesting that it may be timing related somehow.

Go to top
Re: AmigaOS port of libsmb2
Quite a regular
Quite a regular


See User information
Thanks for sharing the sources early! I might have a stab at an OS3 port, but I was wondering, is filesysbox.library still open source? The AROS port is, but it's older than the one distributed with Enhancer Software:
https://github.com/salass00/filesysbox

This is just like television, only you can see much further.
Go to top
Re: AmigaOS port of libsmb2
Just can't stay away
Just can't stay away


See User information
@BSzili

The source code for filesysbox.library V54.9 (latest AmigaOS 4 version) is available at:

https://www.dropbox.com/s/a1nrh5gs6l59 ... lesysbox-54.9-src.7z?dl=0

Go to top
Re: AmigaOS port of libsmb2
Quite a regular
Quite a regular


See User information
Thanks again, I'll give it a try next weekend!

This is just like television, only you can see much further.
Go to top
Re: AmigaOS port of libsmb2
Just popping in
Just popping in


See User information
It is a great porting.
Samba don't good work in AOS4.1.
SMBv1 is deprecated for security problem.

I hope in a NFS client porting, is more simple and fast

Go to top

  Register To Post
(1) 2 3 4 5 »

 




Currently Active Users Viewing This Thread: 2 ( 0 members and 2 Anonymous Users )




Powered by XOOPS 2.0 © 2001-2016 The XOOPS Project