Linux projected filesystem library
Перейти к файлу
Chris Darroch 224e054282
Merge pull request #77 from github/rename-perm-event
add move permission and delete notification events
2019-06-28 16:45:10 -07:00
docker update VFSForGit to linux-rename-events branch 2019-06-19 22:40:59 -07:00
docs add docs re file permission issues with xattrs 2019-06-05 23:41:53 -07:00
include add move permission and delete notification events 2019-06-19 14:25:38 -07:00
lib add move permission and delete notification events 2019-06-19 14:25:38 -07:00
m4 add --with-libfusepkg config option for custom lib 2019-02-05 21:36:52 -08:00
t add move permission and delete notification events 2019-06-19 14:25:38 -07:00
.dockerignore fix distpkg, new repo name 2019-01-15 13:54:26 +11:00
.gitattributes set gitattributes for linguist code detection 2019-02-01 17:03:15 -08:00
.gitignore ignore autoheader backup files 2019-06-02 00:24:05 -07:00
.gitmodules Docker helpers 2019-01-14 14:56:48 +11:00
.travis.yml Docker helpers 2019-01-14 14:56:48 +11:00
CODE_OF_CONDUCT.md add opensource+libprojfs@github.com email 2019-01-29 16:15:34 -08:00
CONTRIBUTING.md refer to getting started notes in CONTRIBUTING 2019-01-29 21:52:50 -08:00
COPYING license fixes 2019-01-15 09:58:56 +11:00
Makefile.am fix missing/changed info files for make dist 2019-04-23 17:26:18 -07:00
NOTICE adjust library name and wording in NOTICE 2019-01-31 17:48:43 -08:00
README.md Fix README.md 2019-03-14 01:19:31 +01:00
autogen.sh simplify autogen by removing unneeded config run 2019-02-05 11:22:08 -08:00
azure-pipelines.yml Set up CI with Azure Pipelines 2019-02-05 09:30:35 +11:00
config.sh.in initial 2019-01-14 10:22:50 +11:00
configure.ac projfs_new accepts FUSE args, and initial proj opt 2019-05-23 14:28:45 +10:00
projfs.pc.in initial 2019-01-14 10:22:50 +11:00
tap-driver.sh initial 2019-01-14 10:22:50 +11:00
test-driver initial 2019-01-14 10:22:50 +11:00

README.md

libprojfs

A Linux projected filesystem library, similar in concept to the Windows Projected File System and developed in conjunction with the VFSForGit project.

While the libprojfs C library may also be used independently of VFSForGit, our primary goal is to enable users to run the VFSForGit client on a Linux system.

PLEASE NOTE: At present libprojfs is undergoing rapid development and its design and APIs may change significantly; some features are also incomplete, and so we do not recommend libprojfs for any production environments.

However, we wanted to share our progress to date, and we hope others are as excited as we are at the prospect of running the VFSForGit client on Linux in the not-too-distant future!

Current Status

Branch Functional Tests
master CI status: master

The library is under active development and supports basic directory projection, with additional features added regularly.

We will only make a first, official versioned release once initial development is complete.

A libprojfs filesystem can currently be used to mount a VFSForGit MirrorProvider test client; we expect to continue our pre-release development until the VFSForGit client proper is also functional with libprojfs, at which point we may make an initial tagged release.

Design

The libprojfs library is designed to function as a stackable Linux filesystem supporting a "provider" process which implements custom callbacks to populate files and directories on demand. This is illustrated in the context of a VFSForGit provider below:

Illustration of libprojfs in provider context

Actual file storage is delegated to a "lower" storage filesystem, which may be any Linux filesystem, e.g., ext4. At the time when a libprojfs filesystem mount is created, there may be no files or directories in the lower filesystem yet.

As normal filesystem requests are made within the libprojfs mount (e.g., by ls or cat), libprojfs intercepts the requests and queries the provider process for the actual contents of the file or directory. The provider's response is then written to the lower filesystem so future accesses may be satisfied without querying the provider again.

See our design document for more details.

We anticipate that whether libprojfs remains a FUSE-based library, or becomes a libfuse-like interface to a Linux kernel module, it may be useful for purposes other than running a VFSForGit client.

For this reason, we have tried to ensure that our native event notification API is aligned closely with the Linux kernel's fanotify/inotify/fsnotify APIs.

Getting Started

Please see our detailed Build and Installation page for step-by-step instructions on how to build and install libprojfs and its dependencies on Linux, and (optionally) also build and run the VFSForGit MirrorProvider test utility with libprojfs.

So long as libprojfs remains based on FUSE, the primary dependency for libprojfs is the user-space libfuse library, as well as having the Linux fuse kernel module installed.

Support for user.* extended attributes must also be enabled on the "lower" storage filesystem. Your Linux kernel should have been compiled with the necessary configuration options (e.g., CONFIG_EXT2_FS_XATTR for ext2/3/4) and the underlying filesystem you use for libprojfs should be mounted with appropriate settings (e.g., user_xattr for ext2/3/4).

If you are using a Docker container, you may need to ensure the fuse kernel module is installed on your host OS, and user.* extended attributes are supported on your host's filesystem. See the Using Docker containers section for more details.

To test libprojfs with the Microsoft VFSForGit MirrorProvider (as we do not support the primary VFSForGit GVFS provider yet), .NET Core must be installed and parts of the VFSForGit project built. See the Building and Running MirrorProvider section for details.

Contributing

Thank you for your interest in libprojfs!

We welcome contributions; please see our CONTRIBUTING guidelines and our contributor CODE_OF_CONDUCT.

Licensing

The libprojfs library is licensed under the LGPL v2.1.

See the NOTICE file for a list of other licenses used in the project, and the comments in each file for the licenses applicable to them.

Development Roadmap

We are developing the libprojfs library first, using FUSE to prototype and test its performance, before migrating functionality into a Linux kernel module (assuming that proves to be necessary to meet our performance criteria).

For more details on the planned development phases, see our design document.

Authors

The libprojfs library is currently maintained and developed by several members of GitHub's Engineering organization, including:

You can also contact the GitHub project team at opensource+libprojfs@github.com.