---------> Gotek topic <---------
If we are talking about Gotek (I have it one, I use this, so I know exactly how it works).
Please note I uploaded FlashFloppy firmware (
https://github.com/keirf/FlashFloppy ) into my Gotek (
https://www.aliexpress.com/item/Free-Sh ... 69272.html )
So to close "how Gotek works" topic:
Pendrive needs to be formatted as FAT32. Then you can copy into this pendrive, for example *.ima files (IBM PC diskettes images) or *.adf (Commodore Amiga diskettes images).
FlashFloppy firmware (during startup) read the pendrive structure and "put image files" into slots (000-999) you can swith them using switch buttons).
You can put-out a pendrive from a Gotek in any time, and when you put-in it again, then Gotek read the filesystem structure again and put all diskette images into the slots 000-999 again.
---------> End of Gotek topic <---------
Solution I'm talking about:
1). Raspberry Pi Zero W inserted into Gotek.
2). During Power-Up Raspberry Pi Zero W connect via WiFi with SMB server located @LAN, to synhronize folder on SD card with external Samba (located @LAN) folder content.
3). After sync disconnect from WiFi / Samba
4). Switch Raspberry Pi Zero W to USB Gadget to be visible as pendrive for Gotek
5). Gotek see files previously synchronized with Samba content @LAN.
Please note this is my second scenario, because as it was mentioned (as I understood) this is not possible to make a real time bidirectional connection between Samba server and "pendrive" connected into a Gotek.