Login
Username:

Password:

Remember me



Lost Password?

Register now!

Sections

Who's Online
70 user(s) are online (41 user(s) are browsing Forums)

Members: 3
Guests: 67

Valiant, livebyfaith74, nbache, more...

Headlines

Forum Index


Board index » All Posts (salass00)




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


@Ami603

Quote:

Does smb2fs handler support the ACTION_SET_DATE packet?


No, it is not supported because libsmb2 does not have a function to set the mtime of a file or directory.

I've thought about making the operation fail silently instead but that could cause problems for programs that depend on this feature. IMHO it is better to (as happens currently) return ERROR_ACTION_NOT_KNOWN (meaning that the fs does not support the operation) and then the program can itself decide whether this error is critical enough to stop it from continuing or not.

Go to top


Re: Porting astromenace to AmigaOS4
Just can't stay away
Just can't stay away


@SinanSam460

Just move -lpng16 so that it's right after -lfreetype.

Go to top


Re: Daylight saving settings not saving properly in Time Prefs
Just can't stay away
Just can't stay away


@VooDoo

What version of battclock.resource do you have installed ("version full battclock.resource")?

There were some fixes made for the X5000 and A1222 in 2022.

Go to top


Re: Daylight saving settings not saving properly in Time Prefs
Just can't stay away
Just can't stay away


@livebyfaith74

IIRC doing "setclock reset" may also help on some h/w.

Go to top


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


@Raziel

The github repo is only for the AROS/AmigaOS 3 fork of filesysbox.

The AmigaOS 4 version is distributed with the OS and with Enhancer Software only.

Go to top


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


Apparently it is possible to set some samba servers to timeout connections after a period of inactivity (for smbd this can be done using the deadtime option in /etc/samba/smb.conf) and smb2fs doesn't handle this situation very well ATM.

Ideally smb2fs should detect this somehow and restart the connection when it happens, but as a quick fix I tried to make smb2fs ping the server at regular intervals using smb2_echo() to keep the connection alive but this didn't seem to help.

Go to top


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


@Raziel

Quote:

Renaming files/directories that only change case status doesn't work

e.g. rename "Sound" as "sound"
Error: Rename failed - object already exists


This is fixed in the AmigaOS 4 filesysbox library since version 54.11 (26.12.2022) and in the AROS/AmigaOS 3 library since version 54.1 (14.1.2023).

Go to top


Re: EasyRPG Player
Just can't stay away
Just can't stay away


@BSzili

I take it you're using the libpixman-1 static library that gets built as part of pixman-1.library?

If so, the reason that you are getting the error message when running the program from CLI and exiting is that I use there AllocTaskMemEntry() to implement LTS (local thread storage). The reason I do it this way is that this type of memory gets automatically freed on task/process exit and is easily accessible from the tc_MemEntry list in the Task/Process structure.

The only minor problem is that when a program is started from CLI it is run on the context of the existing CLI process, which then complains if the program returns with this memory allocation still in the tc_MemEntry list. In the shared library I've currently fixed it by adding a call to tls_fast_path_cache_free() in the library Close() function.

For a static build you should be able to fix it by adding a destructor function like so:
void tls_fast_path_cache_free(void);

__attribute__((destructor)) static void _cleanup_pixman(void)
{
    
/* Free TLS data */
    
tls_fast_path_cache_free();
}

Go to top


Re: Shaderjoy 1.24
Just can't stay away
Just can't stay away


@khayoz

The OpenLibrary() path is wrong. It should be simply "arexx.class" instead of "classes/arexx.class" (there is no classes directory under CLASSES:).

It only works if the class is already loaded in memory because then the path is ignored.

Go to top


Re: power managment and gfx cards discussion
Just can't stay away
Just can't stay away


I added A1222/X5000 DMA support to graphics.library in January 2022 (versions 54.250/54.251). In order to work it also needs a newer kernel for the fsldma.resource (if a too old kernel is detected the DMA support code is not used).

Go to top


Re: AmiUpdate unarchiver question
Just can't stay away
Just can't stay away


@Raziel

The PKWARE zip archive format supports several compression methods including zlib (AKA deflate), bzip2, lzma, xz and zstd.

