fbarriga / fuse_xattrs Goto Github PK
View Code? Open in Web Editor NEWadd xattrs support using sidecar files.
License: GNU General Public License v3.0
add xattrs support using sidecar files.
License: GNU General Public License v3.0
First I create two test directories and bind one to another:
rr-@tornado:~$ mkdir a b
rr-@tornado:~$ fuse_xattrs -o allow_other a b
I create a file as my user:
rr-@tornado:~$ echo test >b/my_file
I create a file as root:
rr-@tornado:~$ sudo su
[sudo] password for rr-:
root@tornado:/home/rr-$ echo test2 >b/root_file
root@tornado:/home/rr-$
Let's examine ownership:
rr-@tornado:~$ la b
total 8
-rw-r--r-- 1 rr- rr- 5 Mar 16 21:13 my_file
-rw-r--r-- 1 rr- rr- 6 Mar 16 21:13 root_file
Both are owned by the user that mounted the directory.
If I repeat the steps in the source directory, I get expected ownership:
rr-@tornado:~$ cd a
rr-@tornado:~/a$ rm my_file root_file
rr-@tornado:~/a$ touch my_file
rr-@tornado:~/a$ sudo touch root_file
rr-@tornado:~/a$ la
total 0
-rw-r--r-- 1 rr- rr- 0 Mar 16 21:17 my_file
-rw-r--r-- 1 root root 0 Mar 16 21:17 root_file
rr-@tornado:~/img$ touch a
touch: setting times of 'a': Function not implemented
rr-@tornado:~/img$ ln -s a b
ln: failed to create symbolic link 'b': Input/output error
File gets created, though:
rr-@tornado:~/img$ ls a b
a
b
But it doesn't function:
rr-@tornado:~/img$ echo asdasd>a
rr-@tornado:~/img$ cat b
rr-@tornado:~/img$
Trying to touch
a file succeeds in terms of file creation, but then I get:
touch: setting times of 'img/a': Function not implemented
Since with the exception of xattr, this file system should behave like bindfs / passthrough, I think this function should get implemented.
This project is a godsend BTW. Shame SSHFS and NFS refuse to implement support for xattrs despite RFCs and patches flying around.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.