Login
Username:

Password:

Remember me



Lost Password?

Register now!

Sections

Who's Online
122 user(s) are online (84 user(s) are browsing Forums)

Members: 1
Guests: 121

Templario, more...

Headlines

Forum Index


Board index » All Posts (salass00)




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


@trgswe

Quote:

yes, but you might have to install samba 1.0/CIFS or/and samba
direct feature from the control-panel/programs/turn windows
feature on or off, you might have to use password/user since
windows 10/11 does not allow guest access to shares under certain
circumstances


Definitely no need to do this for smb2-handler (only the ancient smbfs needs it). Libsmb2 has zero support for the old and insecure SMBv1/CIFS protocol (only SMBv2/v3 are supported).

That being said the current AmigaOS port of libsmb2 is limited to NTLMSSP authentication only (not sure if this is a problem) as it is built without libkrb5.

Go to top


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


@tekmage

The total blocks count is too large for id_NumBlocks. Try this version and report if it works better:

https://www.dropbox.com/s/t6nzkjocs7u870h/smb2fs-20230104.7z?dl=0

The reported fs block size will be larger than it actually is with this version, but the used/free percentages should at least be reasonably correct.

Go to top


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


@tekmage

Can you run smb2-statvfs-sync against your samba shares and report what it outputs?

You can get the program here:
https://www.dropbox.com/s/1tcz1xnoypj7ulg/smb2-statvfs-sync.7z?dl=0

Go to top


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


@BSzili

You're welcome.

Go to top


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


@BSzili

There is something wrong in smb2-handler as well in that smb2_rmdir() returns success (zero) even though it did nothing.

Go to top


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


@BSzili

Not sure what you mean. That is how deleting normally works in AmigaDOS (and Linux too) if you call Delete() on a non-empty directory it fails with ERROR_DIRECTORY_NOT_EMPTY/ENOTEMPTY. In order to delete a directory with contents you have to recursively delete the contents first and only then delete the directory (if you use the WB delete function it does this behind the scenes, if you use delete command you have to use the ALL switch).

I just tried using WB to delete a couple of directories over smb2-handler on my AmigaOS 4.1 FE update 2 system and it worked just fine (I also checked on the Ubuntu host and the directories really were deleted).

That being said if whatever method you are using to delete using relies on IoErr() returning specifically ERROR_DIRECTORY_NOT_EMPTY after Delete(dirname) then that won't work with the current smb2-handler.

Go to top


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


@Spectre660

smb2-handler V53.2 is now available which maybe fixes your problems:

https://github.com/salass00/smb2fs/releases

The libsmb2 rename function was previously missing code to convert the path separators ('/' to '\') in the destination path.

Go to top


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


@salass00

Quote:

...while testing the rename function I did find a bug in filesysbox in that it doesn't allow to rename a file if the only change is in the letter case of the file name (f.i. "rename tmp TMP") and the underlying file system is case insensitive. Also if the rename is a no-op it should return success (currently it returns ERROR_OBJECT_EXISTS).


These two bugs are now fixed in filesysbox V54.11.

Go to top


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


@Spectre660

Quote:

Renaming the file works just fine here both from WB and from shell.

I was initially a little confused why the tab completion wouldn't find the file, but then I realized that the problem was because I had 'Show .info files' unchecked in the shell settings.

Quote:

With the other issue I get (-1) Error -1 when trying to move the files between directories .


Moving/renaming from one dir to another works fine for me also.

What OS is the Samba share that you are using running on?

The -1 error suggests that it is the smb2_rename() function that is failing.

Go to top


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


@Ami603

Quote:

In the meanwhile i've noticed that i cannot create files/drawers with some spanish/french characters from AmigaOS4 to my NAS.


You will find this is a problem common to all filesysbox filesystems and is because filesysbox supports/uses only utf-8 file names.

In order to properly convert file names between utf-8 and whatever local 8-bit charset AmigaOS is configured to use there would have to be some method of encoding/escaping the utf-8 characters that have no local charset equivalent that ideally doesn't run into false positives or use too many special characters (so you get problems with pattern matching). Even with a relatively efficient scheme a utf-8 character could end up taking between 4 to 6 characters which to me is rather impractical.

Go to top


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


@Spectre660

rename 7500.Last.TCD.info 7501.Last.TCD.info

works just fine here.

Go to top


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


@Spectre660

Not sure what you are trying to explain but while testing the rename function I did find a bug in filesysbox in that it doesn't allow to rename a file if the only change is in the letter case of the file name (f.i. "rename tmp TMP") and the underlying file system is case insensitive. Also if the rename is a no-op it should return success (currently it returns ERROR_OBJECT_EXISTS).

Go to top


Re: What happened to "LINECMP_GetClass" inside IDiffView?
Just can't stay away
Just can't stay away


@rjd324

I assume there is some code like:
struct Object *obj NewObjectTags(IDiffView->LINECMP_GetClass(), NULL, ..., TAG_END)


If so just replace it with:
struct Object *obj NewObjectTags(NULL"linecmpgclass", ..., TAG_END)

Go to top


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


@Ami603

Thanks for the donation!

Go to top


Re: What happened to "LINECMP_GetClass" inside IDiffView?
Just can't stay away
Just can't stay away


@rjd324

Quote:

I cannot actually find this function even as far back as 53.30.


Are you referring to OpenClass()/CloseClass() functions? If so they've been in intuition.library since the AmigaOS 4.0 pre-releases according to the autodoc.

Go to top


Re: 2022 - December - Santa's Monster Shootout - AmigaOS 4
Just can't stay away
Just can't stay away


@imagodespira

The debug kernel sets node ln_Succ/ln_Pred fields to 0xcccccccc on removal, so if the program accesses the link fields on a removed node it would lead to this kind of crash.

Go to top


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


smb2-handler V53.1 is now available at:

https://github.com/salass00/smb2fs/releases

Go to top


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


@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
Just can't stay away
Just can't stay away


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
Just can't stay away
Just can't stay away


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



TopTop
« 1 (2) 3 4 5 ... 91 »




Powered by XOOPS 2.0 © 2001-2023 The XOOPS Project