Code Monkey home page Code Monkey logo

Comments (9)

wizzard avatar wizzard commented on July 29, 2024

Hello,

I've committed a small patch which should solve this issue.

Please update your copy, recompile, update config file and try to launch RioFS with the following command line parameters:

--uid=[user id]
--gid=[group id]
--fmode=[mode for all files]
--dmode=[mode for all directories]

This is an example:

riofs --uid=1001 --gid=1000 --dmode=0700 --fmode=0440 -c ../test.conf.xml test_bucket /mnt/

Could you please let us know how it works for you ?
Thank you !

from riofs.

tombou avatar tombou commented on July 29, 2024

Hi,

Seriously, I'm impressed. It works pretty well this patch! Thank you for this. The more I test RioFS, more I like it! It's seriously faster than S3FS, simpler and better so far.

Now, I'm facing another issue. I have a script which work well with s3fs but not at all with RioFS. Let me explain. This script before uploading into a folder check if there is enough available space. With s3fs, by default there is 260++ terabytes available but with RioFS the available space is the same as the occupied space.
There is a way to let know the system that Amazon S3 is huge?

Thank to you!

from riofs.

wizzard avatar wizzard commented on July 29, 2024

Hello,

could you please send me a simple copy of your script?
Basically I would like to see which function do you use for checking available space.

And thank you for helping us with the testing, it really helps !

from riofs.

tombou avatar tombou commented on July 29, 2024

Hi,

in fact the script use disk_free_space() and disk_total_space() functions in php. http://www.php.net/manual/en/function.disk-free-space.php
Otherwise, it can be bypassed easily in my script.

Thank you!

from riofs.

wizzard avatar wizzard commented on July 29, 2024

Hello,

I've committed a small patch which adds support for disk_free_space() / disk_total_space() functions.
Could you please give it a try ?

Thank you !

from riofs.

tombou avatar tombou commented on July 29, 2024

I tried it and it works perfectly. If I got another issue, I will contact you for sure!

Thank you, it's appreciated.

from riofs.

skorokithakis avatar skorokithakis commented on July 29, 2024

Hello,
are fmode/dmode for setting ACLs on S3? I am trying to set ACLs but I can't see a way. If not, would it be possible to map the POSIX permissions (ugo) to Amazon ACLs (owner/authenticated/everyone)? So, to make a file readable by everyone, I'd do "chmod o+r myfile".

If fmode and dmode can be used to make every file I write world-readable, it's fine by me, that's all I need anyway. The documentation could probably use some clarification, though, as it doesn't go into detail on either what "mode for all files" is (which files? Remote or just the local representations?) or what you need to set it to (is it the same octal argument chown accepts? What does each thing do if it's mapped to remote files?).

from riofs.

wizzard avatar wizzard commented on July 29, 2024

The current implementation of fmode / dmode sets only local files and folders permissions and are not connected to remote S3 ACLs. The idea behind these parameters is to be able to control who can read/write local filesystem.

fmode / dmode use standard octal arguments as values: --fmode=0666 will set -rw-rw-rw- mode for all files on local RioFS filesystem.

Thank you for pointing out the lack of fmode and dmode documentation, we will add clarification and some usage examples.

P.S. chmod currently isn't supported.

from riofs.

skorokithakis avatar skorokithakis commented on July 29, 2024

I see, thanks!

from riofs.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.