Commit Graph

12 Commits

Author SHA1 Message Date
sorgelig
aebed6b479 Minimig: fix behaviour of disk led, add led activity to shared folder access. 2021-08-03 23:49:20 +08:00
sorgelig
9cd404ea65 Common shared memory module. Using O_CLOEXEC for opened files. 2021-04-16 23:12:46 +08:00
Dale Whinham
d48169169e minimig: Fix path resolution for assigns
Only nullify the key in find_path() if the name contains our device
(SHARE:) or volume (MiSTer:) name.

This fixes the ability to create assigns to locations on the shared
filesystem. If find_path() is called with an assign-relative path, we
want to preserve the key so that a relative path is constructed from the
directory associated with that key.
2020-12-13 00:59:55 +00:00
Dale Whinham
bc6e69c26b minimig: Fix error return for ACTION_FINDINPUT
Adapt upstream fix from a314.

Original message:

Using ACTION_FINDINPUT to check if a file exists wrongfully returned
ERROR_DIR_NOT_FOUND instead of ERROR_OBJECT_NOT_FOUND if the file was
searched for in a non-existent subdirectory.
2020-12-12 21:02:00 +00:00
Dale Whinham
5431c99d6a minimig: Add ACTION_EXAMINE_FH to shared filesystem
Adapt upstream fix from a314.

Original message:

This action is performed when doing a drag-n-drop copy from the PiDisk
to an other device in Workbench 3.1.4
2020-12-12 21:02:00 +00:00
Dale Whinham
23a5258e37 minimig: Fix ACTION_SEEK when offset is negative
Some applications would fail to load some files due to negative seek
offsets being corrupted by unsigned conversion.

A simple test case is AmigaGuide: place an AmigaGuide document on the
shared volume and attempt to open it. Before this patch, this would fail
silently.
2020-12-12 21:02:00 +00:00
Dale Whinham
c8a124385e minimig: Add ACTION_SAME_LOCK to shared filesystem
Adapt upstream fix from a314.

This fixes some odd behaviour in Workbench such as:

 - Icons that were "Left Out" would reappear in their parent windows
   when refreshed.
 - Deleted files would not disappear from the window unless it was
   refreshed.

Original message from a314 commit:

This call is used in at least 2.1 to terminate directory traversal
when deleting a directory using Workbench. This sometimes caused
unhandled exceptions in a314d and much worse unintended files being
deleted!
2020-12-12 21:02:00 +00:00
Dale Whinham
255c22e601 minimig: Don't return failure if renaming to self
Renaming a file or directory to its own name is legal under AmigaOS, so
ensure that this case is a no-op and returns success.

This fixes the error encountered when creating a new drawer under SHARE:
and accepting the default name of "Unnamed1", for example.
2020-12-12 21:02:00 +00:00
sorgelig
772d3a71eb Add shared_folder INI option. 2020-07-03 05:52:19 +08:00
sorgelig
e1f2c7879e minimig: fix zip handling in shared folder. 2020-07-02 03:05:22 +08:00
sorgelig
a610b13afd mininig: fix path handling in shared folder. 2020-07-01 16:30:43 +08:00
sorgelig
1f9935d080 minimig: support for shared folder. 2020-06-29 08:19:25 +08:00