Example #1
0
def open_mfs_file(path):
    rpath = os.path.realpath(path)
    if rpath.startswith('/mfs/'):
        return moosefs.mfsopen(rpath[4:], 'mfsmaster')
    if rpath.startswith('/home2/'):
        return moosefs.mfsopen(rpath[6:], 'mfsmaster2')