$SRC/
- xlators/
- features/
- changelogs/
- lib/ # Changelog API
- src/ # Changelog Translator
- geo-replication/
- src/ # gsyncd shell and other scripts required for Geo-rep create
| #!/usr/bin/env python | |
| """ | |
| Consumer example to use the shared object created in Rust. | |
| Ref: http://blog.skylight.io/bending-the-curve-writing-safe-fast-native-gems-with-rust/ | |
| Rust program: points.rs | |
| use std::num::pow; | |
| pub struct Point { x: int, y: int } | |
| struct Line { p1: Point, p2: Point } |
| #!/usr/bin/python | |
| import random | |
| import unittest | |
| on_disk = None | |
| class Error(Exception): | |
| pass |
| import sys | |
| import os | |
| import xattr | |
| import uuid | |
| from errno import ENODATA | |
| IGNORE_DIRS = [".glusterfs", ".trashcan"] | |
| import uuid | |
| import xattr | |
| import os | |
| from hashlib import md5 | |
| import sys | |
| IGNORE_DIRS = [".glusterfs", ".trashcan"] | |
| PFX = "user.pgfid" | |
| import xattr | |
| import sys | |
| import os | |
| ROOT_GFID = "00000000-0000-0000-0000-000000000001" | |
| PFX = "user.pgfid" | |
| def symlink_gfid_to_path(brick, gfid): |
| #!/bin/bash | |
| # glusterfs adds 'trusted.gfid' as extended attribute to the files | |
| # and creates hard link to that file in .glusterfs directory | |
| # This script accepts gfid as parameter and finds respective file in | |
| # system | |
| # Example Usage: | |
| # ./file-by-gfid f6b2307a-8d3f-4e61-94eb-c565f48240fb |
| #!/usr/bin/python2 | |
| import datetime | |
| import subprocess | |
| import sys | |
| import time | |
| start_date=datetime.date(2012,11,1) | |
| end_date = datetime.date(2013, 04, 9) |
| #!/usr/bin/env python | |
| import os | |
| import sys | |
| ROOT_GFID = "00000000-0000-0000-0000-000000000001" | |
| def symlink_gfid_to_path(brick, gfid): | |
| """ | |
| Each directories are symlinked to file named GFID |