Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FSP server is not write enabled #79

Closed
Extrems opened this issue Feb 10, 2022 · 4 comments
Closed

FSP server is not write enabled #79

Extrems opened this issue Feb 10, 2022 · 4 comments
Labels
fsp-server FSP server

Comments

@Extrems
Copy link

Extrems commented Feb 10, 2022

To support future development, there should be a swiss directory under the server's home directory, and it should contain the following blank files:

  • .FSP_OK_ADD
  • .FSP_OK_DEL
  • .FSP_OK_MKDIR
  • .FSP_OK_RENAME

These may be in the home directory instead if security is not a concern, while leaving the creation of the swiss directory to Swiss.

Originally posted by @Extrems in https://github.com/danmons/retronas/discussions/74#discussioncomment-2145850

@sairuk sairuk added the fsp-server FSP server label Feb 10, 2022
@danmons
Copy link
Collaborator

danmons commented Feb 10, 2022

New config now does the following:

  • Sets FSP home folder as {{retronas_path}}/gamecube/swiss
  • Below that creates the following folders:
    • swiss (as requested)
    • tmp (needed for large writes apparently? Set matching in fspd.conf as per man page)
    • games symlink to ../../roms/nintendo/gamecube/iso
    • The four empty dotfiles requested above

Testing with the command line "fput" command like such:

date > testfile.txt
FSP_HOST=XXX.XXX.XXX.XXX FSP_PORT=2121 fput testfile.txt

Sees the file dropped in to the FSP home directory, mode 0664. (Previously this test failed with a write permission error, now working with the above config).

Changes committed and now public.

@Extrems
Copy link
Author

Extrems commented Feb 11, 2022

If you create the swiss directory ahead of time while creating the .FSP files in the home directory, the .FSP files also need to be in the swiss directory.

@danmons
Copy link
Collaborator

danmons commented Feb 11, 2022

Changes pushed to create the dotfiles in both the top level and swiss dir.

@sairuk
Copy link
Collaborator

sairuk commented Feb 13, 2022

Does this mean we can close this issue off or do we need confirmation from @Extrems of our deployment?

@Extrems Extrems closed this as completed Feb 13, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
fsp-server FSP server
Projects
None yet
Development

No branches or pull requests

3 participants