[Gluster-devel] file version on glusterfs using libgit

Shishir Gowda sgowda at redhat.com
Thu Mar 7 05:54:41 UTC 2013


Hi All,

Was playing around with git on glusterfs volume, to provide was of file version support.

And initial run is encouraging.

A brief overview what was tried:

Approach 1: Glusterfs volume as a git repo

1. created a 2 brick distribute volume
2. inited a git repo on fuse volume
3. created files, committed them in git.
4. Modified files, and committed them again
5. Did branch check-outs, to simulate versions @ point in time
6. reset branch heads, and was able access older version of files (after a stash).
7. Was able to create files/dirs/symlinks/hardlinks
8. Both NFS/FUSE clients were used.

Approach 2: Glusterfs bricks as git repo's

1. created a 2 brick distribute volume
2. inited git repo on brick1
3. inited git repo on brick2
4. created files, committed the relevant brick's git.
5. Modified files, and committed them again on brick's git
6. Did branch check-outs, to simulate versions @ point in time on individual bricks
7. reset branch heads, and was able access older version of files (after a stash).
8. Was able to create files/dirs/symlinks/hardlinks
9. Both NFS/FUSE clients were used.

Buoyed by this, will start prototyping integration of libgit2 as xlator for file version support.

There are 3 approaches to consider:

1. Load git xlator on clients volfiles
2. Load git xlator on server volfiles
3. Replace posix interface with git interface.

Please provide feedback, on what would be more desirable.

With regards,
Shishir




More information about the Gluster-devel mailing list