Traditionally zip archives only use zlib compression though, and zip archives that use more advanced methods are generally referred to as zipx archives even though the file format is the same.

The xadmaster.library zip client supports only zlib method but Archiver has it's own zip client that makes use of zip.library which has support for other compression methods, as well as being able to create/modify zip archives and not just read from them.

Go to top


Re: Latest DOSBOX : with PPC dynamic recompiler and stuff , right there!
Just can't stay away
Just can't stay away


@SinanSam460

__lwbrx() sounds like it's an inline assembler function based on the lwbrx instruction. If so, you should be able to replace this instance with:

entriesDataSize = __builtin_bswap32(entriesDataSize);

assuming that you are using a new enough gcc.

Go to top


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


@joerg

I am aware of those functions as they were based on ones I use in my filesysbox. A couple of functions for decoding and encoding UTF-8 characters (that programmers can choose to use or not) does not mean that the OS supports UTF-8 though.

Decoding and encoding UTF-8 sequences has never been a problem on AmigaOS really (even before utility.library support there were several 3rd party libraries available for this, as well as the functions in newlib).

The most important thing that is missing IMO is that there is no way to actually render UTF-8 or unicode using the standard graphics.library text functions. The only way to do so currently is to ignore graphics.library and use the low level bullet interface directly which is really tedious and doesn't work well as a general solution for applications. Until this is solved there is no point in trying to use UTF-8 in locale catalogs as those characters will not render correctly in pretty much any applications at all.

Go to top


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


@joerg

AmigaOS does not support UTF-8 and that is unlikely to change any time soon.

Should a miracle happen and this situation changes at some point it is just a matter of removing/commenting out a line in the filesysbox makefile to disable the UTF-8 to/from local charset conversion.

Unlike the old attempt at charset conversion this one:
1. Queries what charset is used on the system and uses the unicode maptable for that charset.
2. Unicode values that can't be converted into the local charset are converted into base32 escape sequences that can be converted back into the original UTF-8.
3. Conversion only happens when strings are passed between AmigaDOS and filesysbox. Internally filesysbox uses only UTF-8 file names.

I implemented it because I got tired of literally everyone's initial reaction to trying a FUSE file system being to ask why it doesn't handle UTF-8 characters, even though it handles them just fine (just nothing else did or does).

Go to top


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


@FlynnTheAvatar

Quote:

If I understand correctly, FileSysbox should handle the translation from UTF-8 to the local (latin-1) charset. Does this also work on AmigaOS 4?

I have a share with some non latin-1 chars (music files) that only works correctly with smbfs (the old one) on AmigaOS 4. Both ssh2-handler and smb2fs-handler cannot handle the UTF-8 filenames.

Filesnames are correct with the latest filesysbox and smb2-handler on my Amiga with a 68020 and AmigaOS 3.2.1.

Filesysbox.library has the version 54.9 on my Amiga X5000.


For AmigaOS 4 charset conversion was added in version 54.12 of filesysbox.library that was released to beta testers only just under two weeks ago (6.1.2023).

Go to top


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


@trgswe

Quote:

...i have the active=1 in the tooltypes but when booting the
samba share isn't mounted and can't be mounted either


When you say "booting" do you mean that you have it auto-mounted from DEVS:DOSDrivers? If so it will not work because this is too early and there is no usable network connection yet.

Maybe in a later version I will make it keep trying every x seconds to connect if it fails the first time, but right now it only makes one attempt at connecting to the share and if that fails it gives up.

To get more information on why it is failing you have to capture the serial debug output using sashimi/dumpdebugbuffer or a null-modem cable.

Go to top


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


@pvanni

No, not yet. The reason is that smb2-handler doesn't support either utime() or utimens() FUSE operations as I have not find a way to implement them using libsmb2.

As a result any call to IDOS->SetDate() will result in ERROR_ACTION_NOT_KNOWN.

Go to top


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


Smb2-handler uses regular gethostbyname() from bsdsocket.library to resolve the host name into an IP address (same as ssh2-handler).

To avoid having to use IP addresses I have on my computers in DEVS:Internet/hosts (/etc/hosts on linux) the host names and corresponding static IP addresses of machines on my local network.

Go to top


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



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




Powered by XOOPS 2.0 © 2001-2023 The XOOPS Project