Giter Club home page Giter Club logo

passfs's Introduction

The purpose of this code is to be an example of the use of the FUSE system.
FUSE allows filesystems to be written and run in user space as opposed to the Kernel.

As such it implements a 'pass through' file system that simply takes a directory
and treats it as the root of a filing system that it then makes available on a given mount mount. All file operations are simply executed unchanged. 

It has no purpose except to demonstrate the features of FUSE and possibly to be a template.

You compile it by typeing ./build.sh

Some notes on structure

header files
------ -----
fsname.h       contains the name and version of the file system (in this case passfs)
userModeFS.h   is the main header file
other .h files are headers relating to the corresponding .c modules

c source files
passfs.c      contains the call back procedures that actually implement the file system.
opts.c        contains the main procedure and the call back procedure that handles
              options specific to the passfs file system. It defines the option templates.
debug.c       initialises the debug output, debug.h define the debug macros.
status.c      implements the stats system.

passfs's People

Contributors

jrk avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

passfs's Issues

${LDFLAGS} in wrong place in ${CC} command

${CC} ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} -o passfs *.c "$@"

results in "undefined reference to `fuse_opt_add_arg'" messages.

${CC} ${CFLAGS} ${CPPFLAGS} -o passfs *.c ${LDFLAGS} "$@"

Works OK.

Readme is incorrect; this has many more purposes

If I'm understanding correctly, it's essentially a bind mount that doesn't require any special permissions to set up. (Other than access to FUSE of course, but that's usually granted to everyone by default.) This makes it useful for anything where you might want to temporarily replace a directory tree with a link to somewhere else, in a non-destructive way that doesn't require any cleanup.

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.