Giter Club home page Giter Club logo

fuse_xattrs's Introduction

Build Status

Abstract

This filesystem provides xattr support using sidecar files.

Latest version

The latest version and more information can be found on http://github.com/fbarriga/fuse_xattrs

How to mount a filesystem

Once fuse_xattrs is installed (see next section) running it is very simple:

fuse_xattrs source_directory mountpoint

To unmount the filesystem:

fusermount -u mountpoint

Distribution packages

Archlinux (https://aur.archlinux.org/packages/fuse_xattrs/):

yaourt -S fuse_xattrs

Building

First you need to download FUSE 2.9 or later from http://github.com/libfuse/libfuse.

mkdir build && cd build
cmake ..
make

Code Coverage

mkdir build && cd build
cmake -DENABLE_CODECOVERAGE=1 -DCMAKE_C_COMPILER=/usr/bin/gcc -DCMAKE_BUILD_TYPE=Debug ..
make
make fuse_xattrs_coverage

Installing

make install

Links

fuse_xattrs's People

Contributors

fbarriga avatar rr- avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

fuse_xattrs's Issues

Implement / fix symlinks

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$

Implement touch

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.

File ownership anomalies

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

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.